Skip to content

Commit

Permalink
image: Use bundle version when building defaultURI()
Browse files Browse the repository at this point in the history
crc currently uses by default quay.io/crcont/podman-bundle:$CRC_VERSION when
getting a bundle from a container registry. This is inconsistent with
the scheme which will be required when the user specifies the bundle
manually which will require $BUNDLE_VERSION instead of $CRC_VERSION.

This commit changes it to also use $BUNDLE_VERSION so that the same tag
is used everywhere.
  • Loading branch information
cfergeau authored and praveenkumar committed Sep 19, 2022
1 parent a9c0b4c commit fb451fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/crc/image/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type imageHandler struct {
}

func defaultURI(preset crcpreset.Preset) string {
return fmt.Sprintf("//%s/%s:%s", constants.RegistryURI, getImageName(preset), version.GetCRCVersion())
return fmt.Sprintf("//%s/%s:%s", constants.RegistryURI, getImageName(preset), version.GetBundleVersion(preset))
}

func ValidateURI(uri *url.URL) error {
Expand Down

0 comments on commit fb451fd

Please sign in to comment.