暫無描述

backend-apps-claim-pvc.yaml 1.4KB

1234567891011121314151617181920212223242526272829
  1. # This PVC is always enabled, regardless of .Values.persistence.enabled,
  2. # as app building does not work without it.
  3. kind: PersistentVolumeClaim
  4. apiVersion: v1
  5. metadata:
  6. name: backend-apps-claim # Hardcoded by shuffle-app-builder
  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.appBuilder.annotations .Values.commonAnnotations }}
  14. {{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.persistence.appBuilder.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.appBuilder.accessModes }}
  20. - {{ . | quote }}
  21. {{- end }}
  22. resources:
  23. requests:
  24. storage: {{ .Values.persistence.appBuilder.size }}
  25. {{- if .Values.persistence.appBuilder.selector }}
  26. selector: {{- include "common.tplvalues.render" (dict "value" .Values.persistence.appBuilder.selector "context" $) | nindent 2 }}
  27. {{- end }}
  28. {{- include "common.storage.class" ( dict "persistence" .Values.persistence.appBuilder "global" .Values.global ) | nindent 2 }}