Documentation ¶
Index ¶
- func AddManagerIndices(indexer client.FieldIndexer) error
- func RBACGenerateName(account *configv1alpha1.Account) string
- func Register(mgr manager.Manager) error
- func ResyncPeriod() func() time.Duration
- type AccountReconciler
- type Context
- type NamespaceEventHandler
- func (e *NamespaceEventHandler) Create(evt event.CreateEvent, q workqueue.RateLimitingInterface)
- func (e *NamespaceEventHandler) Delete(evt event.DeleteEvent, q workqueue.RateLimitingInterface)
- func (e *NamespaceEventHandler) Generic(evt event.GenericEvent, q workqueue.RateLimitingInterface)
- func (e *NamespaceEventHandler) Update(evt event.UpdateEvent, q workqueue.RateLimitingInterface)
- type TemplateInstanceReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddManagerIndices ¶
func AddManagerIndices(indexer client.FieldIndexer) error
AddManagerIndices adds the needed manager indices for faster listing of resources
func RBACGenerateName ¶
func RBACGenerateName(account *configv1alpha1.Account) string
func ResyncPeriod ¶
ResyncPeriod returns a function which generates a duration each time it is invoked; this is so that multiple controllers don't get into lock-step and all hammer the apiserver with list requests simultaneously.
Types ¶
type AccountReconciler ¶
AccountReconciler reconciles a Account object
func (*AccountReconciler) Reconcile ¶
Reconcile reads that state of the cluster for an Account object and makes changes based on the state read
func (*AccountReconciler) SetupWithManager ¶
func (r *AccountReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager adds the controller to the manager
type Context ¶
type Context struct { // The controller runtime manager Manager manager.Manager // The global stop chan StopChan <-chan struct{} // stored here are different from informers in the controller-runtime manager, which should be preferred if possible SharedInformers informers.SharedInformerFactory // ObjectOrMetadataInformers creates generic informers for each group version resource ObjectOrMetadataInformers controller.InformerFactory // InformersStarted is closed as soon as the informer factories were started InformersStarted chan struct{} // DiscoveryFunc is able to discover available api resources in the cluster DiscoveryFunc func() ([]*metav1.APIResourceList, error) }
Context holds informations for native kubernetes controllers that need access to a sharedindexfactory
func NewControllerContext ¶
NewControllerContext creates a new controller context
type NamespaceEventHandler ¶
NamespaceEventHandler handles events
func (*NamespaceEventHandler) Create ¶
func (e *NamespaceEventHandler) Create(evt event.CreateEvent, q workqueue.RateLimitingInterface)
Create implements EventHandler
func (*NamespaceEventHandler) Delete ¶
func (e *NamespaceEventHandler) Delete(evt event.DeleteEvent, q workqueue.RateLimitingInterface)
Delete implements EventHandler
func (*NamespaceEventHandler) Generic ¶
func (e *NamespaceEventHandler) Generic(evt event.GenericEvent, q workqueue.RateLimitingInterface)
Generic implements EventHandler
func (*NamespaceEventHandler) Update ¶
func (e *NamespaceEventHandler) Update(evt event.UpdateEvent, q workqueue.RateLimitingInterface)
Update implements EventHandler
type TemplateInstanceReconciler ¶
type TemplateInstanceReconciler struct { client.Client Log loghelper.Logger Scheme *runtime.Scheme // contains filtered or unexported fields }
TemplateInstanceReconciler reconciles a template instance object
func (*TemplateInstanceReconciler) Reconcile ¶
func (r *TemplateInstanceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile reads that state of the cluster for an Account object and makes changes based on the state read
func (*TemplateInstanceReconciler) SetupWithManager ¶
func (r *TemplateInstanceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager adds the controller to the manager