aboutsummaryrefslogtreecommitdiff
path: root/helm/templates/data-pvc.yaml
diff options
context:
space:
mode:
authorsickcodes <[email protected]>2021-01-14 08:57:17 +0000
committerGitHub <[email protected]>2021-01-14 08:57:17 +0000
commita9a7863c3cab104081d6b9e87d3a8b4a996ad9ac (patch)
treedd380f79fd2b75e7c76012c5f34bf35294e14b87 /helm/templates/data-pvc.yaml
parentUse IMAGE_PATH as a variable during envsubst for the full path of mac_hdd_ng.img (diff)
parentupdate doc with features (diff)
downloaddocker-osx-a9a7863c3cab104081d6b9e87d3a8b4a996ad9ac.tar.xz
docker-osx-a9a7863c3cab104081d6b9e87d3a8b4a996ad9ac.zip
Merge pull request #124 from cephasara/master
Add helm chart
Diffstat (limited to 'helm/templates/data-pvc.yaml')
-rw-r--r--helm/templates/data-pvc.yaml28
1 files changed, 28 insertions, 0 deletions
diff --git a/helm/templates/data-pvc.yaml b/helm/templates/data-pvc.yaml
new file mode 100644
index 0000000..b637eb6
--- /dev/null
+++ b/helm/templates/data-pvc.yaml
@@ -0,0 +1,28 @@
+{{- 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 -}}