HostPath and emptyDir (#48)

This commit is contained in:
Laszlo Fogas
2022-08-02 15:20:29 +02:00
committed by GitHub
parent 5e19d886e5
commit c3df85fef6
7 changed files with 146 additions and 15 deletions
+10
View File
@@ -3,12 +3,22 @@
volumes:
{{- range .Values.volumes }}
- name: {{ .name }}
{{- if .emptyDir }}
emptyDir: {}
{{- else if .hostPath }}
hostPath:
path: {{ .hostPath.path }}
{{- if .hostPath.type }}
type: {{ .hostPath.type }}
{{- end }}
{{- else }}
persistentVolumeClaim:
{{- if .existingClaim }}
claimName: {{ .existingClaim }}
{{ else }}
claimName: {{ printf "%s-%s" $.Release.Name .name }}
{{- end }}
{{- end }}
{{- end }}
{{- range .Values.sealedFileSecrets }}
- name: {{ .name }}