Skip to content

Commit

Permalink
image: Add microshift preset to pull container image
Browse files Browse the repository at this point in the history
As part of a9c0b4c we didn't add microshift preset. This PR add
microshift preset to fetch default container image when it is available
to `quay.io`.
  • Loading branch information
praveenkumar committed Sep 1, 2023
1 parent 2fb6064 commit bf09ddd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/crc/image/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ func getImageName(preset crcpreset.Preset) string {
return "podman-bundle"
case crcpreset.OKD:
return "okd-bundle"
case crcpreset.Microshift:
return "microshift-bundle"
default:
return "openshift-bundle"
}
Expand All @@ -120,6 +122,8 @@ func getPresetNameE(imageName string) (crcpreset.Preset, error) {
return crcpreset.OKD, nil
case "podman-bundle":
return crcpreset.Podman, nil
case "microshift-bundle":
return crcpreset.Microshift, nil
default:
return crcpreset.OpenShift, fmt.Errorf("invalid image name '%s' (Should be openshift-bundle, okd-bundle or podman-bundle)", imageName)
}
Expand Down

0 comments on commit bf09ddd

Please sign in to comment.