Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

fix(build): ensure controller version is not a chart version #1927

Merged
merged 1 commit into from
Oct 27, 2020
Merged

fix(build): ensure controller version is not a chart version #1927

merged 1 commit into from
Oct 27, 2020

Conversation

nojnhuh
Copy link
Contributor

@nojnhuh nojnhuh commented Oct 27, 2020

Description:
Currently, we make tags of the form v.X.Y.Z for binary releases and
chart/X.Y.Z for the Helm chart. The version is passed to the
osm-controller binary via a linker flag. If both a chart and regular
semver tag exist on the same commit, the chart tag may be passed instead
of the regular version tag. This change ensures only our regular semver
tags are used for the versions embedded in the binaries.

Affected area:

  • New Functionality [ ]
  • Documentation [ ]
  • Install [ ]
  • Control Plane [ ]
  • CLI Tool [ ]
  • Certificate Management [ ]
  • Networking [ ]
  • Metrics [ ]
  • SMI Policy [ ]
  • Security [ ]
  • Tests [ ]
  • CI System [ ]
  • Performance [ ]
  • Other [X] (Build)

Please answer the following questions with yes/no.

  • Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?
    No

Currently, we make tags of the form `v.X.Y.Z` for binary releases and
`chart/X.Y.Z` for the Helm chart. The version is passed to the
osm-controller binary via a linker flag. If both a chart and regular
semver tag exist on the same commit, the chart tag may be passed instead
of the regular version tag. This change ensures only our regular semver
tags are used for the versions embedded in the binaries.
@nojnhuh nojnhuh requested a review from a team as a code owner October 27, 2020 15:31
@@ -12,7 +12,7 @@ GOBIN = $(GOPATH)/bin
GOX = go run github.com/mitchellh/gox

CLI_VERSION ?= dev
CONTROLLER_VERSION = $$(git describe --abbrev=0 --tags)
CONTROLLER_VERSION = $$(git describe --abbrev=0 --tags --match "v*")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to drop a comment regarding the match.

@nojnhuh nojnhuh merged commit fa0445c into openservicemesh:main Oct 27, 2020
@nojnhuh nojnhuh deleted the make-version branch October 27, 2020 20:57
draychev pushed a commit to draychev/osm that referenced this pull request Oct 28, 2020
…vicemesh#1927)

Currently, we make tags of the form `v.X.Y.Z` for binary releases and
`chart/X.Y.Z` for the Helm chart. The version is passed to the
osm-controller binary via a linker flag. If both a chart and regular
semver tag exist on the same commit, the chart tag may be passed instead
of the regular version tag. This change ensures only our regular semver
tags are used for the versions embedded in the binaries.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants