Skip to content

Commit c377d73

Browse files
refactor(charts): invoke controller pod's entrypoint with true as the first argument
this is to tell the script that we're running as a controller, so the necessary services can be started
1 parent ae1b082 commit c377d73

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

charts/latest/csi-driver-nfs/templates/csi-nfs-controller.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ spec:
174174
allowPrivilegeEscalation: true
175175
imagePullPolicy: {{ .Values.image.nfs.pullPolicy }}
176176
args:
177+
- 'true' # needed to distinguish controller from node
177178
- "--v={{ .Values.controller.logLevel }}"
178179
- "--nodeid=$(NODE_ID)"
179180
- "--endpoint=$(CSI_ENDPOINT)"

deploy/csi-nfs-controller.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ spec:
157157
allowPrivilegeEscalation: true
158158
imagePullPolicy: IfNotPresent
159159
args:
160+
- "true"
160161
- "-v=5"
161162
- "--nodeid=$(NODE_ID)"
162163
- "--endpoint=$(CSI_ENDPOINT)"

0 commit comments

Comments
 (0)