You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: devops/openshift/database-backup/backup-deploy.yaml
+16-22
Original file line number
Diff line number
Diff line change
@@ -103,7 +103,6 @@ objects:
103
103
app: ${APP_NAME}
104
104
role: ${ROLE}
105
105
env: ${TAG_NAME}
106
-
app.kubernetes.io/part-of: ${GROUP_LABEL}
107
106
spec:
108
107
strategy:
109
108
type: Recreate
@@ -141,7 +140,7 @@ objects:
141
140
configMap:
142
141
name: ${CONFIG_MAP_NAME}
143
142
items:
144
-
- key: ${CONFIG_FILE_NAME}
143
+
- key: ${CUSTOM_CONFIG_FILE_NAME}
145
144
path: ${CONFIG_FILE_NAME}
146
145
containers:
147
146
- name: ${NAME}
@@ -170,16 +169,16 @@ objects:
170
169
value: ${MONGODB_AUTHENTICATION_DATABASE}
171
170
- name: TABLE_SCHEMA
172
171
value: ${TABLE_SCHEMA}
173
-
- name: ${DATABASE_SERVER_NAME}_USER
172
+
- name: DATABASE_USER
174
173
valueFrom:
175
174
secretKeyRef:
176
-
name: ${DATABASE_SECRET_NAME}
177
-
key: ${DATABASE_SECRET_USER_KEY_NAME}
178
-
- name: ${DATABASE_SERVER_NAME}_PASSWORD
175
+
name: ${DATABASE_DEPLOYMENT_NAME}
176
+
key: ${DATABASE_USER_KEY_NAME}
177
+
- name: DATABASE_PASSWORD
179
178
valueFrom:
180
179
secretKeyRef:
181
-
name: ${DATABASE_SECRET_NAME}
182
-
key: ${DATABASE_SECRET_PASSWORD_KEY_NAME}
180
+
name: ${DATABASE_DEPLOYMENT_NAME}
181
+
key: ${DATABASE_PASSWORD_KEY_NAME}
183
182
- name: FTP_URL
184
183
valueFrom:
185
184
secretKeyRef:
@@ -271,22 +270,17 @@ parameters:
271
270
description: This is only required if you are backing up mongo database with a separate authentication database.
272
271
required: false
273
272
value: ""
274
-
- name: DATABASE_SECRET_NAME
273
+
- name: DATABASE_DEPLOYMENT_NAME
275
274
displayName: Database Deployment Name
276
275
description: The name associated to the database deployment resources. In particular, this is used to wire up the credentials associated to the database.
277
276
required: true
278
277
value: postgresql
279
-
- name: DATABASE_SERVER_NAME
280
-
displayName: Database server name
281
-
description: Database server name all uppercase. Should be the same server name from backup.conf file (e.g. PATRONI_MASTER).
282
-
required: true
283
-
value: SERVER_NAME
284
-
- name: DATABASE_SECRET_USER_KEY_NAME
278
+
- name: DATABASE_USER_KEY_NAME
285
279
displayName: Database User Key Name
286
280
description: The database user key name stored in database deployment resources specified by DATABASE_DEPLOYMENT_NAME.
287
281
required: true
288
282
value: database-user
289
-
- name: DATABASE_SECRET_PASSWORD_KEY_NAME
283
+
- name: DATABASE_PASSWORD_KEY_NAME
290
284
displayName: Database Password Key Name
291
285
description: The database password key name stored in database deployment resources specified by DATABASE_DEPLOYMENT_NAME.
292
286
required: true
@@ -380,6 +374,11 @@ parameters:
380
374
description: Used for backward compatibility only. Ignored when using the recommended `backup.conf` and cron backup strategy. Period (d,m,s) between backups in a format used by the sleep command
381
375
required: false
382
376
value: ""
377
+
- name: CUSTOM_CONFIG_FILE_NAME
378
+
displayName: Custom Config File Name
379
+
description: The name of the custom configuration file.
380
+
required: true
381
+
value: backup.conf
383
382
- name: CONFIG_FILE_NAME
384
383
displayName: Config File Name
385
384
description: The name of the configuration file.
@@ -449,9 +448,4 @@ parameters:
449
448
displayName: Resources Memory Limit
450
449
description: The resources Memory limit (in Mi, Gi, etc) for this build.
0 commit comments