deployment

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2022 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

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

func CurrentObjects() []client.Object

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.

Directories

Path Synopsis
Package testcases contains test cases for the operator which can be used both during unit and E2E testing.
Package testcases contains test cases for the operator which can be used both during unit and E2E testing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL