mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2024-11-23 02:39:59 +08:00
29 lines
884 B
YAML
29 lines
884 B
YAML
{{- if and .Values.persistence.data.enabled (not .Values.persistence.data.existingClaim) }}
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: {{ template "docker-osx.fullname" . }}-config
|
|
labels:
|
|
app: {{ template "docker-osx.name" . }}
|
|
chart: {{ template "docker-osx.chart" . }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
{{- with .Values.persistence.annotations }}
|
|
annotations:
|
|
{{ toYaml . | indent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
accessModes:
|
|
- {{ .Values.persistence.config.accessMode | quote }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.persistence.config.size | quote }}
|
|
{{- if .Values.persistence.config.storageClass }}
|
|
{{- if (eq "-" .Values.persistence.config.storageClass) }}
|
|
storageClassName: ""
|
|
{{- else }}
|
|
storageClassName: "{{ .Values.persistence.config.storageClass }}"
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end -}}
|