Documentation
¶
Index ¶
- Constants
- type Label
- func (l Label) Component(name string) Label
- func (l Label) ComponentType() string
- func (l Label) Instance(name string) Label
- func (l Label) LabelSelector() *metav1.LabelSelector
- func (l Label) Labels() map[string]string
- func (l Label) Selector() (labels.Selector, error)
- func (l Label) String() string
- func (l Label) Zone(zone string) Label
Constants ¶
View Source
const ( // ManagedByLabelKey is Kubernetes recommended label key, it represents the tool being used to manage the operation of an application // For resources managed by OneCloud Operator, its value is always onecloud-operator ManagedByLabelKey string = constants.ManagedByLabelKey // ComponentLabelKey is Kubernetes recommended label key, it represents the component within the architecture ComponentLabelKey string = constants.ComponentLabelKey // NameLabelKey is Kubernetes recommended label key, it represents the name of the application // It should always be onecloud-cluster in our case. NameLabelKey string = constants.NameLabelKey // InstanceLabelKey is Kubernetes recommended label key, it represents a unique name identifying the instance of an application // It's set by helm when installing a release InstanceLabelKey string = constants.InstanceLabelKey AppLabelKey string = constants.AppLabelKey ZoneLabelKey string = constants.ZoneLabelKey )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Label ¶
Label is the label field in metadata
func (Label) ComponentType ¶
ComponentType returns component type
func (Label) LabelSelector ¶
func (l Label) LabelSelector() *metav1.LabelSelector
LabelSelector gets LabelSelector from label
Click to show internal directories.
Click to hide internal directories.