From 14e7dddab7d1ce0ee9c4b86331f4da95e979df7d Mon Sep 17 00:00:00 2001 From: Jonathan Meier Date: Mon, 10 Jul 2023 13:38:47 -0400 Subject: [PATCH] Add Tinkerberll Cluster Autoscaler E2E Test --- test/e2e/tinkerbell_test.go | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/test/e2e/tinkerbell_test.go b/test/e2e/tinkerbell_test.go index 19683302c0dd..8dfc0b79d3c4 100644 --- a/test/e2e/tinkerbell_test.go +++ b/test/e2e/tinkerbell_test.go @@ -288,6 +288,23 @@ func TestTinkerbellKubernetes125UbuntuAddWorkerNodeGroupWithAPI(t *testing.T) { } // Curated packages + +func TestTinkerbellKubernetes128UbuntuCuratedPackagesClusterAutoscalerSimpleFlow(t *testing.T) { + framework.CheckCuratedPackagesCredentials(t) + minNodes := 1 + maxNodes := 2 + test := framework.NewClusterE2ETest(t, + framework.NewTinkerbell(t, framework.WithUbuntu128Tinkerbell()), + framework.WithClusterFiller(api.WithKubernetesVersion(v1alpha1.Kube128), api.WithWorkerNodeAutoScalingConfig(minNodes, maxNodes)), + framework.WithControlPlaneHardware(1), + framework.WithWorkerHardware(2), + framework.WithPackageConfig(t, packageBundleURI(v1alpha1.Kube128), + EksaPackageControllerHelmChartName, EksaPackageControllerHelmURI, + EksaPackageControllerHelmVersion, EksaPackageControllerHelmValues, nil), + ) + runAutoscalerWithMetricsServerSimpleFlow(test) +} + func TestTinkerbellKubernetes127UbuntuSingleNodeCuratedPackagesFlow(t *testing.T) { test := framework.NewClusterE2ETest(t, framework.NewTinkerbell(t, framework.WithUbuntu127Tinkerbell()), @@ -412,6 +429,22 @@ func TestTinkerbellKubernetes127BottleRocketCuratedPackagesPrometheusSimpleFlow( runCuratedPackagesPrometheusInstallTinkerbellSimpleFlow(test) } +func TestTinkerbellKubernetes127UbuntuCuratedPackagesClusterAutoscalerSimpleFlow(t *testing.T) { + framework.CheckCuratedPackagesCredentials(t) + minNodes := 1 + maxNodes := 2 + test := framework.NewClusterE2ETest(t, + framework.NewTinkerbell(t, framework.WithUbuntu127Tinkerbell()), + framework.WithClusterFiller(api.WithKubernetesVersion(v1alpha1.Kube127), api.WithWorkerNodeAutoScalingConfig(minNodes, maxNodes)), + framework.WithControlPlaneHardware(1), + framework.WithWorkerHardware(2), + framework.WithPackageConfig(t, packageBundleURI(v1alpha1.Kube127), + EksaPackageControllerHelmChartName, EksaPackageControllerHelmURI, + EksaPackageControllerHelmVersion, EksaPackageControllerHelmValues, nil), + ) + runAutoscalerWithMetricsServerSimpleFlow(test) +} + func TestTinkerbellKubernetes126UbuntuSingleNodeCuratedPackagesFlow(t *testing.T) { test := framework.NewClusterE2ETest(t, framework.NewTinkerbell(t, framework.WithUbuntu126Tinkerbell()),