Skip to content
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

fix(opentelemetry-operator): set version label with image tag if provided #1461

Merged
merged 5 commits into from
Dec 12, 2024

Conversation

jdiegosierra
Copy link
Contributor

If .Values.manager.image.tag is provided with a different version other than appVersion, label app.kubernetes.io/version still shows appVersion.

@jdiegosierra jdiegosierra requested review from Allex1 and a team as code owners December 11, 2024 11:25
@jdiegosierra jdiegosierra changed the title Set version label with image tag if provided [Operator] fix: set version label with image tag if provided Dec 11, 2024
@jdiegosierra jdiegosierra changed the title [Operator] fix: set version label with image tag if provided fix(operator): set version label with image tag if provided Dec 11, 2024
@jdiegosierra jdiegosierra changed the title fix(operator): set version label with image tag if provided fix(opentelemetry-operator): set version label with image tag if provided Dec 11, 2024
{{/*
Common labels
*/}}
{{- define "opentelemetry-operator.labels" -}}
helm.sh/chart: {{ include "opentelemetry-operator.chart" . }}
{{ include "opentelemetry-operator.selectorLabels" . }}
{{- if .Chart.AppVersion }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

.Chart.AppVersion will be always defined so its not needed

@TylerHelmuth TylerHelmuth merged commit 9d82de4 into open-telemetry:main Dec 12, 2024
4 checks passed
jtyr pushed a commit to jtyr/opentelemetry-helm-charts that referenced this pull request Dec 23, 2024
…ided (open-telemetry#1461)

* Create app version helper

* Fix description

* Bump version

---------

Co-authored-by: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com>
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.

3 participants