Skip to content

Commit

Permalink
Merge pull request #56 from bcgov/bug/helm-variable
Browse files Browse the repository at this point in the history
Fix helm variable for CHES secret
  • Loading branch information
kyle1morel authored Apr 5, 2024
2 parents 8c8318b + b5c9679 commit 0a7f10d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/pcns/templates/deploymentconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ spec:
valueFrom:
secretKeyRef:
key: username
name: ches-service-account
name: {{ include "pcns.configname" . }}-ches-service-account
- name: SERVER_CHES_CLIENTSECRET
valueFrom:
secretKeyRef:
key: password
name: ches-service-account
name: {{ include "pcns.configname" . }}-ches-service-account
- name: SERVER_DB_HOST
value: {{ $dbHostName }}
- name: SERVER_DB_USERNAME
Expand Down
2 changes: 1 addition & 1 deletion charts/pcns/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{{- $f1Secret := (lookup "v1" "Secret" .Release.Namespace $f1SecretName ) }}
{{- $f2SecretName := printf "%s-%s" (include "pcns.configname" .) "form2" }}
{{- $f2Secret := (lookup "v1" "Secret" .Release.Namespace $f2SecretName ) }}
{{- $chesSecretName := printf "%s-%s" "ches-service-account" }}
{{- $chesSecretName := printf "%s-%s" (include "pcns.configname" .) "ches-service-account" }}
{{- $chesSecret := (lookup "v1" "Secret" .Release.Namespace $chesSecretName ) }}
{{- $oSecretName := printf "%s-%s" (include "pcns.configname" .) "oidc" }}
{{- $oSecret := (lookup "v1" "Secret" .Release.Namespace $oSecretName ) }}
Expand Down

0 comments on commit 0a7f10d

Please sign in to comment.