pvc.yaml 1.0 KB

1234567891011121314151617181920212223242526
  1. {{- /*
  2. Copyright VMware, Inc.
  3. SPDX-License-Identifier: APACHE-2.0
  4. */}}
  5. {{- if (include "minio.createPVC" .) }}
  6. kind: PersistentVolumeClaim
  7. apiVersion: v1
  8. metadata:
  9. name: {{ include "common.names.fullname" . }}
  10. namespace: {{ include "common.names.namespace" . | quote }}
  11. labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
  12. {{- if or .Values.persistence.annotations .Values.commonAnnotations }}
  13. {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.persistence.annotations .Values.commonAnnotations ) "context" . ) }}
  14. annotations: {{- include "common.tplvalues.render" (dict "value" $annotations "context" $) | nindent 4 }}
  15. {{- end }}
  16. spec:
  17. accessModes:
  18. {{- range .Values.persistence.accessModes }}
  19. - {{ . | quote }}
  20. {{- end }}
  21. resources:
  22. requests:
  23. storage: {{ .Values.persistence.size | quote }}
  24. {{- include "common.storage.class" (dict "persistence" .Values.persistence "global" .Values.global) | nindent 2 }}
  25. {{- end }}