Skip to content

Commit

Permalink
Merge pull request #81 from bcgov/chore/add-obps-kc-client-secrets
Browse files Browse the repository at this point in the history
chore: add obps kc_client_secret deployment to cas-provision
  • Loading branch information
mikevespi authored Nov 18, 2023
2 parents 0980dd0 + 7da4fd6 commit 300ae0b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions helm/cas-provision/templates/kcClientSecret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,17 @@ stringData:
kcClientSecret: {{ .Values.kcClientSecrets.ggircs.prod }}
{{- end }}
{{- end }}
# OBPS client secrets
{{- if hasPrefix .Values.namespacePrefixes.obps .Release.Namespace }}
{{- if hasSuffix "-dev" .Release.Namespace }}
kcClientSecret: {{ .Values.kcClientSecrets.obps.dev }}
{{- end }}
{{- if hasSuffix "-test" .Release.Namespace }}
kcClientSecret: {{ .Values.kcClientSecrets.obps.test }}
{{- end }}
{{- if hasSuffix "-prod" .Release.Namespace }}
kcClientSecret: {{ .Values.kcClientSecrets.obps.prod }}
{{- end }}
{{- end }}

{{- end }}

0 comments on commit 300ae0b

Please sign in to comment.