2020-11-01 06:43:45 +00:00
|
|
|
package label
|
|
|
|
|
|
|
|
const (
|
|
|
|
// The following labels are recommended by kubernetes https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/
|
|
|
|
|
|
|
|
// ManagedByLabelKey is Kubernetes recommended label key, it represents the tool being used to manage the operation of an application
|
|
|
|
// For resources managed by SeaweedFS Operator, its value is always seaweedfs-operator
|
|
|
|
ManagedByLabelKey string = "app.kubernetes.io/managed-by"
|
|
|
|
// ComponentLabelKey is Kubernetes recommended label key, it represents the component within the architecture
|
|
|
|
ComponentLabelKey string = "app.kubernetes.io/component"
|
|
|
|
// NameLabelKey is Kubernetes recommended label key, it represents the name of the application
|
|
|
|
NameLabelKey string = "app.kubernetes.io/name"
|
|
|
|
// 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 = "app.kubernetes.io/instance"
|
|
|
|
// VersionLabelKey is Kubernetes recommended label key, it represents the version of the app
|
|
|
|
VersionLabelKey string = "app.kubernetes.io/version"
|
2020-11-10 07:48:22 +00:00
|
|
|
|
|
|
|
// PodName is to select pod by name
|
|
|
|
// https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-selector
|
|
|
|
PodName string = "statefulset.kubernetes.io/pod-name"
|
2020-11-01 06:43:45 +00:00
|
|
|
)
|