From 463b15b9b222bb1c72aa199016daa9eda64271a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Marc=20Fran=C3=A7ois?= Date: Fri, 14 Mar 2025 10:43:11 -0400 Subject: [PATCH] Add the HPAConfigurableTolerance feature gate. --- pkg/features/kube_features.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkg/features/kube_features.go b/pkg/features/kube_features.go index e0b09608030..da9b369479a 100644 --- a/pkg/features/kube_features.go +++ b/pkg/features/kube_features.go @@ -293,6 +293,12 @@ const ( // Make the kubelet use shutdown configuration based on pod priority values for graceful shutdown. GracefulNodeShutdownBasedOnPodPriority featuregate.Feature = "GracefulNodeShutdownBasedOnPodPriority" + // owner: @jm-franc + // kep: https://kep.k8s.io/4951 + // + // Enables support of configurable HPA scale-up and scale-down tolerances. + HPAConfigurableTolerance featuregate.Feature = "HPAConfigurableTolerance" + // owner: @dxist // // Enables support of HPA scaling to zero pods when an object or custom metric is configured. @@ -1341,6 +1347,10 @@ var defaultVersionedKubernetesFeatureGates = map[featuregate.Feature]featuregate {Version: version.MustParse("1.33"), Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.36 }, + HPAConfigurableTolerance: { + {Version: version.MustParse("1.33"), Default: false, PreRelease: featuregate.Alpha}, + }, + HPAScaleToZero: { {Version: version.MustParse("1.16"), Default: false, PreRelease: featuregate.Alpha}, },