Skip to content

Crossplane provider for Harbor based on terraform-provider-harbor

License

Notifications You must be signed in to change notification settings

tschlaepfer/provider-harbor

 
 

Repository files navigation

Provider Harbor

provider-harbor is a Crossplane provider that is built using Upjet and exposes XRM-conformant managed resources for the Harbor API.

Getting Started

Install the provider by using the following command after changing the image tag to the latest release:

up ctp provider install globallogicuki/provider-harbor:v0.1.0

Alternatively, you can use declarative installation:

cat <<EOF | kubectl apply -f -
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
  name: provider-harbor
spec:
  package: globallogicuki/provider-harbor:v0.1.0
EOF

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

You can see the API reference here.

Provider Config

Note, that the ProviderConfig uses basic auth and requires a local user. A robot user can be used, but has restrictions around what can be created (e.g. a Robot cannot create other Robots).

Developing

Run code-generation pipeline:

go run cmd/generator/main.go "$PWD"

Run against a Kubernetes cluster:

make run

Build, push, and install:

make all

Build binary:

make build

Report a Bug

For filing bugs, suggesting improvements, or requesting new features, please open an issue.

About

Crossplane provider for Harbor based on terraform-provider-harbor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 64.9%
  • Makefile 22.8%
  • Shell 6.0%
  • Dockerfile 3.5%
  • Python 2.5%
  • HCL 0.3%