This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
/
labels.go
executable file
·152 lines (127 loc) · 5.69 KB
/
labels.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
package config
/*
Copyright 2019 Crunchy Data Solutions, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// resource labels used by the operator
const LABEL_NAME = "name"
const LABEL_SELECTOR = "selector"
const LABEL_OPERATOR = "postgres-operator"
const LABEL_PG_CLUSTER = "pg-cluster"
const LABEL_PGBACKUP = "pgbackup"
const LABEL_PGTASK = "pg-task"
const LABEL_AUTOFAIL = "autofail"
const LABEL_AUTOFAIL_REPLACE_REPLICA = "autofail-replace-replica"
const LABEL_FAILOVER = "failover"
const LABEL_TARGET = "target"
const LABEL_RMDATA = "pgrmdata"
const LABEL_PGPOLICY = "pgpolicy"
const LABEL_INGEST = "ingest"
const LABEL_PGREMOVE = "pgremove"
const LABEL_PVCNAME = "pvcname"
const LABEL_COLLECT = "crunchy_collect"
const LABEL_ARCHIVE = "archive"
const LABEL_ARCHIVE_TIMEOUT = "archive-timeout"
const LABEL_CUSTOM_CONFIG = "custom-config"
const LABEL_NODE_LABEL_KEY = "NodeLabelKey"
const LABEL_NODE_LABEL_VALUE = "NodeLabelValue"
const LABEL_REPLICA_NAME = "replica-name"
const LABEL_CCP_IMAGE_TAG_KEY = "ccp-image-tag"
const LABEL_CCP_IMAGE_KEY = "ccp-image"
const LABEL_SERVICE_TYPE = "service-type"
const LABEL_REPLICA_COUNT = "replica-count"
const LABEL_RESOURCES_CONFIG = "resources-config"
const LABEL_STORAGE_CONFIG = "storage-config"
const LABEL_NODE_LABEL = "node-label"
const LABEL_VERSION = "version"
const LABEL_PGO_VERSION = "pgo-version"
const LABEL_UPGRADE_DATE = "operator-upgrade-date"
const LABEL_DELETE_DATA = "delete-data"
const LABEL_BACKREST = "pgo-backrest"
const LABEL_BACKREST_JOB = "pgo-backrest-job"
const LABEL_BACKREST_RESTORE = "pgo-backrest-restore"
const LABEL_CONTAINER_NAME = "containername"
const LABEL_POD_NAME = "podname"
const LABEL_BACKREST_REPO_SECRET = "backrest-repo-config"
const LABEL_BACKREST_COMMAND = "backrest-command"
const LABEL_BACKREST_RESTORE_FROM_CLUSTER = "backrest-restore-from-cluster"
const LABEL_BACKREST_RESTORE_TO_PVC = "backrest-restore-to-pvc"
const LABEL_BACKREST_RESTORE_OPTS = "backrest-restore-opts"
const LABEL_BACKREST_BACKUP_OPTS = "backrest-backup-opts"
const LABEL_BACKREST_OPTS = "backrest-opts"
const LABEL_BACKREST_PITR_TARGET = "backrest-pitr-target"
const LABEL_BACKREST_STORAGE_TYPE = "backrest-storage-type"
const LABEL_BADGER = "crunchy-pgbadger"
const LABEL_BACKUP_TYPE_BASEBACKUP = "pgbasebackup"
const LABEL_BACKUP_TYPE_BACKREST = "pgbackrest"
const LABEL_BACKUP_TYPE_PGDUMP = "pgdump"
const LABEL_PGDUMP_COMMAND = "pgdump"
const LABEL_PGDUMP_RESTORE = "pgdump-restore"
const LABEL_PGDUMP_OPTS = "pgdump-opts"
const LABEL_PGDUMP_HOST = "pgdump-host"
const LABEL_PGDUMP_DB = "pgdump-db"
const LABEL_PGDUMP_USER = "pgdump-user"
const LABEL_PGDUMP_PORT = "pgdump-port"
const LABEL_PGDUMP_ALL = "pgdump-all"
const LABEL_PGDUMP_PVC = "pgdump-pvc"
const LABEL_RESTORE_TYPE_PGRESTORE = "pgrestore"
const LABEL_PGRESTORE_COMMAND = "pgrestore"
const LABEL_PGRESTORE_HOST = "pgrestore-host"
const LABEL_PGRESTORE_DB = "pgrestore-db"
const LABEL_PGRESTORE_USER = "pgrestore-user"
const LABEL_PGRESTORE_PORT = "pgrestore-port"
const LABEL_PGRESTORE_FROM_CLUSTER = "pgrestore-from-cluster"
const LABEL_PGRESTORE_FROM_PVC = "pgrestore-from-pvc"
const LABEL_PGRESTORE_OPTS = "pgrestore-opts"
const LABEL_PGRESTORE_PITR_TARGET = "pgrestore-pitr-target"
const LABEL_PGBASEBACKUP_RESTORE = "pgo-pgbasebackup-restore"
const LABEL_PGBASEBACKUP_RESTORE_FROM_CLUSTER = "pgbasebackup-restore-from-cluster"
const LABEL_PGBASEBACKUP_RESTORE_FROM_PVC = "pgbasebackup-restore-from-pvc"
const LABEL_PGBASEBACKUP_RESTORE_TO_PVC = "pgbasebackup-restore-to-pvc"
const LABEL_PGBASEBACKUP_RESTORE_BACKUP_PATH = "pgbasebackup-restore-backup-path"
const LABEL_DATA_ROOT = "data-root"
const LABEL_PVC_NAME = "pvc-name"
const LABEL_VOLUME_NAME = "volume-name"
const LABEL_SESSION_ID = "sessionid"
const LABEL_USERNAME = "username"
const LABEL_PASSWORD = "password"
const LABEL_PGPOOL = "crunchy-pgpool"
const LABEL_PGPOOL_POD = "crunchy-pgpool-pod"
const LABEL_PGPOOL_SECRET = "pgpool-secret"
const LABEL_PGPOOL_TASK_ADD = "pgpool-add"
const LABEL_PGPOOL_TASK_DELETE = "pgpool-delete"
const LABEL_PGPOOL_TASK_CLUSTER = "pgpool-cluster"
const LABEL_PGPOOL_TASK_RECONFIGURE = "pgpool-reconfigure"
const LABEL_PGBOUNCER = "crunchy-pgbouncer"
const LABEL_PGBOUNCER_SECRET = "pgbouncer-secret"
const LABEL_PGBOUNCER_TASK_ADD = "pgbouncer-add"
const LABEL_PGBOUNCER_TASK_DELETE = "pgbouncer-delete"
const LABEL_PGBOUNCER_TASK_CLUSTER = "pgbouncer-cluster"
const LABEL_PGBOUNCER_TASK_RECONFIGURE = "pgbouncer-reconfigure"
const LABEL_PGBOUNCER_USER = "pgbouncer-user"
const LABEL_PGBOUNCER_PASS = "pgbouncer-password"
const LABEL_JOB_NAME = "job-name"
const LABEL_PGBACKREST_STANZA = "pgbackrest-stanza"
const LABEL_PGBACKREST_DB_PATH = "pgbackrest-db-path"
const LABEL_PGBACKREST_REPO_PATH = "pgbackrest-repo-path"
const LABEL_PGBACKREST_REPO_HOST = "pgbackrest-repo-host"
const LABEL_PGO_BACKREST_REPO = "pgo-backrest-repo"
const LABEL_PGO_BENCHMARK = "pgo-benchmark"
const LABEL_DEPLOYMENT_NAME = "deployment-name"
const LABEL_SERVICE_NAME = "service-name"
const LABEL_CURRENT_PRIMARY = "current-primary"
const LABEL_CLAIM_NAME = "claimName"
const LABEL_TRUE = "true"
const LABEL_FALSE = "false"
const LABEL_NAMESPACE = "namespace"
const LABEL_VENDOR = "vendor"
const LABEL_PGO_DEFAULT_SC = "pgo-default-sc"
const GLOBAL_CUSTOM_CONFIGMAP = "pgo-custom-pg-config"