-
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
MySQL Scaled job now working with TriggerAuthentication #5416
Comments
Hello, keda/pkg/scalers/mysql_scaler.go Lines 98 to 106 in 072fcf0
|
Hi @JorTurFer thanks for your help. If I modify the secret to use exactly the same base64 secret. I get the following error:
I would expect something like: not able to connect to mysql This is the k8s config I am trying to make work. Am I missing something?
|
That's weird because we use connectionString as the authentication option for e2e tests: keda/tests/scalers/mysql/mysql_test.go Line 299 in a815f06
Let me check your config, just in case |
I've testes the files you sent and I have this error: 2024-01-22T16:59:44Z ERROR scale_handler error resolving auth params {"type": "ScaledJob", "namespace": "module-cwh-test3", "name": "myscaled-job", "triggerIndex": 0, "error": "error establishing MySQL connection: dial tcp: lookup mysql on 10.0.0.10:53: no such host"}
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).buildScalers
/workspace/pkg/scaling/scalers_builder.go:98
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).performGetScalersCache
/workspace/pkg/scaling/scale_handler.go:356
github.com/kedacore/keda/v2/pkg/scaling.(*scaleHandler).GetScalersCache
/workspace/pkg/scaling/scale_handler.go:281
github.com/kedacore/keda/v2/controllers/keda.(*ScaledJobReconciler).reconcileScaledJob
/workspace/controllers/keda/scaledjob_controller.go:192
github.com/kedacore/keda/v2/controllers/keda.(*ScaledJobReconciler).Reconcile
/workspace/controllers/keda/scaledjob_controller.go:148
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile
/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:119
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:316
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227 Basically, an error trying to connect to an invalid host |
let me close the issue. Thanks for your help |
Report
MySQL Scaled job is not able to get variables from a TriggerAuthentication
Expected Behavior
I expect that password and other configs are configured from a TriggerAuthentication CR grabbing the config from a secret
Actual Behavior
Keda complains about variables required not present if configured in a TriggerAuthentication
Steps to Reproduce the Problem
3.- Configuring the host as a var works for host but waits for password parameter
Logs from KEDA operator
Error no host given
Error no password given
KEDA Version
2.12.1
Kubernetes Version
Other
Platform
Amazon Web Services
Scaler Details
MySQL
Anything else?
No response
The text was updated successfully, but these errors were encountered: