Documentation
¶
Index ¶
- func Add(mgr manager.Manager) error
- type ReconcileStorageOSCluster
- func (r *ReconcileStorageOSCluster) IsCurrentCluster(cluster *storageosv1alpha1.StorageOSCluster) bool
- func (r *ReconcileStorageOSCluster) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileStorageOSCluster) ResetCurrentCluster()
- func (r *ReconcileStorageOSCluster) SetCurrentCluster(cluster *storageosv1alpha1.StorageOSCluster)
- func (r *ReconcileStorageOSCluster) SetCurrentClusterIfNone(cluster *storageosv1alpha1.StorageOSCluster)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.