Documentation ¶
Index ¶
Constants ¶
View Source
const BetaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class"
BetaIsDefaultStorageClassAnnotation is the beta version of IsDefaultStorageClassAnnotation. TODO: remove Beta when no longer used
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 GetColumnsForVersion ¶
func GetColumnsForVersion(crd *apiextensionsv1.CustomResourceDefinition, version string) ([]apiextensionsv1.CustomResourceColumnDefinition, error)
GetColumnsForVersion returns the columns for given version or nil. NOTE: the newly logically-defaulted columns is not pointing to the original CRD object. One cannot mutate the original CRD columns using the logically-defaulted columns. Please iterate through the original CRD object instead.
func IsDefaultAnnotation ¶
func IsDefaultAnnotation(obj metav1.ObjectMeta) bool
IsDefaultAnnotation returns a boolean if the annotation is set TODO: remove Beta when no longer needed
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.