mirror of
https://github.com/nikdoof/helm-charts.git
synced 2025-12-24 07:09:30 +00:00
[plex-exporter] Fix issues with Autodiscovery (#31)
This commit is contained in:
@@ -4,16 +4,16 @@
|
||||
{{/* Append the hardcoded settings */}}
|
||||
{{- define "plex-exporter.harcodedValues" -}}
|
||||
args:
|
||||
{{- if .Values.plex.autodiscover -}}
|
||||
- "--auto-discover"
|
||||
{{- else -}}
|
||||
{{ if .Values.plex.server }}
|
||||
- "--plex-server"
|
||||
- "{{ .Values.plex.server }}"
|
||||
{{- end -}}
|
||||
{{- if .Values.plex.token -}}
|
||||
{{ else }}
|
||||
- "--auto-discover"
|
||||
{{ end }}
|
||||
{{ if .Values.plex.token }}
|
||||
- "--token"
|
||||
- "{{ .Values.plex.token }}"
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
{{- $_ := mergeOverwrite .Values (include "plex-exporter.harcodedValues" . | fromYaml) -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user