Skip to content

Commit

Permalink
fix volume mount bugs (#27)
Browse files Browse the repository at this point in the history
* fix volume mount bugs

* fix version
  • Loading branch information
LeoQuote authored Jul 1, 2022
1 parent c01c82c commit ec08556
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
2 changes: 1 addition & 1 deletion charts/archery/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
19 changes: 4 additions & 15 deletions charts/archery/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down Expand Up @@ -155,7 +144,7 @@ spec:
{{- with .Values.volumeMounts }}
volumeMounts:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- with .Values.volumes }}
volumes:
{{- toYaml . | nindent 8 }}
Expand Down

0 comments on commit ec08556

Please sign in to comment.