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

Spidercoordinator: It able to get CIDR from kubeadm-config #3129

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

cyclinder
Copy link
Collaborator

@cyclinder cyclinder commented Jan 24, 2024

If the kube-controller-manager Pod is running as systemd precess rather than Pod, In this case, We can't get the CIDR from the KCM Pod. We can get the CIDR from the kubeadm-config configMap.

Thanks for contributing!

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #3126

Special notes for your reviewer:

Copy link

codecov bot commented Jan 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (951959a) 81.10% compared to head (b13ff55) 81.15%.

Additional details and impacted files

Impacted file tree graph

@@               Coverage Diff                @@
##           release-v0.9    #3129      +/-   ##
================================================
+ Coverage         81.10%   81.15%   +0.05%     
================================================
  Files                49       49              
  Lines              5334     5334              
================================================
+ Hits               4326     4329       +3     
+ Misses              852      850       -2     
+ Partials            156      155       -1     
Flag Coverage Δ
unittests 81.15% <ø> (+0.05%) ⬆️

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

see 1 file with indirect coverage changes

@weizhoublue
Copy link
Collaborator

it is supposed to be a bug fix

If the kube-controller-manager Pod is running as systemd precess rather than Pod, In this case, We can't get the CIDR from the KCM Pod. We can get the CIDR from the kubeadm-config configMap.

Signed-off-by: cyclinder <qifeng.guo@daocloud.io>
@cyclinder cyclinder merged commit db773f7 into spidernet-io:release-v0.9 Jan 25, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants