generated from cybozu-go/neco-template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
meta.go
33 lines (28 loc) · 904 Bytes
/
meta.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package constants
// MetaPrefix is the MetaPrefix for labels, annotations, and finalizers of Accurate.
const MetaPrefix = "accurate.cybozu.com/"
// Finalizer is the finalizer ID of Accurate.
const Finalizer = MetaPrefix + "finalizer"
// Labels
const (
LabelType = MetaPrefix + "type"
LabelTemplate = MetaPrefix + "template"
LabelParent = MetaPrefix + "parent"
LabelCreatedBy = "app.kubernetes.io/created-by"
)
// Annotations
const (
AnnFrom = MetaPrefix + "from"
AnnPropagate = MetaPrefix + "propagate"
AnnPropagateGenerated = MetaPrefix + "propagate-generated"
AnnGenerated = MetaPrefix + "generated"
)
// Label or annotation values
const (
CreatedBy = "accurate"
NSTypeTemplate = "template"
NSTypeRoot = "root"
PropagateCreate = "create"
PropagateUpdate = "update"
PropagateAny = "any" // defined as an in-memory index value
)