mirror of
https://github.com/bitnami/charts.git
synced 2026-03-04 06:47:57 +08:00
* adjust the naming style for resources to make them not pass the length limit Signed-off-by: Gang Liu <gang.liu@daocloud.io> * upgrade version Signed-off-by: Gang Liu <gang.liu@daocloud.io> Signed-off-by: Gang Liu <gang.liu@daocloud.io> Signed-off-by: izturn <44051386+izturn@users.noreply.github.com>
37 lines
1.4 KiB
YAML
37 lines
1.4 KiB
YAML
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}}
|
|
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: {{ printf "%s-drupal" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
|
|
namespace: {{ include "common.names.namespace" . | quote }}
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if or .Values.persistence.annotations .Values.commonAnnotations }}
|
|
annotations:
|
|
{{- if .Values.commonAnnotations }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.persistence.annotations }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.persistence.annotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if .Values.persistence.hostPath }}
|
|
storageClassName: ""
|
|
{{- end }}
|
|
accessModes:
|
|
{{- if not (empty .Values.persistence.accessModes) }}
|
|
{{- range .Values.persistence.accessModes }}
|
|
- {{ . | quote }}
|
|
{{- end }}
|
|
{{- else }}
|
|
- {{ .Values.persistence.accessMode | quote }}
|
|
{{- end }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.persistence.size | quote }}
|
|
{{- include "drupal.storageClass" . | nindent 2 }}
|
|
{{- end -}}
|