package util
import "k8s.io/kubernetes/pkg/apis/storage/util"
Index ¶
- Constants
- func IsDefaultAnnotation(obj metav1.ObjectMeta) bool
- func IsDefaultAnnotationText(obj metav1.ObjectMeta) string
Constants ¶
const BetaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class"
const IsDefaultStorageClassAnnotation = "storageclass.kubernetes.io/is-default-class"
IsDefaultStorageClassAnnotation represents a StorageClass annotation that marks a class as the default StorageClass TODO: remove Beta when no longer used
Functions ¶
func IsDefaultAnnotation ¶
func IsDefaultAnnotation(obj metav1.ObjectMeta) bool
IsDefaultAnnotation returns a boolean if the annotation is set TODO: remove Beta when no longer needed
func IsDefaultAnnotationText ¶
func IsDefaultAnnotationText(obj metav1.ObjectMeta) string
IsDefaultAnnotationText returns a pretty Yes/No String if the annotation is set TODO: remove Beta when no longer needed
Source Files ¶
helpers.go
- Version
- v1.7.4
- Published
- Aug 17, 2017
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 1 second ago –
Tools for package owners.