resources

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FailedCleanupError = errors.New("failed nfspvc cleanup")

Functions

func HandleDelete

func HandleDelete(ctx context.Context, nfspvc danaiov1alpha1.NfsPvc, k8sClient client.Client) (bool, error)

HandleDelete ensures the deletion of the nfspvc.

func HandleStorageObjectState

func HandleStorageObjectState(ctx context.Context, nfspvc danaiov1alpha1.NfsPvc, k8sClient client.Client) error

HandleStorageObjectState handles the underlying PV and PVC when an NFSPVC is updated.

func PreparePV

func PreparePV(nfspvc danaiov1alpha1.NfsPvc, StorageClass string, ReclaimPolicy string) corev1.PersistentVolume

PreparePV returns a PV with the given storageclass and reclaimpolicy.

func PreparePVC

func PreparePVC(nfspvc danaiov1alpha1.NfsPvc, StorageClass string) corev1.PersistentVolumeClaim

PreparePVC returns a PVC with the given storageclass.

func UpdatePV

func UpdatePV(ctx context.Context, nfspvc danaiov1alpha1.NfsPvc, k8sClient client.Client, pv corev1.PersistentVolume) error

UpdatePV updates the PV claim reference when the NFSPVC is updated.

Types

This section is empty.

Jump to

Keyboard shortcuts

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