Skip to content

padoa/terraform-provider-harbor

 
 

Repository files navigation

Harbor Provider

The terraform-provider-harbor is used to configure an instance of Harbor.

This is original based on the Work from BESTSELLER/terraform-harbor-provider, but with some incompatible changes, like the access to the Harbor API.

Classic CI/CD Release Flow FOSSA Status

Project Status

At the Moment this Project is heavy under Construction, it is not recommended for Production use, or active Forking !

Planed Braking Changes:

Docs

The Documentation will be created with mkdocs and generated to nolte.github.io/terraform-provider-harbor from the latest Release like, GitHub release (latest SemVer).

Building

As CI/CD tool we use the Github Workflow Feature.

Visual Studio Code DevContainer

For Easy development use Visual Studio Code DevContainer, you can find the basement from the Development Containers at nolte/vscode-devcontainers.

  1. Create you Github Personal Access Token under https://github.com/settings/tokens with the following scopes:

    1. read:packages
  2. Login to fetch the required dev containers

    docker login docker.pkg.github.com
  3. Grab you a Coffee and wait for 3 Minutes (This happens on the first time use)

  4. Click Terminal -> New Terminal and execute the following command:

# using the Makefile
make

After starting the VisualStudio Code DevContainer, you can access the Documentation at localhost:8000.

Precondition Tools

For full building and testing you need the following tools on our machine.

Required For Building

Required For Testing

  • kind
  • Terraform
  • bats

Supported Versions

Tested with Harbor v1.10.2, v2.0.0 and v2.1.0.

Tests

For the End To End Tests we use a local kind (KubernetesInDocker) Cluster.

License

FOSSA Status

Packages

No packages published

Languages

  • Go 88.2%
  • Shell 6.0%
  • HCL 2.3%
  • Dockerfile 1.9%
  • Makefile 1.6%