registration

package
v1.154.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

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

type ManagedByKCCPredicate[T client.Object] struct {
	predicate.Funcs
}

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

func (ManagedByKCCPredicate[T]) Create

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

func (ManagedByKCCPredicate[T]) Delete

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

Generic always returns true, as we want to react to all events.

func (ManagedByKCCPredicate[T]) 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

	SkipNameValidation bool
	// contains filtered or unexported fields
}

ReconcileRegistration reconciles a CRD owned by KCC

func (*ReconcileRegistration) Reconcile

type RegistrationControllerOptions added in v1.132.0

type RegistrationControllerOptions struct {
	ControllerName string
}

Jump to

Keyboard shortcuts

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