Skip to content

Commit

Permalink
Skip validating the pbc registry for non-regional curated packages flow
Browse files Browse the repository at this point in the history
  • Loading branch information
sp1999 authored and eks-distro-pr-bot committed Nov 7, 2024
1 parent 57fa019 commit 87478a8
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 87478a8

Please sign in to comment.