utils

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

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 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

func VerifyEnvironmentVariables() (bool, string)

VerifyEnvironmentVariables ensures the StorageClass and ReclaimPolicy env variables are set and valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL