generated from cybozu-go/neco-template
/
meta.go
27 lines (23 loc) · 871 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
package constants
// label keys and values
const (
LabelAppInstance = "app.kubernetes.io/instance"
LabelAppNamespace = "app.kubernetes.io/instance-namespace"
LabelAppName = "app.kubernetes.io/name"
AppNameMySQL = "mysql"
AppNameBackup = "mysql-backup"
LabelAppCreatedBy = "app.kubernetes.io/created-by"
AppCreator = "moco"
LabelMocoRole = "moco.cybozu.com/role"
RolePrimary = "primary"
RoleReplica = "replica"
)
// annotation keys and values
const (
AnnDemote = "moco.cybozu.com/demote"
AnnSecretVersion = "moco.cybozu.com/secret-version"
AnnClusteringStopped = "moco.cybozu.com/clustering-stopped"
AnnReconciliationStopped = "moco.cybozu.com/reconciliation-stopped"
)
// MySQLClusterFinalizer is the finalizer specifier for MySQLCluster.
const MySQLClusterFinalizer = "moco.cybozu.com/mysqlcluster"