From ec08556fc14fb8a2f21636087606b82d3850b7c1 Mon Sep 17 00:00:00 2001 From: Leo Q Date: Fri, 1 Jul 2022 19:01:52 +0800 Subject: [PATCH] fix volume mount bugs (#27) * fix volume mount bugs * fix version --- charts/archery/Chart.yaml | 2 +- charts/archery/templates/deployment.yaml | 19 ++++--------------- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/charts/archery/Chart.yaml b/charts/archery/Chart.yaml index 702cb81..63a4b31 100644 --- a/charts/archery/Chart.yaml +++ b/charts/archery/Chart.yaml @@ -3,7 +3,7 @@ appVersion: "1.0" home: https://archerydms.com/ description: Archery Helm chart for Kubernetes name: archery -version: 0.2.2 +version: 0.2.3 sources: - https://github.com/hhyo/Archery diff --git a/charts/archery/templates/deployment.yaml b/charts/archery/templates/deployment.yaml index 03b406b..0303df6 100644 --- a/charts/archery/templates/deployment.yaml +++ b/charts/archery/templates/deployment.yaml @@ -77,21 +77,10 @@ spec: {{- with .Values.envs }} {{ toYaml . | nindent 12 }} {{- end}} + {{- with .Values.volumeMounts }} volumeMounts: - - name: archery-settings - subPath: local_settings.py - mountPath: /opt/archery/local_settings.py - - name: archery-settings - subPath: init-archery.sh - mountPath: /opt/archery/src/docker/init-archery.sh - - name: archery-settings - subPath: createsuperuser.py - mountPath: /opt/archery/src/docker/createsuperuser.py - - mountPath: /opt/archery/downloads - name: archery-download - - mountPath: /opt/archery/src/script - name: archery-script - command: ['/bin/bash','/opt/archery/src/docker/init-archery.sh'] + {{- toYaml . | nindent 12 }} + {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" @@ -155,7 +144,7 @@ spec: {{- with .Values.volumeMounts }} volumeMounts: {{- toYaml . | nindent 12 }} - {{- end }} + {{- end }} {{- with .Values.volumes }} volumes: {{- toYaml . | nindent 8 }}