Update Helm chart secret
-{{- define "client.config" }}
- address: {{ .Values.address | quote }}
- oauth2:
- client_id: {{ .Values.oauth2ClientID | quote }}
- client_secret: {{ .Values.oauth2ClientSecret | quote }}
- token_url: {{ .Values.oauth2TokenURL | quote }}
-{{- end }}
apiVersion: v1
kind: Secret
metadata:
- name: client-config
+ name: {{ .Release.Name }}-manager
labels:
app.kubernetes.io/name: redskyops
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
@@ -17,4 +10,7 @@ metadata:
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
type: Opaque
data:
- client.yaml: {{ include "client.config" . | b64enc }}
+ REDSKY_ADDRESS: {{ .Values.address | b64enc | quote }}
+ REDSKY_OAUTH2_CLIENT_ID: {{ .Values.oauth2ClientID | b64enc | quote }}
+ REDSKY_OAUTH2_CLIENT_SECRET: {{ .Values.oauth2ClientSecret | b64enc | quote }}
+ REDSKY_OAUTH2_TOKEN_URL: {{ .Values.oauth2TokenURL | b64enc | quote }}
