labels

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationTemplateNameKey         string = "vm.kubevirt.io/template"
	AnnotationTemplateNamespaceKey    string = "vm.kubevirt.io/template.namespace"
	AnnotationTemplateNamespaceOldKey string = "vm.kubevirt.io/template-namespace"
	AnnotationValidationKey           string = "validations"

	// This is the new annotation we will be using for VirtualMachines that carry their own validation rules
	VmValidationAnnotationKey string = "vm.kubevirt.io/validations"

	// If this annotation exists on a VM, it means that validation should be skipped.
	// This annotation is used for troubleshooting, debugging and experimenting with templated VMs.
	VmSkipValidationAnnotationKey string = "vm.kubevirt.io/skip-validations"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TemplateKey

type TemplateKey struct {
	Name         string
	Namespace    string
	OldNamespace string
}

func (*TemplateKey) AnyNamespace

func (t *TemplateKey) AnyNamespace() string

func (*TemplateKey) IsValid

func (t *TemplateKey) IsValid() bool

func (*TemplateKey) String

func (t *TemplateKey) String() string

type TemplateKeys

type TemplateKeys struct {
	LabelKey      TemplateKey
	AnnotationKey TemplateKey
}

func GetTemplateKeys

func GetTemplateKeys(obj meta.Object) TemplateKeys

func (*TemplateKeys) Get

func (t *TemplateKeys) Get() *TemplateKey

func (*TemplateKeys) IsValid

func (t *TemplateKeys) IsValid() bool

Jump to

Keyboard shortcuts

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