From 78bbd8140e23348fc9647134f24edb09cde05bbb Mon Sep 17 00:00:00 2001 From: hanenMizouni Date: Mon, 30 Sep 2024 11:56:11 +0000 Subject: [PATCH] Update sidecar timeout values Signed-off-by: hanenMizouni --- osc-bsu-csi-driver/templates/controller.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/osc-bsu-csi-driver/templates/controller.yaml b/osc-bsu-csi-driver/templates/controller.yaml index 90bf9637..0bc720a1 100644 --- a/osc-bsu-csi-driver/templates/controller.yaml +++ b/osc-bsu-csi-driver/templates/controller.yaml @@ -137,6 +137,9 @@ spec: - name: csi-provisioner image: {{ printf "%s:%s" .Values.sidecars.provisionerImage.repository .Values.sidecars.provisionerImage.tag }} args: + {{- if not (regexMatch "(-timeout)" (join " " .Values.sidecars.provisioner.additionalArgs)) }} + - --timeout=60s + {{- end }} - --csi-address=$(ADDRESS) - --v={{ .Values.verbosity }} {{- if .Values.enableVolumeScheduling }} @@ -190,6 +193,9 @@ spec: - name: csi-attacher image: {{ printf "%s:%s" .Values.sidecars.attacherImage.repository .Values.sidecars.attacherImage.tag }} args: + {{- if not (regexMatch "(-timeout)" (join " " .Values.sidecars.provisioner.additionalArgs)) }} + - --timeout=60s + {{- end }} - --csi-address=$(ADDRESS) - --v={{ .Values.verbosity }} - --leader-election=true @@ -232,6 +238,9 @@ spec: - name: csi-snapshotter image: {{ printf "%s:%s" .Values.sidecars.snapshotterImage.repository .Values.sidecars.snapshotterImage.tag }} args: + {{- if not (regexMatch "(-timeout)" (join " " .Values.sidecars.provisioner.additionalArgs)) }} + - --timeout=60s + {{- end }} - --csi-address=$(ADDRESS) - --leader-election=true {{- if .Values.sidecars.snapshotterImage.leaderElection.leaseDuration }} @@ -274,6 +283,9 @@ spec: image: {{ printf "%s:%s" .Values.sidecars.resizerImage.repository .Values.sidecars.resizerImage.tag }} imagePullPolicy: Always args: + {{- if not (regexMatch "(-timeout)" (join " " .Values.sidecars.provisioner.additionalArgs)) }} + - --timeout=60s + {{- end }} - --csi-address=$(ADDRESS) - --v={{ .Values.verbosity }} - --timeout={{ .Values.timeout }}