Skip to content

Commit

Permalink
fix(16):
Browse files Browse the repository at this point in the history
- fix the pipeline to read password from sercrets
refs: #16
  • Loading branch information
MCatherine1994 committed Jul 11, 2023
1 parent 566c0b2 commit 01b33a7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion backend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ parameters:
description: The password of the IDIM web serivce
required: true
objects:
- apiVersion: networking.k8s.io/v1
kind: Secret
metadata:
name: ${NAME}-${ZONE}-${COMPONENT}
labels:
app: ${NAME}-${ZONE}
stringData:
idim-web-service-password: "${IDIM_WEB_SERVICE_PASSWORD}"
- apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
Expand Down Expand Up @@ -138,7 +146,10 @@ objects:
- name: IDIM_WEB_SERVICE_USERNAME
value: ${IDIM_WEB_SERVICE_USERNAME}
- name: IDIM_WEB_SERVICE_PASSWORD
value: ${IDIM_WEB_SERVICE_PASSWORD}
valueFrom:
secretKeyRef:
name: ${NAME}-${ZONE}-${COMPONENT}
key: idim-web-service-password
ports:
- containerPort: 3000
protocol: TCP
Expand Down

0 comments on commit 01b33a7

Please sign in to comment.