Baphomet is the dedicated bot for nulloctet matrix
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
763 B

  1. {{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
  2. kind: PersistentVolumeClaim
  3. apiVersion: v1
  4. metadata:
  5. name: {{ include "baphomet-js.fullname" . }}
  6. labels:
  7. app: {{ include "baphomet-js.fullname" . }}
  8. chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
  9. release: "{{ .Release.Name }}"
  10. heritage: "{{ .Release.Service }}"
  11. annotations:
  12. {{- if .Values.persistence.storageClass }}
  13. volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.storageClass | quote }}
  14. {{- else }}
  15. volume.alpha.kubernetes.io/storage-class: default
  16. {{- end }}
  17. spec:
  18. accessModes:
  19. - {{ .Values.persistence.accessMode | quote }}
  20. resources:
  21. requests:
  22. storage: {{ .Values.persistence.size | quote }}
  23. {{- end }}