generated from kedacore/github-template
-
Notifications
You must be signed in to change notification settings - Fork 145
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Report
HTTPScaledObject accepts resources with empty scaleTargetRef.name even when the http.keda.sh/skip-scaled-object-creation annotation is not set. This results in the controller creating an invalid ScaledObject downstream.
Expected Behavior
HTTPSO with a missing scaleTargetRef.name field and the missing annotation should either be rejected or marked as invalid, e.g. via a condition.
Actual Behavior
HTTPSO is accepted, SO is created with the missing name field which makes it not Ready:
status:
conditions:
- message: 'ScaledObject doesn''t have correct scaleTargetRef specification: ScaledObject.spec.scaleTargetRef.name
is missing'
reason: ScaledObjectCheckFailed
status: "False"
type: Ready
- message: ScaledObject check failed
reason: UnknownState
status: Unknown
type: ActiveSteps to Reproduce the Problem
- Create an HTTPScaledObject without scaleTargetRef.name and without the skip annotation
- An invalid ScaledObject is created
Logs from KEDA HTTP operator
No response
HTTP Add-on Version
0.11.1
Kubernetes Version
1.33
Platform
Any
Anything else?
Idea: A dedicated Valid condition type could surface validation errors to users when they can't be caught at admission time, related to #902
We should maybe wait with the implementation though until we know how the HTTPSO CR will exist in the future.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
To Triage