Documentation
¶
Index ¶
Constants ¶
View Source
const ( StorageClassEnv = "STORAGE_CLASS" ReclaimPolicyEnv = "RECLAIM_POLICY" UndefinedEnvironmentVariableMsg = "failed to get configuration environment variable" InvalidReclaimPolicyMsg = "invalid default Persistent Volume Reclaim Policy" NfsPvcDeletionFinalizer = "nfspvc.dana.io/nfspvc-protection" )
Variables ¶
View Source
var AllowedReclaimPolicies = []corev1.PersistentVolumeReclaimPolicy{ corev1.PersistentVolumeReclaimRecycle, corev1.PersistentVolumeReclaimDelete, corev1.PersistentVolumeReclaimRetain, }
View Source
var ReclaimPolicy string
View Source
var StorageClass string
Functions ¶
func RetryOnConflictUpdate ¶ added in v0.5.1
func RetryOnConflictUpdate[T client.Object](ctx context.Context, k8sClient client.Client, obj T, name, namespace string, updateOp func(T) error) error
RetryOnConflictUpdate attempts to perform the given operation and retries if a conflict has occurred.
func VerifyEnvironmentVariables ¶
VerifyEnvironmentVariables ensures the StorageClass and ReclaimPolicy env variables are set and valid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.