util

package
v1.13.5-k3s.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const BetaIsDefaultStorageClassAnnotation = "storageclass.beta.kubernetes.io/is-default-class"
View Source
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

Variables

This section is empty.

Functions

func DropDisabledAlphaFields

func DropDisabledAlphaFields(class *storage.StorageClass)

DropDisabledAlphaFields removes disabled fields from the StorageClass object.

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL