Documentation ¶
Index ¶
Constants ¶
const ControllerName = "secret-controller"
ControllerName is the name of the secret controller.
Variables ¶
This section is empty.
Functions ¶
func AddToManager ¶
AddToManager adds the controller to a Manager using the default config.
func AddToManagerWithOptions ¶
func AddToManagerWithOptions(mgr manager.Manager, conf ControllerConfig) error
AddToManagerWithOptions adds the controller to a Manager with the given config.
func ManagedResourceToSecretsMapper ¶ added in v1.35.0
ManagedResourceToSecretsMapper returns a mapper that maps events for ManagedResources to their referenced secrets.
Types ¶
type ControllerConfig ¶
type ControllerConfig struct { MaxConcurrentWorkers int ClassFilter managerpredicate.ClassFilter }
ControllerConfig is the completed configuration for the controller.
type ControllerOptions ¶
type ControllerOptions struct {
// contains filtered or unexported fields
}
ControllerOptions are options for adding the controller to a Manager.
func (*ControllerOptions) AddFlags ¶
func (o *ControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds the needed command line flags to the given FlagSet.
func (*ControllerOptions) Complete ¶
func (o *ControllerOptions) Complete() error
Complete completes the given command line flags and set the defaultControllerConfig accordingly.
func (*ControllerOptions) Completed ¶
func (o *ControllerOptions) Completed() *ControllerConfig
Completed returns the completed ControllerConfig.
type Reconciler ¶
type Reconciler struct { ClassFilter *predicate.ClassFilter // contains filtered or unexported fields }
Reconciler adds/removes finalizers to/from secrets referenced by ManagedResources.
func (*Reconciler) InjectClient ¶
func (r *Reconciler) InjectClient(client client.Client) error
InjectClient injects a client into the reconciler.
func (*Reconciler) InjectLogger ¶
func (r *Reconciler) InjectLogger(l logr.Logger) error
InjectLogger injects a logger into the reconciler.