Documentation ¶
Index ¶
- func Add(ctx context.Context, mgr manager.Manager, ...) error
- func AllObjectLists() []*unstructured.UnstructuredList
- func CurrentObjects() []client.Object
- func NewReconcileDeployment(ctx context.Context, client client.Client, ...) (reconcile.Reconciler, error)
- type ReconcileDeployment
- func (r *ReconcileDeployment) AddHook(h ReconcileHook)
- func (r *ReconcileDeployment) Delete(obj client.Object) error
- func (r *ReconcileDeployment) EventBroadcaster() record.EventBroadcaster
- func (r *ReconcileDeployment) Get(obj client.Object) error
- func (r *ReconcileDeployment) Namespace() string
- func (r *ReconcileDeployment) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileDeployment) RemoveHook(h ReconcileHook)
- type ReconcileHook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(ctx context.Context, mgr manager.Manager, opts pmemcontroller.ControllerOptions) error
Add creates a new Deployment Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.
func AllObjectLists ¶ added in v0.9.0
func AllObjectLists() []*unstructured.UnstructuredList
Returns a slice with a new unstructured.UnstructuredList for each object in allObjects.
func CurrentObjects ¶ added in v0.9.0
CurrentObjects returns the active sub-object types used by the operator for a driver deployment.
func NewReconcileDeployment ¶
func NewReconcileDeployment(ctx context.Context, client client.Client, opts pmemcontroller.ControllerOptions) (reconcile.Reconciler, error)
NewReconcileDeployment creates new deployment reconciler
Types ¶
type ReconcileDeployment ¶
type ReconcileDeployment struct {
// contains filtered or unexported fields
}
ReconcileDeployment reconciles a Deployment object
func (*ReconcileDeployment) AddHook ¶ added in v0.8.0
func (r *ReconcileDeployment) AddHook(h ReconcileHook)
AddHook adds given reconcile hook to hooks list
func (*ReconcileDeployment) Delete ¶
func (r *ReconcileDeployment) Delete(obj client.Object) error
Delete delete existing Kubernetes object
func (*ReconcileDeployment) EventBroadcaster ¶ added in v0.8.0
func (r *ReconcileDeployment) EventBroadcaster() record.EventBroadcaster
func (*ReconcileDeployment) Get ¶
func (r *ReconcileDeployment) Get(obj client.Object) error
Get tries to retrives the Kubernetes objects
func (*ReconcileDeployment) Namespace ¶
func (r *ReconcileDeployment) Namespace() string
func (*ReconcileDeployment) Reconcile ¶
func (r *ReconcileDeployment) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reads that state of the cluster for a Deployment object and makes changes based on the state read and what is in the Deployment.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
func (*ReconcileDeployment) RemoveHook ¶ added in v0.8.0
func (r *ReconcileDeployment) RemoveHook(h ReconcileHook)
RemoveHook removes previously added hook
type ReconcileHook ¶ added in v0.8.0
type ReconcileHook *func(d *api.PmemCSIDeployment)
ReconcileHook function to be invoked on reconciling a deployment.