Skip to content

Commit

Permalink
chore: add ches integration secret to cas-provision templates
Browse files Browse the repository at this point in the history
  • Loading branch information
dleard committed Apr 18, 2024
1 parent 2b1087d commit 9924fac
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions helm/cas-provision/templates/chesIntegration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{{- if hasPrefix .Values.namespacePrefixes.obps .Release.Namespace}}
kind: Secret
apiVersion: v1
metadata:
name: ches-integration
labels: {{ include "cas-provision.labels" . | nindent 4 }}
type: Opaque
stringData:
{{- if hasSuffix "-dev" .Release.Namespace }}
clientId: {{ .Values.ches.obps.dev.clientId }}
clientSecret: {{ .Values.ches.obps.dev.clientSecret }}
tokenEndpoint: {{ .Values.ches.obps.dev.tokenEndpoint }}
apiUrl: {{ .Values.ches.obps.dev.apiUrl }}
{{- end }}
{{- if hasSuffix "-test" .Release.Namespace }}
clientId: {{ .Values.ches.obps.test.clientId }}
clientSecret: {{ .Values.ches.obps.test.clientSecret }}
tokenEndpoint: {{ .Values.ches.obps.test.tokenEndpoint }}
apiUrl: {{ .Values.ches.obps.test.apiUrl }}
{{- end }}
{{- if hasSuffix "-prod" .Release.Namespace }}
clientId: {{ .Values.ches.obps.prod.clientId }}
clientSecret: {{ .Values.ches.obps.prod.clientSecret }}
tokenEndpoint: {{ .Values.ches.obps.prod.tokenEndpoint }}
apiUrl: {{ .Values.ches.obps.prod.apiUrl }}
{{- end }}

{{- end }}

0 comments on commit 9924fac

Please sign in to comment.