From 5e214a6e7c22381623e4b11d37bf8d0d93e70ac1 Mon Sep 17 00:00:00 2001 From: EKS Distro PR Bot <75336432+eks-distro-pr-bot@users.noreply.github.com> Date: Wed, 6 Nov 2024 23:01:03 -0500 Subject: [PATCH] Skip validating the pbc registry for non-regional curated packages flow (#8982) Co-authored-by: Saurabh Parekh --- 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)