mirror of
https://github.com/bitnami/charts.git
synced 2026-03-11 15:37:20 +08:00
* [bitnami/drupal] Migrate container to non-root approach Signed-off-by: Andrés Bono <andresbono@vmware.com> * Fix lint * Standardizations * README * Lint issues * Update bitnami/drupal/templates/deployment.yaml Co-authored-by: Juan Ariza Toledano <juan@bitnami.com> * Requested changes * Update secrets.yaml Co-authored-by: Javier Salmeron Garcia <jsalmeron@vmware.com> Co-authored-by: Juan Ariza Toledano <juan@bitnami.com>
24 lines
876 B
YAML
24 lines
876 B
YAML
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}}
|
|
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: {{ template "drupal.fullname" . }}-drupal
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.commonAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if .Values.persistence.hostPath }}
|
|
storageClassName: ""
|
|
{{- end }}
|
|
accessModes:
|
|
- {{ .Values.persistence.accessMode | quote }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.persistence.size | quote }}
|
|
{{- include "drupal.storageClass" . | nindent 2 }}
|
|
{{- end -}}
|