aboutsummaryrefslogtreecommitdiff
path: root/helm/templates/data-pvc.yaml
diff options
context:
space:
mode:
authorpeter <[email protected]>2021-01-12 20:26:19 -0800
committerpeter <[email protected]>2021-01-12 20:26:19 -0800
commitb28dd7051782ceb87dadede8676cb7a88dc28881 (patch)
treeddcb6876e1b2cf9525dccc4e6855e7bb065427a4 /helm/templates/data-pvc.yaml
parentUse IMAGE_PATH as a variable during envsubst for the full path of mac_hdd_ng.img (diff)
downloaddocker-osx-b28dd7051782ceb87dadede8676cb7a88dc28881.tar.xz
docker-osx-b28dd7051782ceb87dadede8676cb7a88dc28881.zip
add helm chart for running in Kubernetes
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 -}}