Documentation
¶
Index ¶
- func AddDefaultControllers(ctx context.Context, mgr manager.Manager, rd *controller.Deps, ...) error
- func AddDeletionDefender(mgr manager.Manager, rd *controller.Deps) error
- func AddUnmanagedDetector(mgr manager.Manager, rd *controller.Deps) error
- type ManagedByKCCPredicate
- type ReconcileRegistration
- type RegistrationControllerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDefaultControllers ¶ added in v1.132.0
func AddDefaultControllers(ctx context.Context, mgr manager.Manager, rd *controller.Deps, controllerConfig *config.ControllerConfig, scopedNamespace string) error
AddDefaultControllers creates the registration controller with the default controller factory, this will dynamically create the default controllers for each CRD.
func AddDeletionDefender ¶ added in v1.132.0
func AddDeletionDefender(mgr manager.Manager, rd *controller.Deps) error
AddDeletionDefender creates the registration controller with the deletion-defender factory, this will dynamically create the deletion-defender controller bound to each CRD.
func AddUnmanagedDetector ¶ added in v1.132.0
func AddUnmanagedDetector(mgr manager.Manager, rd *controller.Deps) error
AddUnmanagedDetector creates the registration controller with the unmanaged-detector factory, this will dynamically create the unmanaged-detector controller bound to each CRD.
Types ¶
type ManagedByKCCPredicate ¶
This predicate will react only to Create requests from CRDs that KCC manages.
func (ManagedByKCCPredicate[T]) Create ¶
func (ManagedByKCCPredicate[T]) Create(e event.TypedCreateEvent[T]) bool
Create returns true if the given resource has the KCC management label.
func (ManagedByKCCPredicate[T]) Delete ¶
func (ManagedByKCCPredicate[T]) Delete(_ event.TypedDeleteEvent[T]) bool
Delete always returns false, as currently there is no support for removing controllers on CRD deletion.
func (ManagedByKCCPredicate[T]) Generic ¶ added in v1.132.0
func (ManagedByKCCPredicate[T]) Generic(_ event.TypedGenericEvent[T]) bool
Generic always returns true, as we want to react to all events.
func (ManagedByKCCPredicate[T]) Update ¶
func (ManagedByKCCPredicate[T]) Update(e event.TypedUpdateEvent[T]) 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 ¶
type ReconcileRegistration struct {
client.Client
SkipNameValidation bool
// contains filtered or unexported fields
}
ReconcileRegistration reconciles a CRD owned by KCC
type RegistrationControllerOptions ¶ added in v1.132.0
type RegistrationControllerOptions struct {
ControllerName string
}