blob: 0d05c2aa32f9ad54857c7e3146d70917cceba46e [file] [log] [blame]
Mohammed Naser1581a352023-04-17 02:28:10 +00001apiVersion: v1
2kind: ConfigMap
3metadata:
4 name: {{ .Values.configmap.name }}
5 labels:
6{{ include "local-path-provisioner.labels" . | indent 4 }}
7data:
8 config.json: |-
9 {{- $config := dict }}
10 {{- with .Values.nodePathMap }}
11 {{- $config = set $config "nodePathMap" . }}
12 {{- end }}
13 {{- with .Values.sharedFileSystemPath }}
14 {{- $config = set $config "sharedFileSystemPath" . }}
15 {{- end }}
16 {{- $config | toPrettyJson | nindent 4 }}
17 setup: |-
18 {{ .Values.configmap.setup | nindent 4 }}
19 teardown: |-
20 {{ .Values.configmap.teardown | nindent 4 }}
21 helperPod.yaml: |-
22 apiVersion: v1
23 kind: Pod
24 metadata:
25 name: helper-pod
26 spec:
27 containers:
28 - name: helper-pod
29 {{- if .Values.privateRegistry.registryUrl }}
30 image: {{ .Values.privateRegistry.registryUrl }}/{{ .Values.helperImage.repository }}:{{ .Values.helperImage.tag }}
31 {{- else }}
32 image: {{ .Values.helperImage.repository }}:{{ .Values.helperImage.tag }}
33 {{- end }}
34 imagePullPolicy: {{ .Values.image.pullPolicy }}