Skip to content

Commit

Permalink
Skip validating the pbc registry for non-regional curated packages fl…
Browse files Browse the repository at this point in the history
…ow (#8983)

Co-authored-by: Saurabh Parekh <[email protected]>
  • Loading branch information
eks-distro-pr-bot and sp1999 authored Nov 7, 2024
1 parent 57fa019 commit 00bcf97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/framework/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"os"
"os/exec"
"path/filepath"
"regexp"
"strconv"
"strings"
"sync"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 00bcf97

Please sign in to comment.