Reintroduce PR #5974: Remove klogr dependency and move to zap#6578
Conversation
|
Semgrep found 1 Avoid using sudo in Dockerfiles. Running processes as a non-root user can help reduce the potential impact of configuration errors and security vulnerabilities. |
3a0c3a9 to
c11ad1b
Compare
zroubalik
left a comment
There was a problem hiding this comment.
In general, this is great.
My concern is backwards compatibilty, we are changing the way to setup this. I wonder if there's a way how to bypass this, maybe internally convert the "old" params to the new one?
Yep. That's how it needs to be. |
de125cb to
3077754
Compare
|
@zroubalik @lucasfcnunes I added handling for the legacy klogr flags KEDA exposes through Helm and converted them to zap options to the extent that it made sense. Tested them locally on our setup without modifying flags (i.e use the existing klogr flags) and verified logging works and the metrics-server starts up. |
|
/run-e2e internal |
|
@zroubalik We should probably rerun the e2e tests if possible. Had to rebase to because of a conflict. The original run you started passed, but worth running again I guess |
|
/run-e2e internal |
|
@JorTurFer Not sure why the latest e2e test run failed: https://github.com/kedacore/keda/actions/runs/14682302792 Looks like it was green but the result was failure? |
|
/run-e2e internal |
3696a6b to
e591100
Compare
883bd10 to
75f751f
Compare
Signed-off-by: Ali Aqel <[email protected]> remove changelog changes Signed-off-by: Ali Aqel <[email protected]> add verbose logging for azure test Signed-off-by: Ali Aqel <[email protected]> add verbose logging for azure test Signed-off-by: Ali Aqel <[email protected]>
75f751f to
6a08338
Compare
|
/run-e2e internal |
|
/run-e2e internal |
|
Thanks! |
…kedacore#6578) remove changelog changes add verbose logging for azure test add verbose logging for azure test Signed-off-by: Ali Aqel <[email protected]> Co-authored-by: Jorge Turrado Ferrero <[email protected]> Signed-off-by: Max Cao <[email protected]>
…kedacore#6578) remove changelog changes add verbose logging for azure test add verbose logging for azure test Signed-off-by: Ali Aqel <[email protected]> Co-authored-by: Jorge Turrado Ferrero <[email protected]> Signed-off-by: David Pochopsky <[email protected]>
|
When will a version with this change be released? Currently v2.17.2 doesn't have this change. |
Reintroducing #5794
This PR reintroduces the above PR to refactor metrics-server to use zap instead of klogr. This not only removes the deprecated dependency but it also enables for JSON logging, a frequently requested feature in the metrics server.
To provide backward compatibility with existing tests and charts, I added handling for the three klogr flags KEDA exposes in helm charts. I translate the verbosity flag to the zap equivalent, but I treat the other flags as no-ops.
I also updated the dev container protoc version so that it does not overwrite the protoc version used to generate proto.
Additionally, I have
I ran locally and validated logs to console work:
and then validated I can log in json:
Checklist
Fixes #5732 , #4049
Relates to #741, #1543