Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bainss committed Dec 9, 2024
1 parent 4f4f6e3 commit 826e41a
Show file tree
Hide file tree
Showing 47 changed files with 62 additions and 2,038 deletions.
8 changes: 4 additions & 4 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
"matchStrings": [
"GO_VERSION: '(?<currentValue>.*?)'\\n"
],
"datasourceTemplate": "golang-version",
"depNameTemplate": "golang"
"datasourceArtifactory": "golang-version",
"depNameArtifactory": "golang"
}, {
// We want a PR to bump golangci-lint versions used through env variables in
// any Github Actions, taking it from the official Github repository tags.
"fileMatch": ["^\\.github\\/workflows\\/[^/]+\\.ya?ml$"],
"matchStrings": [
"GOLANGCI_VERSION: '(?<currentValue>.*?)'\\n"
],
"datasourceTemplate": "github-tags",
"depNameTemplate": "golangci/golangci-lint"
"datasourceArtifactory": "github-tags",
"depNameArtifactory": "golangci/golangci-lint"
}
],
// PackageRules disabled below should be enabled in case of vulnerabilities
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [YEAR] Upbound Inc. All rights reserved.
Copyright 2024 Upbound Inc. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# ====================================================================================
# Setup Project

PROJECT_NAME ?= upjet-provider-template
PROJECT_REPO ?= github.com/upbound/$(PROJECT_NAME)
PROJECT_NAME ?= provider-artifactory
PROJECT_REPO ?= github.com/polarpoint-io/$(PROJECT_NAME)

export TERRAFORM_VERSION ?= 1.5.7

# Do not allow a version of terraform greater than 1.5.x, due to versions 1.6+ being
# licensed under BSL, which is not permitted.
TERRAFORM_VERSION_VALID := $(shell [ "$(TERRAFORM_VERSION)" = "`printf "$(TERRAFORM_VERSION)\n1.6" | sort -V | head -n1`" ] && echo 1 || echo 0)

export TERRAFORM_PROVIDER_SOURCE ?= hashicorp/null
export TERRAFORM_PROVIDER_REPO ?= https://github.com/hashicorp/terraform-provider-null
export TERRAFORM_PROVIDER_VERSION ?= 3.2.2
export TERRAFORM_PROVIDER_DOWNLOAD_NAME ?= terraform-provider-null
export TERRAFORM_PROVIDER_DOWNLOAD_URL_PREFIX ?= https://releases.hashicorp.com/$(TERRAFORM_PROVIDER_DOWNLOAD_NAME)/$(TERRAFORM_PROVIDER_VERSION)
export TERRAFORM_NATIVE_PROVIDER_BINARY ?= terraform-provider-null_v3.1.0_x5
export TERRAFORM_PROVIDER_SOURCE ?= jfrog/artifactory
export TERRAFORM_PROVIDER_REPO ?= https://github.com/jfrog/terraform-provider-artifactory
export TERRAFORM_PROVIDER_VERSION ?= 12.5.1
export TERRAFORM_PROVIDER_DOWNLOAD_NAME ?= artifactory
export TERRAFORM_PROVIDER_DOWNLOAD_URL_PREFIX ?= https://github.com/jfrog/terraform-provider-artifactory/releases/download/v12.5.1/terraform-provider-artifactory_12.5.1_freebsd_arm.zip
export TERRAFORM_NATIVE_PROVIDER_BINARY ?= terraform-provider-artifactory_12.5.1_freebsd_arm
export TERRAFORM_DOCS_PATH ?= docs/resources


Expand Down Expand Up @@ -93,7 +93,7 @@ fallthrough: submodules

# NOTE(hasheddan): we force image building to happen prior to xpkg build so that
# we ensure image is present in daemon.
xpkg.build.upjet-provider-template: do.build.images
xpkg.build.provider-artifactory: do.build.images

# NOTE(hasheddan): we ensure up is installed prior to running platform-specific
# build steps in parallel to avoid encountering an installation race condition.
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Provider Template
# Provider Artifactory

`upjet-provider-template` is a [Crossplane](https://crossplane.io/) provider that
`provider-artifactory` is a [Crossplane](https://crossplane.io/) provider that
is built using [Upjet](https://github.com/crossplane/upjet) code
generation tools and exposes XRM-conformant managed resources for the
Template API.
Artifactory API.

## Getting Started

Install the provider by using the following command after changing the image tag
to the [latest release](https://marketplace.upbound.io/providers/upbound/upjet-provider-template):
to the [latest release](https://marketplace.upbound.io/providers/polarpoint-io/provider-artifactory):
```
up ctp provider install upbound/upjet-provider-template:v0.1.0
up ctp provider install polarpoint-io/provider-artifactory:v0.1.0
```

Alternatively, you can use declarative installation:
Expand All @@ -19,15 +19,15 @@ cat <<EOF | kubectl apply -f -
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
name: upjet-provider-template
name: provider-artifactory
spec:
package: upbound/upjet-provider-template:v0.1.0
package: polarpoint-io/provider-artifactory:v0.1.0
EOF
```

Notice that in this example Provider resource is referencing ControllerConfig with debug enabled.

You can see the API reference [here](https://doc.crds.dev/github.com/upbound/upjet-provider-template).
You can see the API reference [here](https://doc.crds.dev/github.com/polarpoint-io/provider-artifactory).

## Developing

Expand Down Expand Up @@ -57,4 +57,4 @@ make build
## Report a Bug

For filing bugs, suggesting improvements, or requesting new features, please
open an [issue](https://github.com/upbound/upjet-provider-template/issues).
open an [issue](https://github.com/polarpoint-io/provider-artifactory/issues).
10 changes: 0 additions & 10 deletions apis/null/v1alpha1/zz_generated.conversion_hubs.go

This file was deleted.

205 changes: 0 additions & 205 deletions apis/null/v1alpha1/zz_generated.deepcopy.go

This file was deleted.

Loading

0 comments on commit 826e41a

Please sign in to comment.