From bf09ddd5dbc3226fec57c135a28fee2ecb0eb658 Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Fri, 25 Aug 2023 13:10:51 +0530 Subject: [PATCH] image: Add microshift preset to pull container image As part of a9c0b4cf we didn't add microshift preset. This PR add microshift preset to fetch default container image when it is available to `quay.io`. --- pkg/crc/image/image.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/crc/image/image.go b/pkg/crc/image/image.go index fb40dd7894..5417df4b7e 100644 --- a/pkg/crc/image/image.go +++ b/pkg/crc/image/image.go @@ -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" } @@ -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) }