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

Use scaled[object/job].keda.sh/ prefix for KEDA related labels #2008

Merged
merged 2 commits into from
Aug 6, 2021

Conversation

zroubalik
Copy link
Member

@zroubalik zroubalik commented Aug 4, 2021

Signed-off-by: Zbynek Roubalik zroubali@redhat.com

KEDA defines and uses labels in order to do scaling, there are certain recommendations for labels naming, ie. use some prefix and keep non prefixed for user defined labels.

https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/

If the prefix is omitted, the label Key is presumed to be private to the user. Automated system components (e.g. kube-scheduler, kube-controller-manager, kube-apiserver, kubectl, or other third-party automation) which add labels to end-user objects must specify a prefix.

Also:
https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/


So this PR intoduces a change in labels (It shouldn't bring any problems to users as KEDA Operator automatically sets these):

ScaledObject: scaledObjectName -> scaledobject.keda.sh/name
ScaleJob: scaledJob -> scaledjob.keda.sh/name

Checklist

  • Commits are signed with Developer Certificate of Origin (DCO - learn more)
  • Changelog has been updated

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
@zroubalik zroubalik changed the title use prefix for KEDA related labels Use scaled[object/job].keda.sh/ prefix for KEDA related labels Aug 4, 2021
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
Copy link
Member

@tomkerkhove tomkerkhove left a comment

Choose a reason for hiding this comment

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

Good thinking!

@zroubalik
Copy link
Member Author

Good thinking!

As always! :trollface: 🤦‍♂️

@zroubalik zroubalik added this to the v2.4.0 milestone Aug 5, 2021
@tomkerkhove tomkerkhove merged commit 31e980e into kedacore:main Aug 6, 2021
TsuyoshiUshio pushed a commit that referenced this pull request Aug 6, 2021
Signed-off-by: Tsuyoshi Ushio <ushio@simplearchitect.com>
nilayasiktoprak pushed a commit to nilayasiktoprak/keda that referenced this pull request Oct 23, 2021
…acore#2008)

Signed-off-by: nilayasiktoprak <nilayasiktoprak@gmail.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.

2 participants