Skip to content

Commit

Permalink
Ensure we run with last release
Browse files Browse the repository at this point in the history
  • Loading branch information
sjberman committed Jan 2, 2025
1 parent f62c827 commit b9123a7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/suite/system_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,21 +209,24 @@ func createNGFInstallConfig(cfg setupConfig, extraInstallArgs ...string) framewo
Telemetry: cfg.telemetry,
}

switch {
// if we aren't installing from the public charts, then set the custom images
if !strings.HasPrefix(cfg.chartPath, "oci://") {
case !strings.HasPrefix(cfg.chartPath, "oci://"):
installCfg.NgfImageRepository = *ngfImageRepository
installCfg.NginxImageRepository = *nginxImageRepository
if *plusEnabled && cfg.nfr {
installCfg.NginxImageRepository = *nginxPlusImageRepository
}
installCfg.ImageTag = *imageTag
installCfg.ImagePullPolicy = *imagePullPolicy
} else {
case version == "edge":
chartVersion = "0.0.0-edge"
installCfg.ChartVersion = chartVersion
if *plusEnabled && cfg.nfr {
installCfg.NginxImageRepository = fmt.Sprintf(formatNginxPlusEdgeImagePath, *gkeProject)
}
case *plusEnabled && cfg.nfr:
installCfg.NginxImageRepository = fmt.Sprintf(formatNginxPlusEdgeImagePath, *gkeProject)
}

output, err := framework.InstallGatewayAPI(cfg.gwAPIVersion)
Expand Down

0 comments on commit b9123a7

Please sign in to comment.