-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
add ScaledJob's label to its job #1322
Conversation
Signed-off-by: mosesyou <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@mosesyou could you please add this feature to the Changelog? to the Improvements section in Unreleased, thanks! |
Signed-off-by: mosesyou <[email protected]>
Sure |
* add ScaledJob's label to its job Signed-off-by: mosesyou <[email protected]> * Changelog: Add ScaledJob's label to its job Signed-off-by: mosesyou <[email protected]> Co-authored-by: Zbynek Roubalik <[email protected]> Signed-off-by: Aaron Schlesinger <[email protected]>
@zroubalik I have big interest in this PR and tested it, here are my findings:
|
@ericbottard sad to hear that. Thanks for the confirmation! We should fix this. Could you please open an issue with the details. And are you willing to contribute this? Or @mosesyou do you want to take a look? |
@zroubalik Can you maybe just reopen #1311 since the issue described there still exists? |
Hi, I would like to help if I can. I took a look at the code and it seems to do a deep copy of the scaledjob spec.template to job spec.template on creation. If we want a label or annotation to appear in the pod, wouldn't we would add it in the scaledjob spec.template metadata? @erichorwath would you provide a snip of your scaledjob? To help me better understand the issue. |
@ycabrer sure, the interesting part is here spec.template.metadata part. It would be great to be able to set this in an scaledJob yaml (-> spec.jobTargetRef.template.spec.metadata).
|
keda/pkg/scaling/executor/scale_jobs.go Lines 83 to 90 in af5254d
I'm not sure, |
Hi there I know this has been merged in and apparently works for labels but we still cannot add annotations on the PodSpec (to disable istio injection for example). Do we have a rough idea of when this feature will be brought back in Keda ? Cheers |
@julienperignon I've opened #1627 for it. |
Signed-off-by: mosesyou [email protected]
This PR is about to add ScaledJob's label to its job.
Checklist
Fixes #1311