-
Notifications
You must be signed in to change notification settings - Fork 136
Bug 1808118: Implemented operator log level controller #602
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
Bug 1808118: Implemented operator log level controller #602
Conversation
|
@ricardomaraschini: This pull request references Bugzilla bug 1808118, which is valid. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/retest |
|
/assign @dmage |
|
/retest |
| case operatorapiv1.Debug, operatorapiv1.Trace, operatorapiv1.TraceAll: | ||
| return "debug" | ||
| default: | ||
| return "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.
From the telemetry, all customers (who send config.imageregistry) have logging=2. So I'd rather select the maximum of both, not minimum.
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.
Changed this, PTAL. Basically, if Loglevel is set to operatorapiv1.Debug, operatorapiv1.Trace or operatorapiv1.TraceAll we set it to debug, otherwise (operatorapiv1.Normal) we fall back to Logging (but this time if it is zero we return "info" instead of "error" as before)
LogLevel controller keeps track of Operator log level specified through Spec.OperatorLogLevel.
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dmage, ricardomaraschini The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@ricardomaraschini: All pull requests linked via external trackers have merged: Bugzilla bug 1808118 has been moved to the MODIFIED state. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Implemented controller to monitor and sync changes on Spec.OperatorLogLevel