-
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
feat: New validation hook to check if scale target is already managed #4001
Conversation
1bab396
to
7756767
Compare
/run-e2e internals* |
/run-e2e internals* |
51f6417
to
c7fd50c
Compare
/run-e2e internals* |
/run-e2e internals* |
/run-e2e internals* |
/run-e2e internals* |
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
/run-e2e internals* |
/run-e2e internals* |
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
/run-e2e internals* |
/run-e2e |
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
/run-e2e |
/run-e2e |
I'm still thinking about this, and I have doubts about using the operator for cert management or if it could be worth to introduce another component just for managing the certificates and the ca injections (like https://github.com/jet/kube-webhook-certgen/ does, but generating a bundle cert with all our requirements, not just 1 cert per thing). The architecture grows from 2 components to 4, but the certificates component is the piece that end users have to replace with cert-manager or other tool. Or maybe I'm overthinking, and we can introduce this new component in the future if it's necessary. |
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
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.
Looking really great, just a minor nits.
Signed-off-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
Signed-off-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
Ready for the final review :) |
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.
/run-e2e internals*
/run-e2e internals* |
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, great job!
Is it okey for you @tomkerkhove ? can I merge the feature? |
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.
A small approve for a review, a big step for KEDA
…kedacore#4001) * feat: New validation hook to check if scale target is already managed Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * update missing changes Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * add prometheus metrics to webhooks Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * fix test Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * fix styles Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * remove unused parameter Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * use k8s 1.26 for smoke test Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * fix style Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * add webhook logs to e2e output Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * apply feedback Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * use kedautil.GetPodNamespace() in adapter Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * use gvkr parser for webhooks Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * remove the empty secret as requirement Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * update go.sum Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * update errors Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * update pictures Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * update external name to use admission-webhooks Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * update bin output Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * add a core release Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * split rbac Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * update changelog Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * fix styles Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * fix typo Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * update parameter name Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * update docs Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * update rbac Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * update contributing Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * add cpu/memory validation Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * solve styles Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * fix errors Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * update arch picture Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * use my own fork temporally Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * move to the operator the cert generation Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * fix influx test Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * fix influx test Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * fix matching errors Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * undo incorrect change Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> * remove keda-architecture ppt in favour of keda-docs schematics.pptx Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * Update Makefile Signed-off-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es> * apply feedback Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * add a deletion note in release yaml Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> Signed-off-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>
Signed-off-by: Jorge Turrado jorge_turrado@hotmail.es
Note: This PR uses my own fork of opa/cert-controller until the merge/reject my PR, If they don't merge it, I plan to fork their repo in kedacore organization with the changes
Note 2: I have removed duplicated test code for influx scaler because that test fails after adding the webhooks (due to multiple SO for the same workload)
Checklist
Relates to #3755
Relates to #3087
Relates to #3083
Relates to #3088