-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigmap.yaml
More file actions
37 lines (32 loc) · 995 Bytes
/
configmap.yaml
File metadata and controls
37 lines (32 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{{/*
ConfigMap template for Tautulli
Creates a Kubernetes ConfigMap resource containing configuration data,
providing non-sensitive configuration settings and environment variables for the application.
*/}}
{{- if .Values.tautulli.configMap.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "tautulli.fullname" . }}-config
labels:
{{- include "tautulli.labels" . | nindent 4 }}
component: config
data:
{{- range $key, $value := .Values.tautulli.configMap.data }}
{{ $key }}: |
{{- $value | nindent 4 }}
{{- end }}
# Default configuration
timezone: {{ .Values.global.timezone | quote }}
{{- if .Values.tautulli.configMap.scripts }}
# Custom scripts
{{- range $name, $script := .Values.tautulli.configMap.scripts }}
{{ $name }}: |
{{- $script | nindent 4 }}
{{- end }}
{{- end }}
# Plex server configuration
{{- if .Values.tautulli.plex.url }}
plex-url: {{ .Values.tautulli.plex.url | quote }}
{{- end }}
{{- end }}