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.32k stars 1.05k forks source link

KEDA Validation should prevent the creation of a ScaledObject with duplicate value for spec.advanced.horizontalPodAutoscalerConfig.name #6130

Open asobti opened 2 weeks ago

asobti commented 2 weeks ago

Proposal

KEDA's validating admission webhook should prevent the creation of a ScaledObject if another ScaledObject already exists in the namespace with the same value for spec.advanced.horizontalPodAutoscalerConfig.name.

If more than 1 ScaledObject exists with the same value for spec.advanced.horizontalPodAutoscalerConfig.name, KEDA operator keeps updating the underlying HPA object continuously.

Use-Case

No response

Is this a feature you are interested in implementing yourself?

No

Anything else?

No response

zroubalik commented 1 week ago

Reasonable idea