Documentation ¶
Index ¶
- func Add(mgr manager.Manager, rd *controller.Deps, regFunc registrationFunc) error
- func RegisterDefaultController(config *config.ControllerConfig) registrationFunc
- func RegisterDeletionDefenderController(r *ReconcileRegistration, crd *apiextensions.CustomResourceDefinition, ...) (k8s.SchemaReferenceUpdater, error)
- func RegisterUnmanagedDetectorController(r *ReconcileRegistration, crd *apiextensions.CustomResourceDefinition, ...) (k8s.SchemaReferenceUpdater, error)
- type ManagedByKCCPredicate
- type ReconcileRegistration
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
func RegisterDeletionDefenderController ¶
func RegisterDeletionDefenderController(r *ReconcileRegistration, crd *apiextensions.CustomResourceDefinition, _ schema.GroupVersionKind) (k8s.SchemaReferenceUpdater, error)
func RegisterUnmanagedDetectorController ¶ added in v1.95.0
func RegisterUnmanagedDetectorController(r *ReconcileRegistration, crd *apiextensions.CustomResourceDefinition, _ schema.GroupVersionKind) (k8s.SchemaReferenceUpdater, error)
Types ¶
type ManagedByKCCPredicate ¶
This predicate will react only to Create requests from CRDs that KCC manages.
func (ManagedByKCCPredicate) Create ¶
func (ManagedByKCCPredicate) Create(e event.CreateEvent) bool
Create returns true if the given resource has the KCC management label.
func (ManagedByKCCPredicate) Delete ¶
func (ManagedByKCCPredicate) Delete(_ event.DeleteEvent) bool
Delete always returns false, as currently there is no support for removing controllers on CRD deletion.
func (ManagedByKCCPredicate) Update ¶
func (ManagedByKCCPredicate) Update(e event.UpdateEvent) bool
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 ¶
ReconcileRegistration reconciles a CRD owned by KCC
Click to show internal directories.
Click to hide internal directories.