[plex-exporter] Add support for token and autodiscovery (#30)

This commit is contained in:
2021-12-08 17:00:56 +00:00
committed by GitHub
parent 30fbc3e8f7
commit c2b9442ebc
9 changed files with 42 additions and 8 deletions

View File

@@ -4,8 +4,16 @@
{{/* Append the hardcoded settings */}}
{{- define "plex-exporter.harcodedValues" -}}
args:
{{- if .Values.plex.autodiscover -}}
- "--auto-discover"
{{- else -}}
- "--plex-server"
- "{{ .Values.plex.server }}"
{{- end -}}
{{- if .Values.plex.token -}}
- "--token"
- "{{ .Values.plex.token }}"
{{- end -}}
{{- end -}}
{{- $_ := mergeOverwrite .Values (include "plex-exporter.harcodedValues" . | fromYaml) -}}