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.
21 lines
609 B
21 lines
609 B
3 years ago
|
{{- if and .Values.persistence.enabled .Values.msa.enabled }}
|
||
|
apiVersion: v1
|
||
|
kind: PersistentVolumeClaim
|
||
|
metadata:
|
||
|
name: {{ include "saberes.fullname" . }}-postfixspool
|
||
|
labels:
|
||
|
{{- include "saberes.labels" . | nindent 4 }}
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- {{ .Values.msa.persistence.accessMode }}
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: {{ .Values.msa.persistence.size }}
|
||
|
{{- if .Values.msa.persistence.storageClass }}
|
||
|
{{- if (eq "-" .Values.msa.persistence.storageClass) }}
|
||
|
storageClassName: ""
|
||
|
{{- else }}
|
||
|
storageClassName: "{{ .Values.msa.persistence.storageClass }}"
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|