Skip to content

Commit 7681a96

Browse files
committed
Do not install additional instance of retriever when Encryption is enabled.
1 parent acbcc3d commit 7681a96

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

charts/csi-isilon/templates/controller.yaml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -273,20 +273,6 @@ spec:
273273
mountPath: /var/run/csi
274274
{{ end }}
275275
{{ end }}
276-
- name: csi-metadata-retriever{{ $csiSidecarSuffix }}
277-
image: {{ required "Must provide the CSI metadata retriever container image." .Values.images.metadataretriever }}
278-
imagePullPolicy: {{ .Values.imagePullPolicy }}
279-
args:
280-
- "--csi-address={{ $driverSockPath }}"
281-
- "--timeout=120s"
282-
- "--v=5"
283-
command: [ "/csi-metadata-retriever" ]
284-
env:
285-
- name: CSI_RETRIEVER_ENDPOINT
286-
value: /var/run/csi/csi_retriever{{ $csiSidecarSuffix }}.sock
287-
volumeMounts:
288-
- name: socket-dir
289-
mountPath: /var/run/csi
290276
- name: attacher{{ $csiSidecarSuffix }}
291277
image: {{ required "Must provide the CSI attacher container image." .Values.images.attacher }}
292278
imagePullPolicy: {{ .Values.imagePullPolicy }}
@@ -310,6 +296,16 @@ spec:
310296
- name: socket-dir
311297
mountPath: /var/run/csi
312298
{{- if not $encrypted }}
299+
- name: csi-metadata-retriever
300+
image: {{ required "Must provide the CSI metadata retriever container image." .Values.images.metadataretriever }}
301+
imagePullPolicy: {{ .Values.imagePullPolicy }}
302+
command: [ "/csi-metadata-retriever" ]
303+
env:
304+
- name: CSI_RETRIEVER_ENDPOINT
305+
value: /var/run/csi/csi_retriever.sock
306+
volumeMounts:
307+
- name: socket-dir
308+
mountPath: /var/run/csi
313309
{{- if hasKey .Values.controller "healthMonitor" }}
314310
{{- if eq .Values.controller.healthMonitor.enabled true }}
315311
- name: external-health-monitor-controller

0 commit comments

Comments
 (0)