add optional PVC

This commit is contained in:
jessebot
2025-01-23 23:13:32 +01:00
parent 24c5e7d3a2
commit 4319059a58
6 changed files with 39 additions and 4 deletions
+11 -2
View File
@@ -259,7 +259,7 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if or .Values.extraVolumeMounts .Values.phpConfigs }}
{{- if or .Values.extraVolumeMounts .Values.phpConfigs .Values.persistence.enabled }}
volumeMounts:
{{- with .Values.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
@@ -269,13 +269,22 @@ spec:
mountPath: {{ print "/usr/local/etc/php-fpm.d/%s" $key | quote }}
subPath: {{ $key }}
{{- end }}
{{- if .Values.persistence.enabled }}
- name: storage
mountPath: /var/www/storage
{{- end }}
{{- end }}{{/* end volumeMounts */}}
{{- if or .Values.phpConfigs .Values.extraVolumes }}
{{- if or .Values.phpConfigs .Values.extraVolumes .Values.persistence.enabled }}
volumes:
{{- with .Values.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.persistence.enabled }}
- name: storage
persistentVolumeclaim:
claimName: {{ .Values.persistence.existingClaim }}
{{- end }}
{{- if .Values.phpConfigs }}
- name: phpconfig
configMap: