Skip to content

Commit

Permalink
Do not install additional instance of retriever when Encryption is en…
Browse files Browse the repository at this point in the history
…abled. (#453)
  • Loading branch information
alexemc authored and shaynafinocchiaro committed Jul 26, 2024
1 parent 473e562 commit f463cad
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions charts/csi-isilon/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -273,20 +273,6 @@ spec:
mountPath: /var/run/csi
{{ end }}
{{ end }}
- name: csi-metadata-retriever{{ $csiSidecarSuffix }}
image: {{ required "Must provide the CSI metadata retriever container image." .Values.images.metadataretriever }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
args:
- "--csi-address={{ $driverSockPath }}"
- "--timeout=120s"
- "--v=5"
command: [ "/csi-metadata-retriever" ]
env:
- name: CSI_RETRIEVER_ENDPOINT
value: /var/run/csi/csi_retriever{{ $csiSidecarSuffix }}.sock
volumeMounts:
- name: socket-dir
mountPath: /var/run/csi
- name: attacher{{ $csiSidecarSuffix }}
image: {{ required "Must provide the CSI attacher container image." .Values.images.attacher }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
Expand All @@ -310,6 +296,16 @@ spec:
- name: socket-dir
mountPath: /var/run/csi
{{- if not $encrypted }}
- name: csi-metadata-retriever
image: {{ required "Must provide the CSI metadata retriever container image." .Values.images.metadataretriever }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
command: [ "/csi-metadata-retriever" ]
env:
- name: CSI_RETRIEVER_ENDPOINT
value: /var/run/csi/csi_retriever.sock
volumeMounts:
- name: socket-dir
mountPath: /var/run/csi
{{- if hasKey .Values.controller "healthMonitor" }}
{{- if eq .Values.controller.healthMonitor.enabled true }}
- name: external-health-monitor-controller
Expand Down

0 comments on commit f463cad

Please sign in to comment.