@@ -135,8 +135,12 @@ func cleanupScaleFromZeroResources() {
135135}
136136
137137// Scale-from-zero test validates that the WVA controller correctly detects pending requests
138- // and scales up deployments from zero replicas. Requires GIE queuing (ENABLE_EXPERIMENTAL_FLOW_CONTROL_LAYER
138+ // and scales up scale targets from zero replicas. Requires GIE queuing (ENABLE_EXPERIMENTAL_FLOW_CONTROL_LAYER
139139// on EPP from install when E2E_TESTS_ENABLED=true) and an InferenceObjective (applied below in BeforeAll).
140+ // This suite needs a scaler that allows minReplicas=0 on the scaled workload: either
141+ // SCALE_TO_ZERO_ENABLED=true where native HPA supports it (HPAScaleToZero), or SCALER_BACKEND=keda
142+ // (ScaledObject). OpenShift usually lacks HPAScaleToZero; e2e config ignores SCALE_TO_ZERO_ENABLED there,
143+ // so use SCALER_BACKEND=keda for this Describe when running on OpenShift.
140144// On platforms without the HPAScaleToZero feature gate (e.g. OpenShift), set SCALER_BACKEND=keda
141145// so the test uses a KEDA ScaledObject (which supports minReplicas=0) instead of a native HPA.
142146var _ = Describe ("Scale-From-Zero Feature" , Serial , Label ("full" ), Ordered , func () {
@@ -153,8 +157,9 @@ var _ = Describe("Scale-From-Zero Feature", Serial, Label("full"), Ordered, func
153157 // HPAScaleToZero feature gate), SCALER_BACKEND=keda must be set so the
154158 // test creates a KEDA ScaledObject instead of a native HPA.
155159 if cfg .ScalerBackend != "keda" && ! cfg .ScaleToZeroEnabled {
156- Skip ("Scale-from-zero requires SCALER_BACKEND=\" keda\" or ENABLE_SCALE_TO_ZERO=true; " +
157- "current configuration does not support HPA minReplicas=0" )
160+ Skip ("This suite needs minReplicas=0 on the scaler: set SCALER_BACKEND=\" keda\" " +
161+ "or SCALE_TO_ZERO_ENABLED=true (ignored on OpenShift without HPAScaleToZero — use KEDA); " +
162+ "current configuration does not support that scaler shape" )
158163 }
159164
160165 By ("Cleaning up any existing scale-from-zero test resources" )
@@ -619,8 +624,9 @@ var _ = Describe("Scale-From-Zero Feature with LeaderWorkerSet", Serial, Label("
619624 // HPAScaleToZero feature gate), SCALER_BACKEND=keda must be set so the
620625 // test creates a KEDA ScaledObject instead of a native HPA.
621626 if cfg .ScalerBackend != "keda" && ! cfg .ScaleToZeroEnabled {
622- Skip ("Scale-from-zero requires SCALER_BACKEND=\" keda\" or ENABLE_SCALE_TO_ZERO=true; " +
623- "current configuration does not support HPA minReplicas=0" )
627+ Skip ("This suite needs minReplicas=0 on the scaler: set SCALER_BACKEND=\" keda\" " +
628+ "or SCALE_TO_ZERO_ENABLED=true (ignored on OpenShift without HPAScaleToZero — use KEDA); " +
629+ "current configuration does not support that scaler shape" )
624630 }
625631
626632 By ("Cleaning up any existing scale-from-zero test resources" )
@@ -1039,8 +1045,9 @@ var _ = Describe("Scale-From-Zero Feature with LeaderWorkerSet (single-node)", S
10391045 // HPAScaleToZero feature gate), SCALER_BACKEND=keda must be set so the
10401046 // test creates a KEDA ScaledObject instead of a native HPA.
10411047 if cfg .ScalerBackend != "keda" && ! cfg .ScaleToZeroEnabled {
1042- Skip ("Scale-from-zero requires SCALER_BACKEND=\" keda\" or ENABLE_SCALE_TO_ZERO=true; " +
1043- "current configuration does not support HPA minReplicas=0" )
1048+ Skip ("This suite needs minReplicas=0 on the scaler: set SCALER_BACKEND=\" keda\" " +
1049+ "or SCALE_TO_ZERO_ENABLED=true (ignored on OpenShift without HPAScaleToZero — use KEDA); " +
1050+ "current configuration does not support that scaler shape" )
10441051 }
10451052
10461053 By ("Cleaning up any existing scale-from-zero test resources" )
0 commit comments