Skip to content

Commit b9123a7

Browse files
committed
Ensure we run with last release
1 parent f62c827 commit b9123a7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/suite/system_suite_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,21 +209,24 @@ func createNGFInstallConfig(cfg setupConfig, extraInstallArgs ...string) framewo
209209
Telemetry: cfg.telemetry,
210210
}
211211

212+
switch {
212213
// if we aren't installing from the public charts, then set the custom images
213-
if !strings.HasPrefix(cfg.chartPath, "oci://") {
214+
case !strings.HasPrefix(cfg.chartPath, "oci://"):
214215
installCfg.NgfImageRepository = *ngfImageRepository
215216
installCfg.NginxImageRepository = *nginxImageRepository
216217
if *plusEnabled && cfg.nfr {
217218
installCfg.NginxImageRepository = *nginxPlusImageRepository
218219
}
219220
installCfg.ImageTag = *imageTag
220221
installCfg.ImagePullPolicy = *imagePullPolicy
221-
} else {
222+
case version == "edge":
222223
chartVersion = "0.0.0-edge"
223224
installCfg.ChartVersion = chartVersion
224225
if *plusEnabled && cfg.nfr {
225226
installCfg.NginxImageRepository = fmt.Sprintf(formatNginxPlusEdgeImagePath, *gkeProject)
226227
}
228+
case *plusEnabled && cfg.nfr:
229+
installCfg.NginxImageRepository = fmt.Sprintf(formatNginxPlusEdgeImagePath, *gkeProject)
227230
}
228231

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

0 commit comments

Comments
 (0)