Documentation
¶
Index ¶
- func Add(mgr manager.Manager) error
- type ReconcileStorageOSUpgrade
- func (r *ReconcileStorageOSUpgrade) DisableClusterMaintenance() error
- func (r *ReconcileStorageOSUpgrade) EnableClusterMaintenance() error
- func (r *ReconcileStorageOSUpgrade) GetStorageOSClient() (*storageosapi.Client, error)
- func (r *ReconcileStorageOSUpgrade) IsCurrentUpgrade(upgrade *storageosv1.StorageOSUpgrade) bool
- func (r *ReconcileStorageOSUpgrade) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileStorageOSUpgrade) ResetCurrentUpgrade(request reconcile.Request)
- func (r *ReconcileStorageOSUpgrade) SetCurrentUpgrade(upgrade *storageosv1.StorageOSUpgrade)
- func (r *ReconcileStorageOSUpgrade) SetCurrentUpgradeIfNone(upgrade *storageosv1.StorageOSUpgrade)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.