diff --git a/charts/helm_lib/Chart.yaml b/charts/helm_lib/Chart.yaml index 9d1d531..8e94434 100644 --- a/charts/helm_lib/Chart.yaml +++ b/charts/helm_lib/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 type: library name: deckhouse_lib_helm -version: 1.70.2 +version: 1.70.3 description: "Helm utils template definitions for Deckhouse modules." diff --git a/charts/helm_lib/templates/_csi_controller.tpl b/charts/helm_lib/templates/_csi_controller.tpl index da0de1b..ca791f0 100644 --- a/charts/helm_lib/templates/_csi_controller.tpl +++ b/charts/helm_lib/templates/_csi_controller.tpl @@ -84,6 +84,7 @@ memory: 50Mi {{- $resizerEnabled := dig "resizerEnabled" true $config }} {{- $syncerEnabled := dig "syncerEnabled" false $config }} {{- $topologyEnabled := dig "topologyEnabled" true $config }} + {{- $capacityEnabled := dig "capacityEnabled" true $config }} {{- $runAsRootUser := dig "runAsRootUser" false $config }} {{- $extraCreateMetadataEnabled := dig "extraCreateMetadataEnabled" false $config }} {{- $controllerImage := $config.controllerImage | required "$config.controllerImage is required" }} @@ -301,8 +302,10 @@ spec: - "--leader-election-lease-duration=30s" - "--leader-election-renew-deadline=20s" - "--leader-election-retry-period=5s" + {{- if $capacityEnabled }} - "--enable-capacity" - "--capacity-ownerref-level=2" + {{- end }} {{- if $extraCreateMetadataEnabled }} - "--extra-create-metadata=true" {{- end }}