Skip to content

Commit

Permalink
Have volumes and mounts also conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgianaElena committed Sep 3, 2024
1 parent ef53c29 commit 83182d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helm-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,17 @@ spec:
- name: db
mountPath: /mnt
readOnly: false
{{- if .Values.yamlSettings.enabled }}
- name: django-yamlconf
mountPath: /mnt/unnamed-thingity-thing/
subPath: comptest.yaml
{{- end }}
volumes:
- name: db
persistentVolumeClaim:
claimName: db-pvc
{{- if .Values.yamlSettings.enabled }}
- name: django-yamlconf
configMap:
name: {{ include "unnamed.fullname" . }}-django-yamlconf
{{- end }}

0 comments on commit 83182d6

Please sign in to comment.