From ad0d6416d0152222efebede1f0522101bc98b62b Mon Sep 17 00:00:00 2001 From: Nikolas M Skoufis Date: Mon, 23 Apr 2018 22:13:53 +1000 Subject: [PATCH 1/2] Add ability to set timezone in values.yaml This adds the ability to be able to set the timezone in the values.yaml file. Currently this defaults to Europe/London as with the original chart. --- charts/kube-plex/templates/deployment.yaml | 2 +- charts/kube-plex/values.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/kube-plex/templates/deployment.yaml b/charts/kube-plex/templates/deployment.yaml index 36cf26d..27f41b1 100644 --- a/charts/kube-plex/templates/deployment.yaml +++ b/charts/kube-plex/templates/deployment.yaml @@ -57,7 +57,7 @@ spec: # port: 32400 env: - name: TZ - value: Europe/London + value: {{ .Values.timezone }} # TODO: move this to a secret? - name: PLEX_CLAIM value: "{{ .Values.claimToken }}" diff --git a/charts/kube-plex/values.yaml b/charts/kube-plex/values.yaml index fb07438..92c9096 100644 --- a/charts/kube-plex/values.yaml +++ b/charts/kube-plex/values.yaml @@ -14,6 +14,9 @@ kubePlexImage: # Override this with the plex claim token from plex.tv/claim claimToken: "" +# Set the timezone of the plex server +timezone: Europe/London + service: type: ClusterIP From 26e43a5b6935fc1aa732afde808b8bf2ee0aa9b7 Mon Sep 17 00:00:00 2001 From: Nikolas M Skoufis Date: Mon, 23 Apr 2018 22:15:58 +1000 Subject: [PATCH 2/2] Fix up yaml replacement syntax Need the quotes around it if it's the only value --- charts/kube-plex/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/kube-plex/templates/deployment.yaml b/charts/kube-plex/templates/deployment.yaml index 27f41b1..62e04b4 100644 --- a/charts/kube-plex/templates/deployment.yaml +++ b/charts/kube-plex/templates/deployment.yaml @@ -57,7 +57,7 @@ spec: # port: 32400 env: - name: TZ - value: {{ .Values.timezone }} + value: "{{ .Values.timezone }}" # TODO: move this to a secret? - name: PLEX_CLAIM value: "{{ .Values.claimToken }}"