storageosupgrade

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new StorageOSUpgrade Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type ReconcileStorageOSUpgrade

type ReconcileStorageOSUpgrade struct {
	// contains filtered or unexported fields
}

ReconcileStorageOSUpgrade reconciles a StorageOSUpgrade object

func (*ReconcileStorageOSUpgrade) DisableClusterMaintenance added in v0.0.5

func (r *ReconcileStorageOSUpgrade) DisableClusterMaintenance() error

DisableClusterMaintenance disables maintenance mode in the current cluster.

func (*ReconcileStorageOSUpgrade) EnableClusterMaintenance added in v0.0.5

func (r *ReconcileStorageOSUpgrade) EnableClusterMaintenance() error

EnableClusterMaintenance enables maintenance mode in the current cluster.

func (*ReconcileStorageOSUpgrade) GetStorageOSClient added in v0.0.5

func (r *ReconcileStorageOSUpgrade) GetStorageOSClient() (*storageosapi.Client, error)

GetStorageOSClient returns a StorageOS client.

func (*ReconcileStorageOSUpgrade) IsCurrentUpgrade

func (r *ReconcileStorageOSUpgrade) IsCurrentUpgrade(upgrade *storageosv1.StorageOSUpgrade) bool

IsCurrentUpgrade compares a given upgrade with the current cluster to check if they are the same.

func (*ReconcileStorageOSUpgrade) Reconcile

Reconcile reads that state of the cluster for a StorageOSUpgrade object and makes changes based on the state read and what is in the StorageOSUpgrade.Spec TODO(user): Modify this Reconcile function to implement your Controller logic. This example creates a Pod as an example 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 (*ReconcileStorageOSUpgrade) ResetCurrentUpgrade

func (r *ReconcileStorageOSUpgrade) ResetCurrentUpgrade(request reconcile.Request)

ResetCurrentUpgrade resets the current upgrade of the controller.

func (*ReconcileStorageOSUpgrade) SetCurrentUpgrade

func (r *ReconcileStorageOSUpgrade) SetCurrentUpgrade(upgrade *storageosv1.StorageOSUpgrade)

SetCurrentUpgrade sets the currently active upgrade in the controller.

func (*ReconcileStorageOSUpgrade) SetCurrentUpgradeIfNone

func (r *ReconcileStorageOSUpgrade) SetCurrentUpgradeIfNone(upgrade *storageosv1.StorageOSUpgrade)

SetCurrentUpgradeIfNone checks if there's any existing current upgrade and sets a new current upgrade if it wasn't set before.

Jump to

Keyboard shortcuts

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