Files
charts/bitnami/drupal/templates/drupal-pvc.yaml
Andrés Bono e6369fa9dc [bitnami/drupal] Move container to bash and non-root (#2990)
* [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>
2020-07-13 17:44:40 +02:00

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 -}}