From 3f54137ccb222cd075937defbdf53fee81fd5dc3 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Fri, 28 Aug 2020 15:30:00 -0400 Subject: [PATCH] fix template issue, ? (#344) --- charts/plex/Chart.yaml | 2 +- charts/plex/templates/deployment.yaml | 32 +++++++++---------- charts/plex/templates/promtail-configmap.yaml | 2 +- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/charts/plex/Chart.yaml b/charts/plex/Chart.yaml index 1baf32a6..1b6775fd 100644 --- a/charts/plex/Chart.yaml +++ b/charts/plex/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 1.19.5.3112-b23ab3896 description: Plex Media Server name: plex -version: 1.8.2 +version: 1.8.3 keywords: - plex home: https://plex.tv/ diff --git a/charts/plex/templates/deployment.yaml b/charts/plex/templates/deployment.yaml index c4ae1df8..827a3db4 100644 --- a/charts/plex/templates/deployment.yaml +++ b/charts/plex/templates/deployment.yaml @@ -62,20 +62,20 @@ spec: {{- end }} {{- end }} containers: - {{- if .Values.logging.promtail.enabled -}} + {{- if .Values.logging.promtail.enabled }} - name: {{ .Chart.Name }}-promtail image: "{{ .Values.logging.promtail.image.repository }}:{{ .Values.logging.promtail.image.tag }}" imagePullPolicy: {{ .Values.logging.promtail.image.pullPolicy }} args: - - -config.file=/etc/promtail/promtail.yaml + - -config.file=/etc/promtail/promtail.yaml volumeMounts: - - name: promtail-config - mountPath: /etc/promtail/promtail.yaml - subPath: promtail.yaml - readOnly: true - - name: shared-logs - mountPath: /plex-logs - {{ end }} + - name: promtail-config + mountPath: /etc/promtail/promtail.yaml + subPath: promtail.yaml + readOnly: true + - name: shared-logs + mountPath: /plex-logs + {{- end }} - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} @@ -321,18 +321,18 @@ spec: defaultMode: {{ .Values.certificate.pkcsMangler.volume.defaultMode }} - name: {{ .Values.certificate.pkcsMangler.certificateSecret.volume.name }} secret: - secretName: {{ .Values.certificate.pkcsMangler.certificateSecret.name }} + secretName: {{ .Values.certificate.pkcsMangler.certificateSecret.name }} {{- end }} - {{- if .Values.logging.promtail.enabled -}} + {{- if .Values.logging.promtail.enabled }} - name: promtail-config projected: defaultMode: 0444 sources: - - configMap: - name: {{ template "plex.fullname" . }}-promtail - items: - - key: promtail.yaml - path: promtail.yaml + - configMap: + name: {{ template "plex.fullname" . }}-promtail + items: + - key: promtail.yaml + path: promtail.yaml {{- end }} ##### VOLUMES END ##### {{- with .Values.nodeSelector }} diff --git a/charts/plex/templates/promtail-configmap.yaml b/charts/plex/templates/promtail-configmap.yaml index e79fea48..c64e102b 100644 --- a/charts/plex/templates/promtail-configmap.yaml +++ b/charts/plex/templates/promtail-configmap.yaml @@ -1,4 +1,4 @@ -{{- if .Values.logging.promtail.enabled -}} +{{- if .Values.logging.promtail.enabled }} apiVersion: v1 kind: ConfigMap metadata: