-
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
Cannot create HPA object when Deployment has missing ConfigMap (optional: true) #555
Comments
Question is, is that really a bug or good that it's being blocked? But it's only breaking when it has to scale rather than when being deployed, is that correct? |
Specification of Deployment permits you doing such thing...
Yeah. Everything works. Deployment has two replicas and these two pods are working. |
|
I'm more referring to KEDA deployment. When do you have errors? When ScaledObject is being created or when it wants to scale? Frankly, I'd say everything works as expected and it's up to you to make sure that the ConfigMap is there. Only thing we should improve is block you from creating the ScaledObject or fail immediately because of it. |
It looks like a problem with this function: https://github.com/kedacore/keda/blob/master/pkg/handler/scale_handler.go#L53
When it wants to scale.
That is the point. Sometimes we do not have such
Hmm, I think the better approach is to just omit consuming such |
That's ok for me, then it's indeed a bug if we don't respect However, what if it's not marked as optional? Would the current approach be ok then? |
Yes, for me it makes sense. And, when I remove this |
I can help you with this issue of course. It would be nice to implement it also for |
We can close this issue, the fix is on the master. |
Signed-off-by: Jan Moravec <[email protected]> Co-authored-by: Jan Moravec <[email protected]>
Hi, Keda is still throwing an error when we use the secretkeyref in the deployment with the latest version too, for example
Please let me know if need any other info. |
@siva-27 could you please open a new issue and paste there scaledobject/deployemnt/triggerauthentication and also the exact error log message? |
yes , I have created here #2658 |
I want to scale my deployment based on RabbitMQ Queue. I cannot do that, because my deployment tries to get envs from non existing
ConfigMap
:ScaledObject
:{{ .Release.Name}}
, this one is missing, but it is fine (optional: true
). Deployment of course works, but for some reason I have got such exception inkeda-operator
.Expected Behavior
KEDA creates HPA object.
Actual Behavior
KEDA cannot create HPA object.
Steps to Reproduce the Problem
ConfigMap
(withoptional: true
)ScaledObject
objectConfgMap
is missing (but, this is fine, we use it to override some envs if we need to do that). It works withDeployment
.Specifications
The text was updated successfully, but these errors were encountered: