Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/e2e/cluster_upgrade_runtimesdk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var _ = Describe("When upgrading a workload cluster using ClusterClass with Runt

// This check ensures that the resourceVersions are stable, i.e. it verifies there are no
// continuous reconciles when everything should be stable.
framework.ValidateResourceVersionStable(ctx, proxy, namespace, FilterObjectsWithKindAndName(clusterName))
framework.ValidateResourceVersionStable(ctx, proxy, namespace, TMPDropVSphereMachineAndFilterObjectsWithKindAndName(clusterName))
},
// "topology-runtimesdk" is the same as the "topology" flavor but with an additional RuntimeExtension.
Flavor: ptr.To(testSpecificSettingsGetter().FlavorForMode("topology-runtimesdk")),
Expand Down
14 changes: 14 additions & 0 deletions test/e2e/ownerrefs_finalizers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,20 @@ func forcePeriodicDeploymentZoneReconcile(ctx context.Context, c ctrlclient.Clie
}()
}

func TMPDropVSphereMachineAndFilterObjectsWithKindAndName(clusterName string) func(u unstructured.Unstructured) bool {
f := FilterObjectsWithKindAndName(clusterName)

return func(u unstructured.Unstructured) bool {
if testMode == SupervisorTestMode {
// temporarily drop VSphereMachine while we found a fix for https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/issues/3592
if sets.NewString("VSphereMachine").Has(u.GetKind()) {
return false
}
}
return f(u)
}
}

func FilterObjectsWithKindAndName(clusterName string) func(u unstructured.Unstructured) bool {
f := clusterctlcluster.FilterClusterObjectsWithNameFilter(clusterName)

Expand Down
Loading