Skip to content

Commit

Permalink
Reduce Autoscaler HPA Busybox Test Resources (#5370)
Browse files Browse the repository at this point in the history
Also adds a 1.24 Ubuntu test and bumps ScaleUp phase wait to 15min.
  • Loading branch information
jonathanmeier5 authored Mar 24, 2023
1 parent 5436cf1 commit 5953dd9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions test/e2e/vsphere_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,20 @@ func TestVSphereKubernetes125UbuntuCuratedPackagesClusterAutoscalerSimpleFlow(t
runAutoscalerWitMetricsServerSimpleFlow(test)
}

func TestVSphereKubernetes124UbuntuCuratedPackagesClusterAutoscalerSimpleFlow(t *testing.T) {
minNodes := 1
maxNodes := 2
framework.CheckCuratedPackagesCredentials(t)
test := framework.NewClusterE2ETest(t,
framework.NewVSphere(t, framework.WithUbuntu124()),
framework.WithClusterFiller(api.WithKubernetesVersion(v1alpha1.Kube124), api.WithWorkerNodeAutoScalingConfig(minNodes, maxNodes)),
framework.WithPackageConfig(t, packageBundleURI(v1alpha1.Kube124),
EksaPackageControllerHelmChartName, EksaPackageControllerHelmURI,
EksaPackageControllerHelmVersion, EksaPackageControllerHelmValues, nil),
)
runAutoscalerWitMetricsServerSimpleFlow(test)
}

func TestVSphereKubernetes125BottleRocketCuratedPackagesClusterAutoscalerSimpleFlow(t *testing.T) {
minNodes := 1
maxNodes := 2
Expand Down
2 changes: 1 addition & 1 deletion test/framework/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1889,7 +1889,7 @@ func (e *ClusterE2ETest) CombinedAutoScalerMetricServerTest(autoscalerName strin
}

e.T.Log("Waiting for machinedeployment to finish scaling up")
err = e.KubectlClient.WaitJSONPathLoop(ctx, mgmtCluster.KubeconfigFile, "10m", "status.phase", "Running",
err = e.KubectlClient.WaitJSONPathLoop(ctx, mgmtCluster.KubeconfigFile, "15m", "status.phase", "Running",
fmt.Sprintf("machinedeployments.cluster.x-k8s.io/%s", machineDeploymentName), constants.EksaSystemNamespace)
if err != nil {
e.T.Fatalf("Failed to get Running phase for machinedeployment: %s", err)
Expand Down
4 changes: 2 additions & 2 deletions test/framework/testdata/hpa_busybox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ spec:
image: busybox:1.34
resources:
limits:
cpu: 500m
cpu: 50m
requests:
cpu: 20m
cpu: 10m
memory: 500Mi
command: ["sh", "-c"]
args:
Expand Down

0 comments on commit 5953dd9

Please sign in to comment.