Skip to content

Fix version label #330

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

gjumic-optiva
Copy link

What this PR does / why we need it

  • app.kubernetes.io/version label should use .image.tag if it is used
  • Use .Values.image.tag if used
  • Defaults to .Chart.AppVersion

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • Chart Version bumped

Use .Values.image.tag if used
Defaults to .Chart.AppVersion

Signed-off-by: Goran Jumic <[email protected]>
Signed-off-by: Goran Jumic <[email protected]>
Copy link
Member

@monotek monotek left a comment

Choose a reason for hiding this comment

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

I don't see the benefit of this.
The image could be something random, if a self build image is used.
I would still like to see the version there the chart was build for.

@gjumic-optiva
Copy link
Author

Hi,

This is just a suggestion :)

As per Kubernetes documentation LINK, this label value should be the current version of the application.

There were similar proposals on some popular Helm Charts repos
bitnami/charts#30151 -> Unfortunetly went stale
grafana/loki#8077
VictoriaMetrics/helm-charts#1766

Technically you could have both by adding 1 more custom label

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants