@@ -327,9 +327,11 @@ spec:
327327 mountPath : /wiz-sensor-store/
328328 - name : tmp-store
329329 mountPath : /tmp/
330+ {{- if not .Values.global.wizApiToken.wizApiTokensVolumeMount }}
330331 - name : api-client-secret
331332 mountPath : /api-client/
332- {{- if not .Values.gkeAutopilot }}
333+ {{- end }}
334+ {{- if and (not .Values.gkeAutopilot) (not .Values.global.wizApiToken.wizApiTokensVolumeMount) }}
333335 - name : api-endpoint-name-secret
334336 mountPath : /api-endpoint-name/
335337 {{- end }}
@@ -499,10 +501,12 @@ spec:
499501 - name : host-mount
500502 mountPath : /host
501503 readOnly : true
504+ {{- if not .Values.global.wizApiToken.wizApiTokensVolumeMount }}
502505 - name : api-client-secret
503506 mountPath : /api-client/
504507 - name : api-endpoint-name-secret
505508 mountPath : /api-endpoint-name/
509+ {{- end }}
506510 - name : sensor-scanner-shared-vol
507511 mountPath : /wiz-sensor-share/
508512 - name : sensor-scanner-tmp-store
@@ -543,6 +547,7 @@ spec:
543547 path : {{ .Values.daemonset.sensorHostCacheFolder }}
544548 type : DirectoryOrCreate
545549 {{- end }}
550+ {{- if not .Values.global.wizApiToken.wizApiTokensVolumeMount }}
546551 - name : api-client-secret
547552 secret :
548553 secretName : {{ include "wiz-sensor.secretName" . }}
@@ -551,7 +556,8 @@ spec:
551556 path : clientId
552557 - key : clientToken
553558 path : clientToken
554- {{- if not .Values.gkeAutopilot }}
559+ {{- end }}
560+ {{- if and (not .Values.gkeAutopilot) (not .Values.global.wizApiToken.wizApiTokensVolumeMount) }}
555561 - name : api-endpoint-name-secret
556562 secret :
557563 secretName : {{ include "wiz-sensor.secretName" . }}
0 commit comments