diff --git a/test/framework/cluster.go b/test/framework/cluster.go index 2db8dc77ef48..16d7774abdd2 100644 --- a/test/framework/cluster.go +++ b/test/framework/cluster.go @@ -13,6 +13,7 @@ import ( "os" "os/exec" "path/filepath" + "regexp" "strconv" "strings" "sync" @@ -1174,6 +1175,10 @@ func (e *ClusterE2ETest) InstallCuratedPackageFile(packageFile, kubeconfig strin // ValidatePackageBundleControllerRegistry checks if the registries for helm charts and images match for curated packages tests. func (e *ClusterE2ETest) ValidatePackageBundleControllerRegistry() { + nonRegionalPackagesRegex := `^.*NonRegionalCuratedPackages.*$` + if regexp.MustCompile(nonRegionalPackagesRegex).MatchString(e.T.Name()) { + return + } pbc, err := e.KubectlClient.GetPackageBundleController(context.Background(), e.KubeconfigFilePath(), e.ClusterName) if err != nil { e.T.Fatalf("cannot get PackageBundleController: %v", err)