This repository was archived by the owner on Nov 9, 2022. It is now read-only.
Inject effective version into binary#96
Merged
Merged
Conversation
Contributor
Author
|
Something is still broken here: Checking... |
Contributor
Author
|
Now it works: |
ae4644d to
fc02275
Compare
fc02275 to
fb1fd42
Compare
Contributor
Author
|
#95 is merged, rebased this one. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
How to categorize this PR?
/area usability dev-productivity
/kind enhancement
/priority normal
What this PR does / why we need it:
With this PR the effective version is injected into the built binary, just like we do it in g/g (ref gardener/gardener#2500) and images built by
make docker-imageare tagged with the effective version (including the commit hash) just like in the pipeline.Also, a make target
docker-pushwas added.All of this makes it easier to built and push development images for verification of new changes.
Additionally, grm has a
--versionoption now and logs the binary version on startup:Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: