14 lines
549 B
YAML
14 lines
549 B
YAML
|
apiVersion: v1
|
||
|
kind: Secret
|
||
|
metadata:
|
||
|
name: twitchoauth
|
||
|
labels:
|
||
|
{{- include "twitchsingstools.labels" . | nindent 4 }}
|
||
|
type: Opaque
|
||
|
data:
|
||
|
ircoauth.json: {{ printf "{ \"nick\": \"%s\", \"password\": \"%s\" }" .Values.irc.nick .Values.irc.password | b64enc | quote }}
|
||
|
appoauth.json: {{ printf "{ \"client_secret\": \"%s\", \"client_id\": \"%s\" }" .Values.twitchapp.client_secret .Values.twitchapp.client_id | b64enc | quote }}
|
||
|
{{- range $key, $value := .Values.secretFiles }}
|
||
|
{{ $key }} : {{ $value | b64enc | quote }}
|
||
|
{{- end }}
|