Skip to content

Commit

Permalink
Handle duplicate secret
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed May 14, 2024
1 parent 097ea44 commit 7a50882
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
1 change: 1 addition & 0 deletions common/openshift.init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ objects:
stringData:
database-name: ${NAME}
database-password: ${DB_PASSWORD}
database-port: ${POSTGRES_PORT}
database-user: ${NAME}
- apiVersion: v1
kind: Secret
Expand Down
18 changes: 0 additions & 18 deletions database/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,11 @@ parameters:
- name: ORG
description: GitHub organization name
value: bcgov
- name: POSTGRES_PORT
description: Postgres database port
value: "5432"
- name: REPO
description: Repository name
value: nr-spar

### Usually a bad idea - not recommended
- name: POSTGRES_PASSWORD
description: Password for the PostgreSQL connection user.
from: "[a-zA-Z0-9]{16}"
generate: expression
- name: REGISTRY
description: Container registry to import from (internal is image-registry.openshift-image-registry.svc:5000)
value: ghcr.io
Expand All @@ -54,17 +47,6 @@ parameters:
- name: MAX_REPLICAS
description: Dummy value for workflow convenience
objects:
- apiVersion: v1
kind: Secret
metadata:
name: ${REPO}-${ZONE}-${APP}
labels:
app: ${REPO}-${ZONE}
stringData:
database-name: ${APP}
database-password: ${POSTGRES_PASSWORD}
database-port: ${POSTGRES_PORT}
database-user: ${APP}
- kind: PersistentVolumeClaim
apiVersion: v1
metadata:
Expand Down

0 comments on commit 7a50882

Please sign in to comment.