Skip to content

Commit

Permalink
Version: Change bundleVersion to ocpVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenkumar committed Aug 25, 2022
1 parent 40230ae commit 3b938cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ __check_defined = \

# Linker flags
VERSION_VARIABLES := -X $(REPOPATH)/pkg/crc/version.crcVersion=$(CRC_VERSION) \
-X $(REPOPATH)/pkg/crc/version.bundleVersion=$(OPENSHIFT_VERSION) \
-X $(REPOPATH)/pkg/crc/version.ocpVersion=$(OPENSHIFT_VERSION) \
-X $(REPOPATH)/pkg/crc/version.okdVersion=$(OKD_VERSION) \
-X $(REPOPATH)/pkg/crc/version.podmanVersion=$(PODMAN_VERSION) \
-X $(REPOPATH)/pkg/crc/version.commitSha=$(COMMIT_SHA)
Expand Down
6 changes: 3 additions & 3 deletions pkg/crc/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ var (
// The SHA-1 of the commit this executable is build off
commitSha = "sha-unset"

// Bundle version which used for the release.
bundleVersion = "0.0.0-unset"
// OCP version which is used for the release.
ocpVersion = "0.0.0-unset"

// Podman version for podman specific bundles
podmanVersion = "0.0.0-unset"
Expand Down Expand Up @@ -73,7 +73,7 @@ func GetBundleVersion(preset crcPreset.Preset) string {
case crcPreset.OKD:
return okdVersion
default:
return bundleVersion
return ocpVersion
}
}

Expand Down

0 comments on commit 3b938cc

Please sign in to comment.