Documentation ¶
Index ¶
- Variables
- func HandleDelete(ctx context.Context, nfspvc danaiov1alpha1.NfsPvc, k8sClient client.Client) (bool, error)
- func HandleStorageObjectState(ctx context.Context, nfspvc danaiov1alpha1.NfsPvc, k8sClient client.Client) error
- func PreparePV(nfspvc danaiov1alpha1.NfsPvc, StorageClass string, ReclaimPolicy string) corev1.PersistentVolume
- func PreparePVC(nfspvc danaiov1alpha1.NfsPvc, StorageClass string) corev1.PersistentVolumeClaim
- func UpdatePV(ctx context.Context, nfspvc danaiov1alpha1.NfsPvc, k8sClient client.Client, ...) error
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.