Skip to content

Commit fd52dbe

Browse files
meln5674derekbit
authored andcommitted
Fix sharedFilesystemPath not being available in helm deployment
1 parent b72fefb commit fd52dbe

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

deploy/chart/local-path-provisioner/templates/configmap.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ metadata:
66
{{ include "local-path-provisioner.labels" . | indent 4 }}
77
data:
88
config.json: |-
9-
{
10-
"nodePathMap": {{ .Values.nodePathMap | toPrettyJson | nindent 8 }}
11-
}
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 }}
1217
setup: |-
1318
{{ .Values.configmap.setup | nindent 4 }}
1419
teardown: |-

0 commit comments

Comments
 (0)