-
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
annotations for the job object of a scaledjob #4594
Comments
This totally makes sense IMO |
sure, what is required? |
I reckon that something similar to the commit that you have linked. I mean, the code will be quite similar but using annotations instead of labels, and the changelog update. |
Absolutely valid request and I think that it should be documented as well |
How would you document it? I mean, the only option that I see is adding a note in ScaledJob section |
yeah, https://keda.sh/docs/2.10/concepts/scaling-jobs/#scaledjob-spec |
@InbarRose , the note in docs is also required :) |
I am not sure where to put the note, as there is no indication in the docs about labels either. |
I would put some labels and annotation to the metada of the Spec, with a comment that these get applied to the job as well: and then also a short paragraph to the details below, right at the beginning: https://keda.sh/docs/2.10/concepts/scaling-jobs/#scaledjob-spec Thanks! |
i have the code and the docs. |
I answered you there :) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
sorry. i am just not able to do the tests for this. |
Hi @InbarRose In any case, I think that unit test is easier an faster. You are right with your point of having to create mocks for it, but you can extract the job generation logic to another function and cover it with unit tests. Sorry for bothering you with the tests, but they are important to guarantee the behaviour in the future. If I build something using this new annotations, I'd like to have at least an small guarantee that they won't be removed by error. Other stuff could be covered out-of-the-box with already existing tests, but nothing is covering this specific scenario |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
Hey @zroubalik, I see that the only thing missing to resolve this issue is covering the new feature with tests. |
Proposal
i would like to be able to specify annotations which should be applied to each job created by the scaledjob.
currently, the job is only getting the labels from the scaledjob.
I am able to specify annotations for the pod, but not for the job.
Use-Case
i need to annotate the jobs in my cluster
Is this a feature you are interested in implementing yourself?
Maybe
Anything else?
this PR did the same thing for labels: https://github.com/kedacore/keda/pull/1322/files#diff-543511c1a0b5667aed68231a662b053e211fa61392ab63f8b87e7b3d45faf770
I propose a similar fix for annotations.
The text was updated successfully, but these errors were encountered: