harbor-config-operator

command module
v0.0.0-...-23b6453 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

README

harbor-config-operator

Currently a PoC for an operator that will administer harbor registeries, projects and replication rules with execution.

Development

Build

Makefile targets exists which build the controller and generate the kubernetes manifests. To build and generate run the following:

make build
Deploy

To run the controller locally against a local kind cluster, it's recommnded to port-forward to the harbor-core pod and set the HARBOR_CORE_URL. For instance:

  • kubectl -n harbor-cluster port-forward $(kubectl -n harbor-cluster get pods -l goharbor.io/operator-controller=core -ojson | jq -r '.items[].metadata.name') 8080:8080
    
  • export HARBOR_CORE_URL="http://127.0.0.1:8080/api/v2.0"
    
  • make install
    
  • make run
    
Test

To execute the controller tests:

make test

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the administration v1alpha1 API group +kubebuilder:object:generate=true +groupName=administration.harbor.configuration
Package v1alpha1 contains API Schema definitions for the administration v1alpha1 API group +kubebuilder:object:generate=true +groupName=administration.harbor.configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL