Documentation
¶
Index ¶
Constants ¶
const ProxyCacheFinalizer = "proxycache.registry.thecluster.io/finalizer"
ProxyCacheFinalizer holds a ProxyCache until its Harbor project and registry endpoint are deleted.
const (
// TypeReady is the condition every registry resource reports.
TypeReady = "Ready"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyCacheReconciler ¶
ProxyCacheReconciler reconciles a ProxyCache object
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 ¶
RegistryReconciler reconciles a Registry object
func (*RegistryReconciler) Reconcile ¶
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.