registry

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ProjectFinalizer = "project.registry.thecluster.io/finalizer"

ProjectFinalizer holds a Project until its Harbor project is deleted.

View Source
const ProxyCacheFinalizer = "proxycache.registry.thecluster.io/finalizer"

ProxyCacheFinalizer holds a ProxyCache until its Harbor project and registry endpoint are deleted.

View Source
const (
	// TypeReady is the condition every registry resource reports.
	TypeReady = "Ready"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectReconciler added in v0.1.3

type ProjectReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

func (*ProjectReconciler) Reconcile added in v0.1.3

func (r *ProjectReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile makes Harbor hold a private project named after the Project. Settings changed in Harbor are put back on the next resync.

func (*ProjectReconciler) SetupWithManager added in v0.1.3

func (r *ProjectReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ProxyCacheReconciler

type ProxyCacheReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

func (*ProxyCacheReconciler) Reconcile

func (r *ProxyCacheReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile makes Harbor hold a registry endpoint for the upstream and a proxy-cache project in front of it, both named after the ProxyCache. Settings changed in Harbor are put back on the next resync.

func (*ProxyCacheReconciler) SetupWithManager

func (r *ProxyCacheReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type RegistryReconciler

type RegistryReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

RegistryReconciler reconciles a Registry object

func (*RegistryReconciler) Reconcile

func (r *RegistryReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile checks that the backend answers with the configured credentials and records the host clients pull from. A Registry owns nothing in the backend, so it needs no finalizer.

func (*RegistryReconciler) SetupWithManager

func (r *RegistryReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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