Documentation ¶
Index ¶
- func CreatePersistentVolumeClaim(ctx context.Context, k8sClient kubernetes.Interface, ...) error
- func GetDefaultStorageClassName(ctx context.Context, k8sclient *kubernetes.Clientset) (string, error)
- func GetPersistentVolumeClaimAndWaitForVolume(ctx context.Context, k8sClient kubernetes.Interface, namespace string, ...) (*v1.PersistentVolumeClaim, error)
- func NewEmptyDirVolume(name string) v1.Volume
- func NewHostPathVolume(name, hostPath string, mountType v1.HostPathType) v1.Volume
- func NewPersistentVolumeClaimVolume(name, claimName string, readOnly bool) v1.Volume
- func NewProjectedVolumeFromSecrets(name string, secretNames ...string) v1.Volume
- func NewVolumeFromConfigMap(name, configName string) v1.Volume
- func NewVolumeFromSecret(name, secretName string) v1.Volume
- func NewVolumeFromSecretOptional(name, secretName string, optional bool) v1.Volume
- func NewVolumeMount(name, path string, readOnly bool) v1.VolumeMount
- func NewVolumeSubPathMount(name, path string, subPath string, readOnly bool) v1.VolumeMount
- func RemoveClaimRefOfPV(ctx context.Context, k8sClient kubernetes.Interface, ...) error
- func SetClaimRefOfPV(ctx context.Context, k8sClient kubernetes.Interface, volumeName string, ...) error
- func SetPVReclaimPolicy(ctx context.Context, k8sClient kubernetes.Interface, ...) error
- func SetPVReclaimPolicyToRetain(ctx context.Context, k8sClient kubernetes.Interface, ...) error
- func ValidateStorageClassExists(ctx context.Context, client *kubernetes.Clientset, storageClassName string) error
- func WaitForPVCToBeDeleted(ctx context.Context, k8sClient kubernetes.Interface, namespace, pvc string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPersistentVolumeClaimAndWaitForVolume ¶
func GetPersistentVolumeClaimAndWaitForVolume(ctx context.Context, k8sClient kubernetes.Interface, namespace string, pvcName string) (*v1.PersistentVolumeClaim, error)
func NewEmptyDirVolume ¶
func NewHostPathVolume ¶
func NewHostPathVolume(name, hostPath string, mountType v1.HostPathType) v1.Volume
func NewVolumeFromConfigMap ¶
func NewVolumeFromSecret ¶
func NewVolumeMount ¶
func NewVolumeMount(name, path string, readOnly bool) v1.VolumeMount
func NewVolumeSubPathMount ¶
func NewVolumeSubPathMount(name, path string, subPath string, readOnly bool) v1.VolumeMount
func RemoveClaimRefOfPV ¶
func RemoveClaimRefOfPV(ctx context.Context, k8sClient kubernetes.Interface, pvc *v1.PersistentVolumeClaim) error
func SetClaimRefOfPV ¶
func SetClaimRefOfPV(ctx context.Context, k8sClient kubernetes.Interface, volumeName string, claimRef v1.ObjectReference) error
func SetPVReclaimPolicy ¶
func SetPVReclaimPolicy(ctx context.Context, k8sClient kubernetes.Interface, pvc *v1.PersistentVolumeClaim, policy v1.PersistentVolumeReclaimPolicy) error
func SetPVReclaimPolicyToRetain ¶
func SetPVReclaimPolicyToRetain(ctx context.Context, k8sClient kubernetes.Interface, pvc *v1.PersistentVolumeClaim) error
func WaitForPVCToBeDeleted ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.