From ded55372c6dfc56ef2af42c433ed82395eb732ed Mon Sep 17 00:00:00 2001 From: LecygneNoir Date: Sun, 12 Jan 2020 11:29:25 +0100 Subject: [PATCH] Patch somes values to be more helm linter compliant --- Chart.yaml | 4 ++-- templates/deployment.yaml | 4 ++-- templates/peertube-init.yml | 2 +- sample/values.yml => values.yaml | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) rename sample/values.yml => values.yaml (91%) diff --git a/Chart.yaml b/Chart.yaml index 62c3323..7570ff3 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v1 -appVersion: "1.0.x" +appVersion: "1.0.1" description: A Helm chart for Kubernetes name: peertube -version: 0.1.0 +version: 1.0.0 diff --git a/templates/deployment.yaml b/templates/deployment.yaml index dc7bf23..908d360 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -20,7 +20,7 @@ spec: release: {{ .Release.Name }} spec: initContainers: - - name: initPeertube + - name: init-peertube image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} volumeMounts: @@ -51,7 +51,7 @@ spec: httpGet: path: / port: http - initialDelaySeconds: 90 + initialDelaySeconds: 60 command: - gosu - peertube diff --git a/templates/peertube-init.yml b/templates/peertube-init.yml index 56aae31..84f9e8b 100644 --- a/templates/peertube-init.yml +++ b/templates/peertube-init.yml @@ -3,4 +3,4 @@ kind: ConfigMap metadata: name: peertube-init data: - {{ (.Files.Glob "scripts/peertube-init.sh").AsConfig | indent 2 }} \ No newline at end of file + {{- (.Files.Glob "scripts/peertube-init.sh").AsConfig | nindent 2 }} \ No newline at end of file diff --git a/sample/values.yml b/values.yaml similarity index 91% rename from sample/values.yml rename to values.yaml index b7edc38..cccd3ef 100644 --- a/sample/values.yml +++ b/values.yaml @@ -53,7 +53,7 @@ tolerations: [] # values: # - yournodes.domain.tld -# Currently pvc are not handled by helm, you need to create both config and data volume before launching the helm +# PVC are not handled by helm, you need to create both config and data volume before launching the helm persistence: data: enabled: true @@ -87,7 +87,7 @@ redis: persistence: enabled: true path: /data - # Currently pvc are not handled by helm, you need to create redis volume before deploying helm + # PVC are not handled by helm, you need to create redis volume before deploying helm persistence: enabled: true existingClaim: pvc-redis-prod