Skip to content

Commit

Permalink
Merge pull request bcgov#213 from esune/feature/issuer-kit-db
Browse files Browse the repository at this point in the history
Add labels to issuer-kit-db to enable backup-container access
  • Loading branch information
WadeBarnes authored May 22, 2024
2 parents 4521385 + 4ddea36 commit f6b983a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions openshift/templates/issuer-db/issuer-db-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ objects:
name: ${NAME}${SUFFIX}
app: ${APP_NAME}${SUFFIX}
env: ${TAG_NAME}
backup: ${BACKUP}
spec:
description: |
Allow the api(s) to access the db.
Expand Down Expand Up @@ -59,6 +60,7 @@ objects:
role: ${ROLE}
env: ${TAG_NAME}
template: ${NAME}${SUFFIX}
backup: ${BACKUP}
spec:
strategy:
type: Recreate
Expand Down Expand Up @@ -90,6 +92,7 @@ objects:
app-group: ${APP_GROUP}
role: ${ROLE}
env: ${TAG_NAME}
backup: ${BACKUP}
spec:
volumes:
- name: ${NAME}${SUFFIX}-data
Expand Down Expand Up @@ -173,6 +176,7 @@ objects:
role: ${ROLE}
env: ${TAG_NAME}
template: ${NAME}${SUFFIX}
backup: ${BACKUP}
spec:
storageClassName: ${PERSISTENT_VOLUME_CLASS}
accessModes:
Expand All @@ -191,6 +195,7 @@ objects:
app-group: ${APP_GROUP}
role: ${ROLE}
env: ${TAG_NAME}
backup: ${BACKUP}
stringData:
admin-password: ${MONGODB_ADMIN_PASSWORD}
database-password: ${MONGODB_PASSWORD}
Expand All @@ -208,6 +213,7 @@ objects:
role: ${ROLE}
env: ${TAG_NAME}
template: ${NAME}${SUFFIX}
backup: ${BACKUP}
spec:
ports:
- name: mongodb
Expand Down Expand Up @@ -258,6 +264,12 @@ parameters:
Policies
required: true
value: controller
- name: BACKUP
displayName: Backup Target
description:
allow the backup container access to this pod
required: true
value: "true"
- name: IMAGE_NAMESPACE
displayName: Image Namespace
required: true
Expand Down

0 comments on commit f6b983a

Please sign in to comment.