Documentation ¶
Index ¶
Constants ¶
View Source
const ( ComponentName = "localvolumeset-controller" LocalVolumeSetNameLabel = "local.storage.openshift.io/localvolumeset-owner-name" LocalVolumeSetNamespaceLabel = "local.storage.openshift.io/localvolumeset-owner-namespace" )
View Source
const (
// DaemonSetsAvailable
DaemonSetsAvailableAndConfigured = "DaemonSetsAvailable"
)
Variables ¶
This section is empty.
Functions ¶
func SetCondition ¶
func SetCondition(conditions *[]operatorv1.OperatorCondition, conditionType, conditionMessage string, conditionStatus operatorv1.ConditionStatus) bool
SetCondition creates or updates a condition of type conditionType in conditions and returns changed
Types ¶
type LocalVolumeSetReconciler ¶
type LocalVolumeSetReconciler struct { // This client, initialized using mgr.Client() above, is a split client // that reads objects from the cache and writes to the apiserver Client client.Client Scheme *runtime.Scheme LvSetMap *common.StorageClassOwnerMap }
LocalVolumeSetReconciler reconciles a LocalVolumeSet object
func (*LocalVolumeSetReconciler) Reconcile ¶
func (r *LocalVolumeSetReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)
Reconcile reads that state of the cluster for a LocalVolumeSet object and makes changes based on the state read and what is in the LocalVolumeSet.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 (*LocalVolumeSetReconciler) SetupWithManager ¶
func (r *LocalVolumeSetReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.