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

Ensure that disabled warnings get passed to the logger in kubernetes agents #2698

Merged
merged 1 commit into from Apr 2, 2024

Conversation

moskyb
Copy link
Contributor

@moskyb moskyb commented Mar 22, 2024

Description

In #2674, we added a feature to the agent where some warnings would be "dismissable" through CLI flags - for example, one could disable this warning:
CleanShot 2024-03-22 at 15 20 58@2x

by passing --disable-warnings-for "submodules-disabled".

However, due to an oversight, this feature wasn't working on Kubernetes agents. This PR fixes that issue by correctly passing the config down the the customised logger that K8s pods use, and making it harder for developers to miss this kind of thing in the future.

Context

#2674

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go fmt ./...)

@moskyb moskyb requested a review from triarius March 22, 2024 04:22
Copy link
Contributor

@triarius triarius left a comment

Choose a reason for hiding this comment

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

LGTM ⚙️

Copy link
Contributor

@DrJosh9000 DrJosh9000 left a comment

Choose a reason for hiding this comment

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

@moskyb moskyb merged commit 1aa78cf into main Apr 2, 2024
1 check passed
@moskyb moskyb deleted the k8s-disabled-warnings branch April 2, 2024 23:30
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.

None yet

3 participants