storageoscluster

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2018 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 StorageOSCluster 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 ReconcileStorageOSCluster

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

ReconcileStorageOSCluster reconciles a StorageOSCluster object

func (*ReconcileStorageOSCluster) IsCurrentCluster

func (r *ReconcileStorageOSCluster) IsCurrentCluster(cluster *storageosv1alpha1.StorageOSCluster) bool

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

func (*ReconcileStorageOSCluster) Reconcile

Reconcile reads that state of the cluster for a StorageOSCluster object and makes changes based on the state read and what is in the StorageOSCluster.Spec 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 (*ReconcileStorageOSCluster) ResetCurrentCluster

func (r *ReconcileStorageOSCluster) ResetCurrentCluster()

ResetCurrentCluster resets the current cluster of the controller.

func (*ReconcileStorageOSCluster) SetCurrentCluster

func (r *ReconcileStorageOSCluster) SetCurrentCluster(cluster *storageosv1alpha1.StorageOSCluster)

SetCurrentCluster sets the currently active cluster in the controller.

func (*ReconcileStorageOSCluster) SetCurrentClusterIfNone

func (r *ReconcileStorageOSCluster) SetCurrentClusterIfNone(cluster *storageosv1alpha1.StorageOSCluster)

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

Jump to

Keyboard shortcuts

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