Mohammed Naser | 1581a35 | 2023-04-17 02:28:10 +0000 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: ConfigMap |
| 3 | metadata: |
| 4 | name: {{ .Values.configmap.name }} |
| 5 | labels: |
| 6 | {{ include "local-path-provisioner.labels" . | indent 4 }} |
| 7 | data: |
| 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 }} |