Skip to content
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: Added port information check in ClusterIPAddress #4162

Merged
merged 4 commits into from
Feb 6, 2023

Conversation

ithesadson
Copy link
Contributor

Signed-off-by: ithesadson thesadson@gmail.com

Since the change I made before was a breaking change, I just fix the mistake and send a pr again.
Issue : #4110
Previous PR: #4079

If the clusterIPAddress contains port information, checking if the port information is entered in the clusterIPAddress will cause some errors.

Error example in current code: User enters the following values.
clusterIPAddress: "https://cassandra.test/"
port: "9042"
->Expected clusterIPAddress : https://cassandra.test:9042/
The actual clusterIPAddress: https://cassandra.test/

Checklist

  • Commits are signed with Developer Certificate of Origin (DCO - learn more)

Signed-off-by: ithesadson <thesadson@gmail.com>
@ithesadson ithesadson requested a review from a team as a code owner January 28, 2023 21:35
CHANGELOG.md Outdated Show resolved Hide resolved
Signed-off-by: ithesadson <thesadson@gmail.com>
@zroubalik
Copy link
Member

zroubalik commented Jan 30, 2023

/run-e2e cassandra*
Update: You can check the progress here

Copy link
Member

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the contribution!

Copy link
Member

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more thing, do you think you can add unit test for this fix? https://github.com/kedacore/keda/blob/main/pkg/scalers/cassandra_scaler_test.go

Signed-off-by: ithesadson <thesadson@gmail.com>
@ithesadson
Copy link
Contributor Author

I added the unit test. But e2e-tests has been running for about 5 days and has not finished yet. Is there any problem with my unit test?

@zroubalik
Copy link
Member

zroubalik commented Feb 6, 2023

/run-e2e cassandra*
Update: You can check the progress here

@zroubalik
Copy link
Member

@ithesadson maintainers need to start e2e tests, I've just triggered them

@zroubalik zroubalik mentioned this pull request Feb 6, 2023
1 task
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
Copy link
Member

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the fix!

@zroubalik zroubalik merged commit 629f9e8 into kedacore:main Feb 6, 2023
@ithesadson ithesadson deleted the cassandra_scaler_fixedport branch March 20, 2023 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants