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

Remove direct zap dependecy in operator and kube-agent-updater #50960

Merged
merged 3 commits into from
Jan 14, 2025

Conversation

hugoShaka
Copy link
Contributor

This PR removes the direct zap dependency from the operator and kube-agent-updater.

This is a breaking change and must not be backported as the -zap-* CLI flags are removed. Those flags were not documented nor used directly, but users might have set them via the extraArgs chart value.

I switched logs by default to JSON and did not add a --log-format flag. I add such flag if you think this is necessary.

Changelog: Remove the zap-log-level, zap-devel, zap-encoder and zap-stacktrace-level flags in the operator. Use --log-level instead.
Changelog: Remove the zap-log-level, zap-devel, zap-encoder and zap-stacktrace-level flags in the teleport-kube-agent-updater. Use --log-level instead.
Changelog: The operator now logs using JSON by default.
Changelog: The kube-agent-updater now logs using JSON by default.

@hugoShaka hugoShaka changed the title Remove direct zap dependecy Remove direct zap dependecy in operator and kube-agent-updater Jan 10, 2025
Copy link
Contributor

@rosstimothy rosstimothy left a comment

Choose a reason for hiding this comment

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

Thanks @hugoShaka!

integrations/operator/main.go Outdated Show resolved Hide resolved
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from tigrato January 13, 2025 09:12
@hugoShaka hugoShaka added this pull request to the merge queue Jan 14, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 14, 2025
@hugoShaka hugoShaka added this pull request to the merge queue Jan 14, 2025
Merged via the queue into master with commit 4883a18 Jan 14, 2025
43 checks passed
@hugoShaka hugoShaka deleted the hugo/operator-use-slog branch January 14, 2025 16:05
mvbrock pushed a commit that referenced this pull request Jan 18, 2025
* Remove direct zap dependecy

* fixup! Remove direct zap dependecy

* Apply suggestions from code review

Co-authored-by: rosstimothy <[email protected]>

---------

Co-authored-by: rosstimothy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants