-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Added env to suppress Docker performance messages #13168
Added env to suppress Docker performance messages #13168
Conversation
pkg/drivers/kic/oci/cli_runner.go
Outdated
env := os.Getenv(envKey) | ||
suppress, err := strconv.ParseBool(env) | ||
if err != nil { | ||
klog.Errorf("failed to parse bool from the %s env, defaulting to 'false'; received: %s: %v", envKey, env, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be a warning at worst, maybe even an info
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fair, my main concern was letting the user know that they messed by the config, but I can add an out
message to satisfy that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sharifelgamal, spowelljr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
We're having issues where Docker performance messages are being output to stderr and is making tests where we check to see if stederr is empty fail, for example
TestFunctional/parallel/ImageCommands/ImageLoadFromFile
.Then passed the new env to tests so they messages will stop being displayed.