feat(chart): set the Deezer ARL from values
- new deezer.arl value rendered as DEEZER_ARL - existingSecret and arl are mutually exclusive - values.local.yaml is gitignored; README documents both options - chart 0.4.1 and a chart check for the new value
This commit is contained in:
1 parent
26c41cc7d9
commit
de1e95bfc6
6 files changed
+67
-5
No files matched your search
@@ -4,6 +4,9 @@
|
||||
{{- if not (has (int .Values.deezer.quality) (list 0 1)) }}
|
||||
{{- fail "deezer.quality must be 0 (128 kbps) or 1 (320 kbps)" }}
|
||||
{{- end }}
|
||||
{{- if and .Values.deezer.arl .Values.deezer.existingSecret }}
|
||||
{{- fail "set only one of deezer.arl and deezer.existingSecret" }}
|
||||
{{- end }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
@@ -65,6 +68,9 @@ spec:
|
||||
name: {{ .Values.deezer.existingSecret }}
|
||||
key: {{ .Values.deezer.key }}
|
||||
optional: true
|
||||
{{- else if .Values.deezer.arl }}
|
||||
- name: DEEZER_ARL
|
||||
value: {{ .Values.deezer.arl | quote }}
|
||||
{{- end }}
|
||||
{{- with .Values.env }}
|
||||
{{- toYaml . | nindent 12 }}
|
||||
|
||||
Reference in new issue
Block a user