Documentation ¶
Index ¶
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 ResyncPeriod ¶ added in v0.0.4
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 ¶ added in v0.0.4
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 ¶ added in v0.0.4
NewControllerContext creates a new controller context
type TemplateInstanceReconciler ¶
type TemplateInstanceReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme // contains filtered or unexported fields }
TemplateInstanceReconciler reconciles a template instance object
func (*TemplateInstanceReconciler) Reconcile ¶
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