diff --git a/test/e2e/autoscaler.go b/test/e2e/autoscaler.go index a230b7a5c044..af3b340a1883 100644 --- a/test/e2e/autoscaler.go +++ b/test/e2e/autoscaler.go @@ -16,3 +16,18 @@ func runAutoscalerWithMetricsServerSimpleFlow(test *framework.ClusterE2ETest) { test.CombinedAutoScalerMetricServerTest(autoscalerName, metricServerName, targetNamespace, withMgmtCluster(test)) }) } + +func runAutoscalerWithMetricsServerTinkerbellSimpleFlow(test *framework.ClusterE2ETest) { + test.GenerateClusterConfig() + test.GenerateHardwareConfig() + test.PowerOnHardware() + test.CreateCluster(framework.WithControlPlaneWaitTimeout("20m")) + autoscalerName := "cluster-autoscaler" + metricServerName := "metrics-server" + targetNamespace := "eksa-packages" + test.InstallAutoScalerWithMetricServer(targetNamespace) + test.CombinedAutoScalerMetricServerTest(autoscalerName, metricServerName, targetNamespace, withMgmtCluster(test)) + test.DeleteCluster() + test.PowerOffHardware() + test.ValidateHardwareDecommissioned() +} diff --git a/test/e2e/tinkerbell_test.go b/test/e2e/tinkerbell_test.go index f40cf54c5ea1..66f794e5cea5 100644 --- a/test/e2e/tinkerbell_test.go +++ b/test/e2e/tinkerbell_test.go @@ -489,7 +489,7 @@ func TestTinkerbellKubernetes127UbuntuCuratedPackagesClusterAutoscalerSimpleFlow EksaPackageControllerHelmChartName, EksaPackageControllerHelmURI, EksaPackageControllerHelmVersion, EksaPackageControllerHelmValues, nil), ) - runAutoscalerWithMetricsServerSimpleFlow(test) + runAutoscalerWithMetricsServerTinkerbellSimpleFlow(test) } func TestTinkerbellKubernetes126UbuntuSingleNodeCuratedPackagesFlow(t *testing.T) { @@ -1001,7 +1001,7 @@ func TestTinkerbellKubernetes128UbuntuCuratedPackagesClusterAutoscalerSimpleFlow EksaPackageControllerHelmChartName, EksaPackageControllerHelmURI, EksaPackageControllerHelmVersion, EksaPackageControllerHelmValues, nil), ) - runAutoscalerWithMetricsServerSimpleFlow(test) + runAutoscalerWithMetricsServerTinkerbellSimpleFlow(test) } // Single node