Skip to content

Commit e7589e1

Browse files
authored
Merge pull request #8311 from sbueringer/pr-fix-clusterctl-upgrade
🐛 test/e2e: use topology cluster-template for clusterctl upgrade mgmt cluster
2 parents 96e4fd6 + 99761eb commit e7589e1

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

test/e2e/clusterctl_upgrade_test.go

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ var _ = Describe("When testing clusterctl upgrades (v0.3=>current)", func() {
3939
UpgradeClusterctlVariables: map[string]string{
4040
"CLUSTER_TOPOLOGY": "false",
4141
},
42+
MgmtFlavor: "topology",
43+
WorkloadFlavor: "",
4244
}
4345
})
4446
})
@@ -54,6 +56,8 @@ var _ = Describe("When testing clusterctl upgrades (v0.4=>current)", func() {
5456
InitWithBinary: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v0.4.8/clusterctl-{OS}-{ARCH}",
5557
InitWithProvidersContract: "v1alpha4",
5658
InitWithKubernetesVersion: "v1.23.13",
59+
MgmtFlavor: "topology",
60+
WorkloadFlavor: "",
5761
}
5862
})
5963
})
@@ -78,6 +82,8 @@ var _ = Describe("When testing clusterctl upgrades (v1.0=>current)", func() {
7882
// try to deploy the latest version of our test-extension from docker.yaml.
7983
InitWithRuntimeExtensionProviders: []string{},
8084
InitWithKubernetesVersion: "v1.23.13",
85+
MgmtFlavor: "topology",
86+
WorkloadFlavor: "",
8187
}
8288
})
8389
})
@@ -102,6 +108,10 @@ var _ = Describe("When testing clusterctl upgrades (v1.2=>current)", func() {
102108
// try to deploy the latest version of our test-extension from docker.yaml.
103109
InitWithRuntimeExtensionProviders: []string{},
104110
InitWithKubernetesVersion: "v1.26.0",
111+
// TODO(sbueringer) The topology flavor enables PSA.
112+
// CAPD will only work with PSA after we have a release with https://github.com/kubernetes-sigs/cluster-api/pull/8313.
113+
//MgmtFlavor: "topology",
114+
WorkloadFlavor: "",
105115
}
106116
})
107117
})
@@ -126,7 +136,10 @@ var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.2=>cur
126136
// try to deploy the latest version of our test-extension from docker.yaml.
127137
InitWithRuntimeExtensionProviders: []string{},
128138
InitWithKubernetesVersion: "v1.26.0",
129-
WorkloadFlavor: "topology",
139+
// TODO(sbueringer) The topology flavor enables PSA.
140+
// CAPD will only work with PSA after we have a release with https://github.com/kubernetes-sigs/cluster-api/pull/8313.
141+
//MgmtFlavor: "topology",
142+
WorkloadFlavor: "topology",
130143
}
131144
})
132145
})
@@ -142,6 +155,8 @@ var _ = Describe("When testing clusterctl upgrades (v1.3=>current)", func() {
142155
InitWithBinary: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.3.0/clusterctl-{OS}-{ARCH}",
143156
InitWithProvidersContract: "v1beta1",
144157
InitWithKubernetesVersion: "v1.26.0",
158+
MgmtFlavor: "topology",
159+
WorkloadFlavor: "",
145160
}
146161
})
147162
})
@@ -157,6 +172,7 @@ var _ = Describe("When testing clusterctl upgrades using ClusterClass (v1.3=>cur
157172
InitWithBinary: "https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.3.0/clusterctl-{OS}-{ARCH}",
158173
InitWithProvidersContract: "v1beta1",
159174
InitWithKubernetesVersion: "v1.26.0",
175+
MgmtFlavor: "topology",
160176
WorkloadFlavor: "topology",
161177
}
162178
})

0 commit comments

Comments
 (0)