Documentation
¶
Overview ¶
Package sharedvolume groups the functionalities related to the SharedVolume controller.
Index ¶
Constants ¶
View Source
const ( // EvPVCSmaller -> the event key corresponding to an invalid resizing. EvPVCSmaller = "InvalidSize" // EvPVCSmallerMsg -> the event message corresponding to an invalid resizing. EvPVCSmallerMsg = "Size cannot be less than previous value" // EvPVNoCSI -> the event key corresponding to missing CSI params. EvPVNoCSI = "MissingCSI" // EvPVNoCSIMsg -> the event message corresponding to missing CSI params. EvPVNoCSIMsg = "PV misses CSI params" // EvPVCResQuotaExceeded -> the event key corresponding to exceeded PVC quota. EvPVCResQuotaExceeded = "ResourceQuotaExceeded" // EvPVCResQuotaExceededMsg -> the event message corresponding to exceeded PVC quota. EvPVCResQuotaExceededMsg = "PVC exceeded the resource quota" // EvDeletionBlocked -> the event key corresponding to blocked deletion. EvDeletionBlocked = "DeletionBlocked" // EvDeletionBlockedMsg -> the event message corresponding to blocked deletion. EvDeletionBlockedMsg = "Cannot delete shvol since it is mounted on %v" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct {
client.Client
TargetLabel common.KVLabel
EventsRecorder record.EventRecorder
PVCStorageClass string
// This function, if configured, is deferred at the beginning of the Reconcile.
// Specifically, it is meant to be set to GinkgoRecover during the tests,
// in order to lead to a controlled failure in case the Reconcile panics.
ReconcileDeferHook func()
}
Reconciler reconciles a SharedVolume object.
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)
Reconcile reconciles the state of a SharedVolume resource.
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager, concurrency int) error
SetupWithManager registers a new controller for SharedVolume resources.
Click to show internal directories.
Click to hide internal directories.