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

Prometheus Scaler: Remove trailing whitespaces in customAuthHeader and customAuthValue #4959

Merged
merged 3 commits into from
Sep 11, 2023

Conversation

Amir-Wollman
Copy link
Contributor

@Amir-Wollman Amir-Wollman commented Sep 10, 2023

Added strings.TrimSuffix to customAuth interpreter to avoid auth failure.

*TrimSuffix was used rather than TrimSpace to avoid unwanted removal of randomly generated strings with "\n"

Checklist

Relates to #
https://kubernetes.slack.com/archives/CKZJ36A5D/p1694069463138859

Fixes #4960

@Amir-Wollman Amir-Wollman requested a review from a team as a code owner September 10, 2023 15:45
@github-actions
Copy link

Thank you for your contribution! 🙏 We will review your PR as soon as possible.

While you are waiting, make sure to:

Learn more about:

…pdate CHANGELOG

Signed-off-by: Amir-Wollman <amir.wollman@nonamesecurity.com>
@JorTurFer
Copy link
Member

JorTurFer commented Sep 11, 2023

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

CHANGELOG.md Outdated Show resolved Hide resolved
@JorTurFer
Copy link
Member

Thanks for the contribution! Could you merge the suggestion? Static checks are failing

Fix whitespace at the end of CHANGELOG.md file

Co-authored-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>
Signed-off-by: Amir-Wollman <135226062+Amir-Wollman@users.noreply.github.com>
@zroubalik
Copy link
Member

zroubalik commented Sep 11, 2023

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

@JorTurFer : I have canceled this because it hasn't started yet and there is other commit

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! Just a nit in the Changelog

CHANGELOG.md Outdated Show resolved Hide resolved
Modify CHANGELOG entry to use correct parameter names

Signed-off-by: Amir-Wollman <135226062+Amir-Wollman@users.noreply.github.com>
@JorTurFer
Copy link
Member

JorTurFer commented Sep 11, 2023

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

@JorTurFer JorTurFer changed the title trim \n suffix in Prometheus customAuth parser, and add test suites **Prometheus Scaler**: Remove trailing whitespaces in customAuthHeader and customAuthValue Sep 11, 2023
@JorTurFer JorTurFer changed the title **Prometheus Scaler**: Remove trailing whitespaces in customAuthHeader and customAuthValue Prometheus Scaler: Remove trailing whitespaces in customAuthHeader and customAuthValue Sep 11, 2023
@JorTurFer JorTurFer enabled auto-merge (squash) September 11, 2023 12:32
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

@JorTurFer JorTurFer merged commit c94c20f into kedacore:main Sep 11, 2023
19 checks passed
toniiiik pushed a commit to toniiiik/keda that referenced this pull request Jan 15, 2024
…d customAuthValue (kedacore#4959)

Co-authored-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>
Signed-off-by: anton.lysina <alysina@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.

Newline character added to Prometheus Custom Auth
3 participants