Documentation ¶
Index ¶
- Constants
- func ContainsAccessMode(modes []v1.PersistentVolumeAccessMode, mode v1.PersistentVolumeAccessMode) bool
- func GetAccessModesAsString(modes []v1.PersistentVolumeAccessMode) string
- func GetPersistentVolumeClaimClass(claim *v1.PersistentVolumeClaim) string
- func GetPersistentVolumeClass(volume *v1.PersistentVolume) string
- func IsDefaultAnnotationText(obj metav1.ObjectMeta) string
Constants ¶
View Source
const BetaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class"
BetaIsDefaultStorageClassAnnotation is the beta version of IsDefaultStorageClassAnnotation.
View Source
const IsDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class"
IsDefaultStorageClassAnnotation represents a StorageClass annotation that marks a class as the default StorageClass
Variables ¶
This section is empty.
Functions ¶
func ContainsAccessMode ¶
func ContainsAccessMode(modes []v1.PersistentVolumeAccessMode, mode v1.PersistentVolumeAccessMode) bool
func GetAccessModesAsString ¶
func GetAccessModesAsString(modes []v1.PersistentVolumeAccessMode) string
GetAccessModesAsString returns a string representation of an array of access modes. modes, when present, are always in the same order: RWO,ROX,RWX,RWOP.
func GetPersistentVolumeClaimClass ¶
func GetPersistentVolumeClaimClass(claim *v1.PersistentVolumeClaim) string
GetPersistentVolumeClaimClass returns StorageClassName. If no storage class was requested, it returns "".
func GetPersistentVolumeClass ¶
func GetPersistentVolumeClass(volume *v1.PersistentVolume) string
GetPersistentVolumeClass returns StorageClassName.
func IsDefaultAnnotationText ¶
func IsDefaultAnnotationText(obj metav1.ObjectMeta) string
IsDefaultAnnotationText returns a pretty Yes/No String if the annotation is set
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.