NO-ISSUE: Allow setting kubeletconfig log level to zero#5757
NO-ISSUE: Allow setting kubeletconfig log level to zero#5757ngopalak-redhat wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
@ngopalak-redhat: This pull request explicitly references no jira issue. 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 openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThe changes adjust KubeletConfig.LogLevel validation threshold from [1,10] to [0,10], allowing 0 as a valid value. Error formatting is updated to use %d instead of %v, and the error message reflects the new valid range. Comprehensive test coverage is added to verify validation behavior for valid and invalid values. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.5.0)Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions Comment |
|
/lgtm |
|
cc: @haircommander /assign @isabella-janssen |
|
/verified by ci |
|
@ngopalak-redhat: This PR has been marked as verified by 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 openshift-eng/jira-lifecycle-plugin repository. |
isabella-janssen
left a comment
There was a problem hiding this comment.
/lgtm
Change looks good & the need mades sense based on the linked API conversation and docs. The new units for this are also passing, so this should be good to go. Thank you @ngopalak-redhat
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bitoku, isabella-janssen, ngopalak-redhat 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 |
|
/retest-required |
1 similar comment
|
/retest-required |
|
@ngopalak-redhat: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
|
/override ci/prow/e2e-hypershift This change should have no impact on Hypershift & the test is generally not doing well, so I am going to override it. |
|
@isabella-janssen: Overrode contexts on behalf of isabella-janssen: ci/prow/e2e-hypershift 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-sigs/prow repository. |
- What I did
While working on https://github.com/openshift/api/pull/2651/changes#r2895572721, its identified that 0 is a valid value for log level.
Currently setting it to zero gives the error:
There are 2 issues:
Also the documentation already lists zero as valid value: https://docs.redhat.com/en/documentation/openshift_container_platform/4.21/html/api_overview/editing-kubelet-log-level-verbosity
The fix just includes zero in the validation code and fixes the error message.
- How to verify it
- Description for the changelog
Summary by CodeRabbit
Bug Fixes
Tests