Documentation ¶
Index ¶
- type PocketSetReconciler
- func (r *PocketSetReconciler) CheckReady(req *workload.Request) (bool, error)
- func (r *PocketSetReconciler) GetController() controller.Controller
- func (r *PocketSetReconciler) GetEventRecorder() record.EventRecorder
- func (r *PocketSetReconciler) GetFieldManager() string
- func (r *PocketSetReconciler) GetLogger() logr.Logger
- func (r *PocketSetReconciler) GetName() string
- func (r *PocketSetReconciler) GetResources(req *workload.Request) ([]client.Object, error)
- func (r *PocketSetReconciler) GetWatches() []client.Object
- func (r *PocketSetReconciler) InitializePhases()
- func (r *PocketSetReconciler) Mutate(req *workload.Request, object client.Object) ([]client.Object, bool, error)
- func (r *PocketSetReconciler) NewRequest(ctx context.Context, request ctrl.Request) (*workload.Request, error)
- func (r *PocketSetReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)
- func (r *PocketSetReconciler) SetWatch(watch client.Object)
- func (r *PocketSetReconciler) SetupWithManager(mgr ctrl.Manager) error
- type PocketValidatorReconciler
- func (r *PocketValidatorReconciler) CheckReady(req *workload.Request) (bool, error)
- func (r *PocketValidatorReconciler) EnqueueRequestOnCollectionChange(req *workload.Request) error
- func (r *PocketValidatorReconciler) GetCollection(component *nodesv1alpha1.PocketValidator, req *workload.Request) (*nodesv1alpha1.PocketSet, error)
- func (r *PocketValidatorReconciler) GetController() controller.Controller
- func (r *PocketValidatorReconciler) GetEventRecorder() record.EventRecorder
- func (r *PocketValidatorReconciler) GetFieldManager() string
- func (r *PocketValidatorReconciler) GetLogger() logr.Logger
- func (r *PocketValidatorReconciler) GetName() string
- func (r *PocketValidatorReconciler) GetResources(req *workload.Request) ([]client.Object, error)
- func (r *PocketValidatorReconciler) GetWatches() []client.Object
- func (r *PocketValidatorReconciler) InitializePhases()
- func (r *PocketValidatorReconciler) Mutate(req *workload.Request, object client.Object) ([]client.Object, bool, error)
- func (r *PocketValidatorReconciler) NewRequest(ctx context.Context, request ctrl.Request) (*workload.Request, error)
- func (r *PocketValidatorReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)
- func (r *PocketValidatorReconciler) SetCollection(component *nodesv1alpha1.PocketValidator, req *workload.Request) error
- func (r *PocketValidatorReconciler) SetWatch(watch client.Object)
- func (r *PocketValidatorReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PocketSetReconciler ¶
type PocketSetReconciler struct { client.Client Name string Log logr.Logger Controller controller.Controller Events record.EventRecorder FieldManager string Watches []client.Object Phases *phases.Registry }
PocketSetReconciler reconciles a PocketSet object.
func NewPocketSetReconciler ¶
func NewPocketSetReconciler(mgr ctrl.Manager) *PocketSetReconciler
func (*PocketSetReconciler) CheckReady ¶
func (r *PocketSetReconciler) CheckReady(req *workload.Request) (bool, error)
CheckReady will return whether a component is ready.
func (*PocketSetReconciler) GetController ¶
func (r *PocketSetReconciler) GetController() controller.Controller
GetController returns the controller object associated with the reconciler.
func (*PocketSetReconciler) GetEventRecorder ¶
func (r *PocketSetReconciler) GetEventRecorder() record.EventRecorder
GetEventRecorder returns the event recorder for writing kubernetes events.
func (*PocketSetReconciler) GetFieldManager ¶
func (r *PocketSetReconciler) GetFieldManager() string
GetFieldManager returns the name of the field manager for the controller.
func (*PocketSetReconciler) GetLogger ¶
func (r *PocketSetReconciler) GetLogger() logr.Logger
GetLogger returns the logger from the reconciler.
func (*PocketSetReconciler) GetName ¶
func (r *PocketSetReconciler) GetName() string
GetName returns the name of the reconciler.
func (*PocketSetReconciler) GetResources ¶
GetResources resources runs the methods to properly construct the resources in memory.
func (*PocketSetReconciler) GetWatches ¶
func (r *PocketSetReconciler) GetWatches() []client.Object
GetWatches returns the objects which are current being watched by the reconciler.
func (*PocketSetReconciler) InitializePhases ¶
func (r *PocketSetReconciler) InitializePhases()
InitializePhases defines what phases should be run for each event loop. phases are executed in the order they are listed.
func (*PocketSetReconciler) Mutate ¶
func (r *PocketSetReconciler) Mutate( req *workload.Request, object client.Object, ) ([]client.Object, bool, error)
Mutate will run the mutate function for the workload. WARN: this will be deprecated in the future. See apis/group/version/kind/mutate*
func (*PocketSetReconciler) NewRequest ¶
func (*PocketSetReconciler) Reconcile ¶
func (r *PocketSetReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile
func (*PocketSetReconciler) SetWatch ¶
func (r *PocketSetReconciler) SetWatch(watch client.Object)
SetWatch appends a watch to the list of currently watched objects.
func (*PocketSetReconciler) SetupWithManager ¶
func (r *PocketSetReconciler) SetupWithManager(mgr ctrl.Manager) error
type PocketValidatorReconciler ¶
type PocketValidatorReconciler struct { client.Client Name string Log logr.Logger Controller controller.Controller Events record.EventRecorder FieldManager string Watches []client.Object Phases *phases.Registry }
PocketValidatorReconciler reconciles a PocketValidator object.
func NewPocketValidatorReconciler ¶
func NewPocketValidatorReconciler(mgr ctrl.Manager) *PocketValidatorReconciler
func (*PocketValidatorReconciler) CheckReady ¶
func (r *PocketValidatorReconciler) CheckReady(req *workload.Request) (bool, error)
CheckReady will return whether a component is ready.
func (*PocketValidatorReconciler) EnqueueRequestOnCollectionChange ¶
func (r *PocketValidatorReconciler) EnqueueRequestOnCollectionChange(req *workload.Request) error
EnqueueRequestOnCollectionChange enqueues a reconcile request when an associated collection object changes.
func (*PocketValidatorReconciler) GetCollection ¶
func (r *PocketValidatorReconciler) GetCollection( component *nodesv1alpha1.PocketValidator, req *workload.Request, ) (*nodesv1alpha1.PocketSet, error)
GetCollection gets a collection for a component given a list.
func (*PocketValidatorReconciler) GetController ¶
func (r *PocketValidatorReconciler) GetController() controller.Controller
GetController returns the controller object associated with the reconciler.
func (*PocketValidatorReconciler) GetEventRecorder ¶
func (r *PocketValidatorReconciler) GetEventRecorder() record.EventRecorder
GetEventRecorder returns the event recorder for writing kubernetes events.
func (*PocketValidatorReconciler) GetFieldManager ¶
func (r *PocketValidatorReconciler) GetFieldManager() string
GetFieldManager returns the name of the field manager for the controller.
func (*PocketValidatorReconciler) GetLogger ¶
func (r *PocketValidatorReconciler) GetLogger() logr.Logger
GetLogger returns the logger from the reconciler.
func (*PocketValidatorReconciler) GetName ¶
func (r *PocketValidatorReconciler) GetName() string
GetName returns the name of the reconciler.
func (*PocketValidatorReconciler) GetResources ¶
GetResources resources runs the methods to properly construct the resources in memory.
func (*PocketValidatorReconciler) GetWatches ¶
func (r *PocketValidatorReconciler) GetWatches() []client.Object
GetWatches returns the objects which are current being watched by the reconciler.
func (*PocketValidatorReconciler) InitializePhases ¶
func (r *PocketValidatorReconciler) InitializePhases()
InitializePhases defines what phases should be run for each event loop. phases are executed in the order they are listed.
func (*PocketValidatorReconciler) Mutate ¶
func (r *PocketValidatorReconciler) Mutate( req *workload.Request, object client.Object, ) ([]client.Object, bool, error)
Mutate will run the mutate function for the workload. WARN: this will be deprecated in the future. See apis/group/version/kind/mutate*
func (*PocketValidatorReconciler) NewRequest ¶
func (*PocketValidatorReconciler) Reconcile ¶
func (r *PocketValidatorReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile
func (*PocketValidatorReconciler) SetCollection ¶
func (r *PocketValidatorReconciler) SetCollection(component *nodesv1alpha1.PocketValidator, req *workload.Request) error
SetCollection sets the collection for a particular workload request.
func (*PocketValidatorReconciler) SetWatch ¶
func (r *PocketValidatorReconciler) SetWatch(watch client.Object)
SetWatch appends a watch to the list of currently watched objects.
func (*PocketValidatorReconciler) SetupWithManager ¶
func (r *PocketValidatorReconciler) SetupWithManager(mgr ctrl.Manager) error