Skip to content

Commit 08fb445

Browse files
authored
Merge pull request #10157 from sbueringer/pr-fixup
🐛 Re-introduce exclude capi-webhook-system to fix test flake
2 parents 18d166b + bbe9bcf commit 08fb445

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/framework/clusterctl/clusterctl_helpers.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,14 @@ func UpgradeManagementClusterAndWait(ctx context.Context, input UpgradeManagemen
191191
client := input.ClusterProxy.GetClient()
192192

193193
log.Logf("Waiting for provider controllers to be running")
194-
controllersDeployments := framework.GetControllerDeployments(ctx, framework.GetControllerDeploymentsInput{Lister: client})
194+
controllersDeployments := framework.GetControllerDeployments(ctx, framework.GetControllerDeploymentsInput{
195+
Lister: client,
196+
// This namespace has been dropped in v0.4.x.
197+
// We have to exclude this namespace here as after an upgrade from v0.3x there won't
198+
// be a controller in this namespace anymore and if we wait for it to come up the test would fail.
199+
// Note: We can drop this as soon as we don't have a test upgrading from v0.3.x anymore.
200+
ExcludeNamespaces: []string{"capi-webhook-system"},
201+
})
195202
Expect(controllersDeployments).ToNot(BeEmpty(), "The list of controller deployments should not be empty")
196203
for _, deployment := range controllersDeployments {
197204
framework.WaitForDeploymentsAvailable(ctx, framework.WaitForDeploymentsAvailableInput{

0 commit comments

Comments
 (0)