Add annotations to exclude labels from generated HPA and Job objects#6851
Conversation
000f7b4 to
c318fda
Compare
JorTurFer
left a comment
There was a problem hiding this comment.
I like this feature! Could you cover the change of the ScaledJob also in the already existing e2e test (scaled_job_validation_test)?
Please open another PR to docs documenting this new annotation https://github.com/kedacore/keda-docs
Oops! Forgot about it because I added the Scaled Job logic later. On it.
It is already done: kedacore/keda-docs#1579 |
c318fda to
7b678c4
Compare
7b678c4 to
a8ffa37
Compare
|
@JorTurFer added the test for the ScaledJob (took me a while 😓) and improved how is tested (didn't make sense to count labels and test the remaining one so I tested the ones I didn't want are not present). To be honest I don't know if the e2e tests work as I didn't find a way to run them locally. |
d347829 to
72c84fc
Compare
|
/run-e2e internal |
|
🤦🏻♂️ test failed due to lack of quotes in the value of a label that is a number, damn YAML. Fixed. |
|
/run-e2e internal |
69491ba to
8d06ebf
Compare
|
I think I fixed the e2e tests for good, I'm sorry for all the running around |
Thanks and no problem! I will run the e2e test :) |
|
/run-e2e internal |
|
🤦🏼 I hope this is the last one. |
the fossa build failed. |
cd124c5 to
79de40d
Compare
|
Done! |
|
Thanks! |
|
/run-e2e internal |
…HPA and Job objects Signed-off-by: Sergio Conde <skgsergio@gmail.com>
Signed-off-by: Sergio Conde <skgsergio@gmail.com>
Signed-off-by: Sergio Conde <skgsergio@gmail.com>
Signed-off-by: Sergio Conde <skgsergio@gmail.com>
Signed-off-by: Sergio Conde <skgsergio@gmail.com>
Signed-off-by: Sergio Conde <skgsergio@gmail.com>
Signed-off-by: Sergio Conde <skgsergio@gmail.com>
Signed-off-by: Sergio Conde <skgsergio@gmail.com>
d103582 to
7aeeba0
Compare
|
Ok I'm confident this is the one. 🤞🏼 The ScaledObject tests worked and the ScaledJob had an incorrect anotation in the text fixture but actually worked. To be honest I should have invested some time in trying to get the e2e tests to run locally, but not sure how feasible is. |
|
/run-e2e internal |
|
thanks for the contribution! |
…edacore#6851) * Add annotations to exclude labels from being propagated to generated HPA and Job objects Signed-off-by: Sergio Conde <skgsergio@gmail.com> * Improve testing Signed-off-by: Sergio Conde <skgsergio@gmail.com> * Fix tests label type Signed-off-by: Sergio Conde <skgsergio@gmail.com> * Fix job fetch helper function for e2e tests Signed-off-by: Sergio Conde <skgsergio@gmail.com> * Fix scaled object excluded labels tests Signed-off-by: Sergio Conde <skgsergio@gmail.com> * Use cron trigger instead of cpu on e2e test Signed-off-by: Sergio Conde <skgsergio@gmail.com> * Use a job without secret dependencies in e2e tests Signed-off-by: Sergio Conde <skgsergio@gmail.com> * Fix annotation in tests Signed-off-by: Sergio Conde <skgsergio@gmail.com> --------- Signed-off-by: Sergio Conde <skgsergio@gmail.com> Signed-off-by: David Pochopsky <david.pochopsky@united.com>
…edacore#6851) * Add annotations to exclude labels from being propagated to generated HPA and Job objects Signed-off-by: Sergio Conde <skgsergio@gmail.com> * Improve testing Signed-off-by: Sergio Conde <skgsergio@gmail.com> * Fix tests label type Signed-off-by: Sergio Conde <skgsergio@gmail.com> * Fix job fetch helper function for e2e tests Signed-off-by: Sergio Conde <skgsergio@gmail.com> * Fix scaled object excluded labels tests Signed-off-by: Sergio Conde <skgsergio@gmail.com> * Use cron trigger instead of cpu on e2e test Signed-off-by: Sergio Conde <skgsergio@gmail.com> * Use a job without secret dependencies in e2e tests Signed-off-by: Sergio Conde <skgsergio@gmail.com> * Fix annotation in tests Signed-off-by: Sergio Conde <skgsergio@gmail.com> --------- Signed-off-by: Sergio Conde <skgsergio@gmail.com>
|
Thank you for this PR! |
Implement
scaledobject.keda.sh/hpa-excluded-labelsandscaledjob.keda.sh/job-excluded-labelsannotations to allow excluding labels from being propagated to HPA and Job generated objects.Checklist
Fixes #6849
Relates to kedacore/keda-docs#1579