-
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
ActiveMQ scaler not respecting HTTPS protocol setting #3188
Comments
hey @M-Adam |
@M-Adam , |
Hi @JorTurFer, |
There is not any yaml to download because |
Finally, I had a moment to test this. All is working fine, can't see any errors in KEDA logs. My app gets scaled correctly. Looking forward to the production release :) |
Report
I have KEDA running on my local Docker Desktop cluster (Windows).
I am using ActiveMQ scaler
https://keda.sh/docs/2.7/scalers/activemq/
Here is my scaledObject setup:
Please note that I've used restAPITemplate that starts with HTTPS. However, I can see the following in the logs of
keda-metrics-apiserver-xxx
pod:Note the HTTP protocol in front of the URL, while it should be HTTPS. I believe it should work because the docs clearly say that you can overwrite the default URL template:
I am not able to use HTTP URL, because the broker I am connecting to only has HTTPS port exposed (8162).
I have tried using all available parameters of the scaler (managementEndpoint, corsHeader) hoping that one of them will fix the problem, but no luck...
Expected Behavior
I expect to be able to choose the protocol that Keda will use to get metrics from ActiveMQ REST API.
Actual Behavior
The protocol is hardcoded to be HTTP (?) or it doesn't respect the full API template passed as a parameter of the ScaledObject. Hence, the Scaler fails to get the metric from AMQ.
Steps to Reproduce the Problem
Logs from KEDA operator
KEDA Version
2.7.1
Kubernetes Version
1.23
Platform
Other
Scaler Details
ActiveMQ
Anything else?
Looking at the scaler code, this is where the
restAPITemplate
is parsed:https://github.com/kedacore/keda/blob/main/pkg/scalers/activemq_scaler.go#L79
And this is where the protocol from the parameter seems to get lost:
https://github.com/kedacore/keda/blob/main/pkg/scalers/activemq_scaler.go#L175
I think it is a relatively easy and quick to fix, but I don't know Go and its APIs 😢
The text was updated successfully, but these errors were encountered: