registration

package
v1.127.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, rd *controller.Deps, regFunc registrationFunc) error

Add creates a new registration Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

func RegisterDefaultController

func RegisterDefaultController(config *config.ControllerConfig) registrationFunc

Types

type ManagedByKCCPredicate

type ManagedByKCCPredicate struct {
	predicate.Funcs
}

This predicate will react only to Create requests from CRDs that KCC manages.

func (ManagedByKCCPredicate) Create

Create returns true if the given resource has the KCC management label.

func (ManagedByKCCPredicate) Delete

Delete always returns false, as currently there is no support for removing controllers on CRD deletion.

func (ManagedByKCCPredicate) Update

Update returns true if the given resource has the KCC management label. When CRD is changed, the controller should reload its jsonSchema from the newly updated CRD.

type ReconcileRegistration

type ReconcileRegistration struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileRegistration reconciles a CRD owned by KCC

func (*ReconcileRegistration) Reconcile

Jump to

Keyboard shortcuts

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