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

app.kubernetes.io/version Label in *-core.yaml Release Asset Should Specify Version #5484

Closed
bdschaap opened this issue Feb 5, 2024 · 3 comments · Fixed by #5519
Closed
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@bdschaap
Copy link

bdschaap commented Feb 5, 2024

Report

The app.kubernetes.io/version label in the keda--core.yaml release asset lists main rather than the actual version. This differs from the keda-.yaml release asset which lists the version.

Expected Behavior

The version is listed in the label of the keda-*-core.yaml release asset.

Actual Behavior

main is listed as the version.

Steps to Reproduce the Problem

  1. Download keda-*-core.yaml
  2. View the app.kubernetes.io/version labels

Logs from KEDA operator

N/A

KEDA Version

2.11.2

Kubernetes Version

1.26

Platform

Other

Scaler Details

kafka

Anything else?

No response

@bdschaap bdschaap added the bug Something isn't working label Feb 5, 2024
@bdschaap bdschaap changed the title app.kubernetes.io/version Label in *-core.yaml release asset Should Specify Version app.kubernetes.io/version Label in *-core.yaml Release Asset Should Specify Version Feb 5, 2024
@JorTurFer
Copy link
Member

Hey!
Thanks for reporting! are you willing to draft a PR with the fix?
It should be just adding a line like
@sed -i".out" -e 's@version:[ ].*@version: $(VERSION)@g' config/minimal/kustomize-config/metadataLabelTransformer.yaml during the release target (and the changelog record):

keda/Makefile

Lines 226 to 239 in 6d326c8

release: manifests kustomize set-version ## Produce new KEDA release in keda-$(VERSION).yaml file.
cd config/manager && \
$(KUSTOMIZE) edit set image ghcr.io/kedacore/keda=${IMAGE_CONTROLLER}
cd config/metrics-server && \
$(KUSTOMIZE) edit set image ghcr.io/kedacore/keda-metrics-apiserver=${IMAGE_ADAPTER}
cd config/webhooks && \
$(KUSTOMIZE) edit set image ghcr.io/kedacore/keda-admission-webhooks=${IMAGE_WEBHOOKS}
# Need this workaround to mitigate a problem with inserting labels into selectors,
# until this issue is solved: https://github.com/kubernetes-sigs/kustomize/issues/1009
@sed -i".out" -e 's@version:[ ].*@version: $(VERSION)@g' config/default/kustomize-config/metadataLabelTransformer.yaml
rm -rf config/default/kustomize-config/metadataLabelTransformer.yaml.out
$(KUSTOMIZE) build config/default > keda-$(VERSION).yaml
$(KUSTOMIZE) build config/minimal > keda-$(VERSION)-core.yaml
$(KUSTOMIZE) build config/crd > keda-$(VERSION)-crds.yaml

@zroubalik zroubalik added the good first issue Good for newcomers label Feb 12, 2024
@vinod827
Copy link
Contributor

Can I pick this up?

@vinod827
Copy link
Contributor

Opened the PR# #5518

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
Status: Ready To Ship
Development

Successfully merging a pull request may close this issue.

4 participants