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

feature: support read args from KubeletConfiguration #470

Merged
merged 1 commit into from
Aug 11, 2022

Conversation

ZYecho
Copy link
Contributor

@ZYecho ZYecho commented Aug 11, 2022

Signed-off-by: Yue Zhang huaihuan.zy@alibaba-inc.com

Ⅰ. Describe what this PR does

fix #457

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it

Ⅳ. Special notes for reviews

V. Checklist

  • I have written necessary docs and comments
  • I have added necessary unit tests and integration tests
  • All checks passed in make test

@ZYecho ZYecho force-pushed the support-kubeletconfig branch 2 times, most recently from abc8b3c to 9c0f922 Compare August 11, 2022 07:32
@codecov
Copy link

codecov bot commented Aug 11, 2022

Codecov Report

Merging #470 (a6cf233) into main (0829305) will decrease coverage by 0.77%.
The diff coverage is 22.78%.

@@            Coverage Diff             @@
##             main     #470      +/-   ##
==========================================
- Coverage   67.94%   67.17%   -0.78%     
==========================================
  Files         137      146       +9     
  Lines       14980    15466     +486     
==========================================
+ Hits        10178    10389     +211     
- Misses       4042     4302     +260     
- Partials      760      775      +15     
Flag Coverage Δ
unittests 67.17% <22.78%> (-0.78%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/util/system/cpu_manager_linux.go 0.00% <0.00%> (ø)
...dlet/statesinformer/states_noderesourcetopology.go 60.61% <22.85%> (-6.79%) ⬇️
pkg/util/system/common_linux.go 59.09% <100.00%> (+5.24%) ⬆️
.../webhook/pod/validating/request_limit_validator.go 94.64% <0.00%> (-2.68%) ⬇️
pkg/scheduler/plugins/nodenumaresource/plugin.go 70.11% <0.00%> (-1.36%) ⬇️
...kg/descheduler/controllers/migration/controller.go 64.77% <0.00%> (-0.51%) ⬇️
apis/extension/qos.go 0.00% <0.00%> (ø)
.../scheduler/plugins/batchresource/batch_resource.go 96.33% <0.00%> (ø)
apis/extension/priority.go 0.00% <0.00%> (ø)
... and 7 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@hormes
Copy link
Member

hormes commented Aug 11, 2022

/lgtm

if err != nil {
klog.Errorf("failed to load kubelet config, err: %v", err)
} else {
if len(cpuManagerPolicy.Options) == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

kubelet use params in --config ${file} first?

Copy link
Contributor

Choose a reason for hiding this comment

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

add a comment here: kubelet use args first

return "", fmt.Errorf("failed to parse kubelet's args, kubelet version may not support: %v", err)
}
if argsFilePath == "" {
return "", fmt.Errorf("failed to get config file path, --config is empty")
Copy link
Contributor

Choose a reason for hiding this comment

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

if kubelet not specifies --config, error logs will be overwhelming, so is the Parse func

if err != nil {
klog.Errorf("failed to load kubelet config, err: %v", err)
} else {
if len(cpuManagerPolicy.Options) == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

add a comment here: kubelet use args first

Signed-off-by: Yue Zhang <huaihuan.zy@alibaba-inc.com>
@koordinator-bot
Copy link

New changes are detected. LGTM label has been removed.

@koordinator-bot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please ask for approval from hormes after the PR has been reviewed.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hormes hormes merged commit e56ad6a into koordinator-sh:main Aug 11, 2022
@ZYecho ZYecho deleted the support-kubeletconfig branch August 11, 2022 12:38
hormes pushed a commit that referenced this pull request Aug 15, 2022
Signed-off-by: Yue Zhang <huaihuan.zy@alibaba-inc.com>
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.

[BUG] koordlet is not compatible with kubelet using --config to set static policy
3 participants