-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use image.tag for app.kubernetes.io/version label if defined #190
Use image.tag for app.kubernetes.io/version label if defined #190
Conversation
Signed-off-by: David Castellanos <[email protected]>
Signed-off-by: David Castellanos <[email protected]>
Thanks for the PR! |
Hi @hagaibarel , FYI, when we use an immutable tag like
Could you please consider fixed this behavior, probably with something like : Thanks |
I'll create right now another PR fixing the problem you noticed. Sorry for any inconvenience! |
Thank you 💪 |
Why is this pull request needed and what does it do?
The
Deployment
object has a label namedapp.kubernetes.io/version
which value isChart.AppVersion
. But this is not always true because the chart allows to specify the image tag with theimage.tag
.I think it makes more sense to use the same mechanism as with the image tag. Use
Chart.AppVersion
by default but useimage.tag
if present.Which issues (if any) are related?
n/a
Checklist:
Changes are automatically published when merged to
main
. They are not published on branches.Note on DCO
If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.