kedacore / keda

KEDA is a Kubernetes-based Event Driven Autoscaling component. It provides event driven scale for any container running in Kubernetes
https://keda.sh
Apache License 2.0
8.56k stars 1.08k forks source link

There is not check for whether scaletargetref exists in webhook for scaleobject #6354

Open ctccxxd opened 1 day ago

ctccxxd commented 1 day ago

Proposal

To check scaletargetref whether exists in scaleobject in webhook avoiding misconfiguration.

Use-Case

When users config a scaleobject, if the related scaletargetref is not found, currently webhook validate it.

Is this a feature you are interested in implementing yourself?

Yes

Anything else?

https://github.com/kedacore/keda/pull/6350 This is my code to solving this issue, welcome to review.