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 29, 2023
1 parent 706f392 commit cf376df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/crc/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,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 Down
2 changes: 2 additions & 0 deletions pkg/crc/image/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,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 cf376df

Please sign in to comment.