Няма описание

backend-apps-pvc.yaml 1.4KB

12345678910111213141516171819202122232425262728293031
  1. {{- if .Values.persistence.enabled }}
  2. {{- if (not .Values.persistence.apps.existingClaim) }}
  3. kind: PersistentVolumeClaim
  4. apiVersion: v1
  5. metadata:
  6. name: {{ printf "%s-apps" (include "shuffle.backend.name" .) }}
  7. namespace: {{ include "common.names.namespace" . | quote }}
  8. labels: {{- include "shuffle.backend.labels" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
  9. annotations:
  10. {{- if eq .Values.persistence.resourcePolicy "keep" }}
  11. helm.sh/resource-policy: keep
  12. {{- end }}
  13. {{- if or .Values.persistence.apps.annotations .Values.commonAnnotations }}
  14. {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.persistence.apps.annotations .Values.commonAnnotations ) "context" . ) }}
  15. {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $) | nindent 4 }}
  16. {{- end }}
  17. spec:
  18. accessModes:
  19. {{- range .Values.persistence.apps.accessModes }}
  20. - {{ . | quote }}
  21. {{- end }}
  22. resources:
  23. requests:
  24. storage: {{ .Values.persistence.apps.size }}
  25. {{- if .Values.persistence.apps.selector }}
  26. selector: {{- include "common.tplvalues.render" (dict "value" .Values.persistence.apps.selector "context" $) | nindent 2 }}
  27. {{- end }}
  28. {{- include "common.storage.class" ( dict "persistence" .Values.persistence.apps "global" .Values.global ) | nindent 2 }}
  29. {{- end }}
  30. {{- end }}