-
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
Fix RabbitMQ Scaler, allow subpaths along with vhost in connection string #4584
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the improvement ❤️
Could you add some unit test to check this new parameter?
Additionally, this new parameter needs to be documented in keda-docs repository
Hi, sure, thanks for the quick review and response from you ❤️ I will do it ASAP |
Changes look good to me @AmorBielyi . Did you test the above changes on a RabbitMQ setup with Ref: https://github.com/kedacore/sample-go-rabbitmq |
Not yet. I will test it today |
@AmorBielyi Could you get the changes work with the amqp protocol? What I realized during my test is that the amqp go library does not support subpath in host URI at all. |
Rebase main branch please, there are some required changes for e2e tests |
Yes, tested |
@JorTurFer @rtnpro A bit refactored strings operations logic in getVhostAndPathFromURL function + refactored and improved unit tests according to these new changes. Would be grateful for your review. |
I suppose we don't need to support subpaths for amqp case, it's only necessary for RabbitMQ Management HTTP API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, done, could you check please? @rtnpro @JorTurFer |
There are still some style issues + DCO :( |
|
df2d137
to
425e560
Compare
@JorTurFer Hi, I resolved DCO issue but in a bit different way, I followed these tips https://github.com/kedacore/keda/blob/main/CONTRIBUTING.md#i-didnt-sign-my-commit-now-what, Also, could you please help me with failed CI Static Check (changelog-check), you said earlier I need to merge the main branch into this one, because main already has a fix for it, I did it, but it's not working, as you can see the Static Check for changelog has been failed. |
That's perfect. If DCO is solved, np at all During the rebase something hasn't gone well, because the changelog isn't correct. The other changes than yours are wrong. If you check the original changelog, they aren't there :/ |
… rebase, this fix is aimed to resolve failed workflow's Static Check (validate-changelog) test Signed-off-by: Roman Bielyi <[email protected]>
@JorTurFer it looks like that all workflow's tests has been successfully passed |
/run-e2e rabbit |
# Conflicts: # CHANGELOG.md
Head branch was pushed to by a user without write access
@JorTurFer oh, there was a simple conflict just right before an auto-merge, I resolved it right now so let's wait workflow's tests one more time, please enable auto-merge again |
/skip-e2e |
@JorTurFer great! could you please approve PR if everything is done |
I thought that I did it, sorry |
…ring (kedacore#4584) * fix RabbitMQ Scaler, allow subpaths along with vhost in connection string (kedacore#4584) Signed-off-by: Roman Bielyi <[email protected]> * Fix CHANGELOG.md, remove redundant/wrong pieces that were made during rebase, this fix is aimed to resolve failed workflow's Static Check (validate-changelog) test Signed-off-by: Roman Bielyi <[email protected]> --------- Signed-off-by: Roman Bielyi <[email protected]>
…ring (kedacore#4584) * fix RabbitMQ Scaler, allow subpaths along with vhost in connection string (kedacore#4584) Signed-off-by: Roman Bielyi <[email protected]> * Fix CHANGELOG.md, remove redundant/wrong pieces that were made during rebase, this fix is aimed to resolve failed workflow's Static Check (validate-changelog) test Signed-off-by: Roman Bielyi <[email protected]> --------- Signed-off-by: Roman Bielyi <[email protected]>
…ring (kedacore#4584) * fix RabbitMQ Scaler, allow subpaths along with vhost in connection string (kedacore#4584) Signed-off-by: Roman Bielyi <[email protected]> * Fix CHANGELOG.md, remove redundant/wrong pieces that were made during rebase, this fix is aimed to resolve failed workflow's Static Check (validate-changelog) test Signed-off-by: Roman Bielyi <[email protected]> --------- Signed-off-by: Roman Bielyi <[email protected]> Signed-off-by: anton.lysina <[email protected]>
Allow subpaths along with vhost in the RabbitMQ HTTP host string.
Extract them from the URL using string operations.
Checklist
Fixes #2634