Documentation ¶
Index ¶
- func Add(mgr manager.Manager, p *tfschema.Provider, ...) error
- func RegisterDefaultController(r *ReconcileRegistration, crd *apiextensions.CustomResourceDefinition, ...) error
- func RegisterDeletionDefenderController(r *ReconcileRegistration, crd *apiextensions.CustomResourceDefinition, ...) error
- type ManagedByKCCPredicate
- type ReconcileRegistration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(mgr manager.Manager, p *tfschema.Provider, smLoader *servicemappingloader.ServiceMappingLoader, dclConfig *dcl.Config, dclConverter *conversion.Converter, 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(r *ReconcileRegistration, crd *apiextensions.CustomResourceDefinition, gvk schema.GroupVersionKind) error
func RegisterDeletionDefenderController ¶
func RegisterDeletionDefenderController(r *ReconcileRegistration, crd *apiextensions.CustomResourceDefinition, gvk schema.GroupVersionKind) 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 always returns false, as there is nothing to do should the CRD be changed. Periodic syncs will trigger Create, so in the event we miss an event, we will eventually still register a controller.
type ReconcileRegistration ¶
ReconcileRegistration reconciles a CRD owned by KCC