From 7d883c7fe8638f87dd3b909298f990c729107460 Mon Sep 17 00:00:00 2001 From: Connor Catlett Date: Tue, 10 Sep 2024 19:53:09 +0000 Subject: [PATCH] Revert "Revert "Auto-enable VAC on clusters with beta API version"" This reverts commit 696023371699095166668ef67f5d88877f5648a7. --- charts/aws-ebs-csi-driver/templates/controller.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/charts/aws-ebs-csi-driver/templates/controller.yaml b/charts/aws-ebs-csi-driver/templates/controller.yaml index 4053ee1807..f5d42f89ca 100644 --- a/charts/aws-ebs-csi-driver/templates/controller.yaml +++ b/charts/aws-ebs-csi-driver/templates/controller.yaml @@ -231,6 +231,9 @@ spec: {{- if not (regexMatch "(-retry-interval-max)" (join " " .Values.sidecars.provisioner.additionalArgs)) }} - --retry-interval-max=30m {{- end }} + {{- if .Capabilities.APIVersions.Has "storage.k8s.io/v1beta1/VolumeAttributesClass" }} + - --feature-gates=VolumeAttributesClass=true + {{- end }} {{- range .Values.sidecars.provisioner.additionalArgs }} - {{ . }} {{- end }} @@ -287,6 +290,9 @@ spec: {{- if not (regexMatch "(-retry-interval-max)" (join " " .Values.sidecars.attacher.additionalArgs)) }} - --retry-interval-max=5m {{- end }} + {{- if .Capabilities.APIVersions.Has "storage.k8s.io/v1beta1/VolumeAttributesClass" }} + - --feature-gates=VolumeAttributesClass=true + {{- end }} {{- range .Values.sidecars.attacher.additionalArgs }} - {{ . }} {{- end }}