From 910ff523702d325caaab2b64ab50d47ab5483d05 Mon Sep 17 00:00:00 2001 From: Saurabh Parekh Date: Wed, 6 Nov 2024 18:59:34 -0800 Subject: [PATCH] Skip validating the pbc registry for non-regional curated packages flow --- test/framework/cluster.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/framework/cluster.go b/test/framework/cluster.go index 93b798572d46..9eaa24619f46 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)