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

Assign PostgreSQL userName to correct attribute #2432

Merged
merged 4 commits into from
Jan 3, 2022

Conversation

tsndqst
Copy link
Contributor

@tsndqst tsndqst commented Jan 3, 2022

Signed-off-by: Tim Sandquist tim.sandquist@gmail.com

Fix problem with PostgreSQL scaler introduced by #2114. The userName overwrites the port value when creating the connection string from individual values.

Checklist

  • Commits are signed with Developer Certificate of Origin (DCO - learn more)
  • Changelog has been updated

Fixes #2430

Signed-off-by: Tim Sandquist <tim.sandquist@gmail.com>
@tsndqst tsndqst requested a review from a team as a code owner January 3, 2022 12:44
Signed-off-by: Tim Sandquist <tim.sandquist@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.

Looking good, could you please tweak the Changelog and also fix the merge conflict in Changelog?

CHANGELOG.md Outdated Show resolved Hide resolved
@zroubalik zroubalik added this to the v2.6.0 milestone Jan 3, 2022
Signed-off-by: Tim Sandquist <tim.sandquist@gmail.com>
@JorTurFer
Copy link
Member

JorTurFer commented Jan 3, 2022

Nice catch!
Could you add a test for it? (I will review the scaler tests after this is merged)

@zroubalik
Copy link
Member

zroubalik commented Jan 3, 2022

/run-e2e postgresql.test.ts
Update: You can check the progres here

@zroubalik zroubalik merged commit 1f59d36 into kedacore:main Jan 3, 2022
alex60217101990 pushed a commit to dysnix/keda that referenced this pull request Jan 10, 2022
Signed-off-by: Tim Sandquist <tim.sandquist@gmail.com>

Co-authored-by: Zbynek Roubalik <726523+zroubalik@users.noreply.github.com>
Signed-off-by: alex60217101990 <alex6021710@gmail.com>
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.

PostgreSQL scaler uses username instead of port number in 2.5.0
3 participants