Skip to content

Commit

Permalink
Add e2e tests for inplace k8s upgrade to 1.29 (#7599)
Browse files Browse the repository at this point in the history
  • Loading branch information
sp1999 authored Feb 16, 2024
1 parent 5a93099 commit 65b661c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/e2e/TINKERBELL_HARDWARE_COUNT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ TestTinkerbellSingleNode128To129UbuntuManagementCPUpgradeAPI: 4
TestTinkerbellKubernetes125UbuntuTo126InPlaceUpgrade_1CP_1Worker: 2
TestTinkerbellKubernetes126UbuntuTo127InPlaceUpgrade_1CP_2Worker: 3
TestTinkerbellKubernetes127UbuntuTo128InPlaceUpgrade_3CP_1Worker: 4
TestTinkerbellKubernetes128UbuntuTo129InPlaceUpgrade_3CP_1Worker: 4
TestTinkerbellKubernetes128UbuntuTo129InPlaceUpgrade_1CP_1Worker: 2
TestTinkerbellKubernetes125UbuntuTo126SingleNodeInPlaceUpgrade: 1
TestTinkerbellKubernetes126UbuntuTo127SingleNodeInPlaceUpgrade: 1
TestTinkerbellKubernetes127UbuntuTo128SingleNodeInPlaceUpgrade: 1
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/tinkerbell_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,16 +443,16 @@ func TestTinkerbellKubernetes127UbuntuTo128InPlaceUpgrade_3CP_1Worker(t *testing
)
}

func TestTinkerbellKubernetes128UbuntuTo129InPlaceUpgrade_3CP_1Worker(t *testing.T) {
func TestTinkerbellKubernetes128UbuntuTo129InPlaceUpgrade_1CP_1Worker(t *testing.T) {
provider := framework.NewTinkerbell(t)
test := framework.NewClusterE2ETest(
t,
provider,
framework.WithClusterFiller(api.WithKubernetesVersion(v1alpha1.Kube128)),
framework.WithClusterFiller(api.WithControlPlaneCount(3)),
framework.WithClusterFiller(api.WithControlPlaneCount(1)),
framework.WithClusterFiller(api.WithWorkerNodeCount(1)),
framework.WithClusterFiller(api.WithInPlaceUpgradeStrategy()),
framework.WithControlPlaneHardware(3),
framework.WithControlPlaneHardware(1),
framework.WithWorkerHardware(1),
).WithClusterConfig(
provider.WithKubeVersionAndOS(v1alpha1.Kube128, framework.Ubuntu2004, nil),
Expand Down
5 changes: 5 additions & 0 deletions test/framework/tinkerbell.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,11 @@ func Ubuntu128ImageForWorker() api.TinkerbellFiller {
return imageForKubeVersionAndOS(anywherev1.Kube128, Ubuntu2004, workerIdentifier)
}

// Ubuntu129ImageForWorker represents an Ubuntu raw image corresponding to Kubernetes 1.29 and is set for worker machine config.
func Ubuntu129ImageForWorker() api.TinkerbellFiller {
return imageForKubeVersionAndOS(anywherev1.Kube129, Ubuntu2004, workerIdentifier)
}

// Ubuntu2204Kubernetes126Image represents an Ubuntu 22.04 raw image corresponding to Kubernetes 1.26.
func Ubuntu2204Kubernetes126Image() api.TinkerbellFiller {
return imageForKubeVersionAndOS(anywherev1.Kube126, Ubuntu2204, "")
Expand Down

0 comments on commit 65b661c

Please sign in to comment.