-
Notifications
You must be signed in to change notification settings - Fork 408
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
fix: yurtadm support enable kubelet service #1523
fix: yurtadm support enable kubelet service #1523
Conversation
@YTGhost: GitHub didn't allow me to assign the following users: your_reviewer. Note that only openyurtio members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In 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. |
Codecov Report
@@ Coverage Diff @@
## master #1523 +/- ##
==========================================
+ Coverage 50.39% 50.42% +0.02%
==========================================
Files 132 132
Lines 15707 15783 +76
==========================================
+ Hits 7916 7958 +42
- Misses 7069 7094 +25
- Partials 722 731 +9
Flags with carried forward coverage won't be shown. Click here to find out more. |
@huiwq1990 PTAL |
8abaff5
to
f2f2971
Compare
@YTGhost func RunPrepare(data joindata.YurtJoinData) error {
// cleanup at first
staticPodsPath := filepath.Join(constants.KubeletConfigureDir, constants.ManifestsSubDirName)
if err := os.RemoveAll(staticPodsPath); err != nil {
klog.Warningf("remove %s: %v", staticPodsPath, err)
}
if err := system.SetIpv4Forward(); err != nil {
return err
}
if err := system.SetBridgeSetting(); err != nil {
return err
}
if err := system.SetSELinux(); err != nil {
return err
}
if err := yurtadmutil.CheckAndInstallKubelet(data.KubernetesResourceServer(), data.KubernetesVersion()); err != nil {
return err
}
if err := yurtadmutil.CheckAndInstallKubeadm(data.KubernetesResourceServer(), data.KubernetesVersion()); err != nil {
return err
}
if err := yurtadmutil.CheckAndInstallKubernetesCni(data.ReuseCNIBin()); err != nil {
return err
}
if err := yurtadmutil.SetKubeletService(); err != nil {
return err
} |
Signed-off-by: Liang Deng <283304489@qq.com>
f2f2971
to
d0d1a31
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@huiwq1990 Yes, I made a mistake, and now it has been revised |
/lgtm |
@huiwq1990: changing LGTM is restricted to collaborators In 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. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rambohe-ch, YTGhost 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 |
/lgtm |
Signed-off-by: Liang Deng <283304489@qq.com>
What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #1520
Special notes for your reviewer:
@rambohe-ch
Does this PR introduce a user-facing change?
other Note