Skip to content

Commit

Permalink
Start: use the router image as per openshift version for microshift p…
Browse files Browse the repository at this point in the history
…reset

router controller images are cached in bundle as openshift version if it
available for that specific version so better to use it.

Also we need to remove that hack by putting this resource in bundle.
- crc-org/snc#660
  • Loading branch information
praveenkumar committed Apr 12, 2023
1 parent 2bce99d commit fba489a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/crc/machine/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ func ensureRoutesControllerIsRunning(sshRunner *crcssh.Runner, ocConfig oc.Confi
}

func getRouterControllerImage(preset crcPreset.Preset, bundleInfo *bundle.CrcBundleInfo) string {
if preset == crcPreset.OpenShift {
if preset == crcPreset.OpenShift || preset == crcPreset.Microshift {
return fmt.Sprintf("quay.io/crcont/routes-controller:%s", bundleInfo.GetOpenshiftVersion())
}
return "quay.io/crcont/routes-controller:latest"
Expand Down

0 comments on commit fba489a

Please sign in to comment.