gardener-attic / gardener-resource-manager

Kubernetes resource reconciliation controller capable of performing health checks for managed resources.
https://gardener.cloud
5 stars 19 forks source link

Fix the --version flag #128

Closed ialidzhikov closed 3 years ago

ialidzhikov commented 3 years ago

/kind bug

Current master:

$ docker run eu.gcr.io/gardener-project/gardener/gardener-resource-manager:v0.25.0 --version
gardener-resource-manager version v0.0.0-dev

With this PR:

$ docker run eu.gcr.io/gardener-project/gardener/gardener-resource-manager:v0.26.0-dev-e6dc87cec5aa5d55e4e9516883298dd5149cf633 --version
gardener-resource-manager v0.26.0-dev-e6dc87cec5aa5d55e4e9516883298dd5149cf633

$ docker run eu.gcr.io/gardener-project/gardener/gardener-resource-manager:v0.26.0-dev-e6dc87cec5aa5d55e4e9516883298dd5149cf633 --version=raw
version.Info{Major:"0", Minor:"26+", GitVersion:"v0.26.0-dev-e6dc87cec5aa5d55e4e9516883298dd5149cf633", GitCommit:"e6dc87cec5aa5d55e4e9516883298dd5149cf633", GitTreeState:"clean", BuildDate:"2021-07-19T20:06:19+00:00", GoVersion:"go1.16.5", Compiler:"gc", Platform:"linux/amd64"}

Release note:

Fix the `--version` flag to print the appropriate metadata.