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

add kubelet certificate mode in yurthub #1625

Conversation

rambohe-ch
Copy link
Member

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
/kind bug
/kind documentation
/kind enhancement
/kind good-first-issue
/kind feature
/kind question
/kind design
/sig ai
/sig iot
/sig network
/sig storage

/kind feature

What this PR does / why we need it:

add a new bootstrap mode: kubeletcertificate for yurthub component, so yurthub can use kubelet certificate to work.

Which issue(s) this PR fixes:

Fixes #1618

Special notes for your reviewer:

Does this PR introduce a user-facing change?


other Note

@openyurt-bot
Copy link
Collaborator

@rambohe-ch: 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.
For more information please see the contributor guide

In response to this:

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
/kind bug
/kind documentation
/kind enhancement
/kind good-first-issue
/kind feature
/kind question
/kind design
/sig ai
/sig iot
/sig network
/sig storage

/kind feature

What this PR does / why we need it:

add a new bootstrap mode: kubeletcertificate for yurthub component, so yurthub can use kubelet certificate to work.

Which issue(s) this PR fixes:

Fixes #1618

Special notes for your reviewer:

Does this PR introduce a user-facing change?


other Note

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.

@openyurt-bot openyurt-bot added the kind/feature kind/feature label Jul 20, 2023
@openyurt-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rambohe-ch

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rambohe-ch rambohe-ch force-pushed the support-kubelet-certificate-bootstrap branch from 31f05c4 to bfa5aa6 Compare July 20, 2023 12:53
@sonarcloud
Copy link

sonarcloud bot commented Jul 20, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

No Coverage information No Coverage information
1.4% 1.4% Duplication

@codecov
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Merging #1625 (bfa5aa6) into master (fe46a9d) will decrease coverage by 0.58%.
The diff coverage is 59.47%.

@@            Coverage Diff             @@
##           master    #1625      +/-   ##
==========================================
- Coverage   51.43%   50.85%   -0.58%     
==========================================
  Files         134      137       +3     
  Lines       15947    16029      +82     
==========================================
- Hits         8202     8152      -50     
- Misses       7000     7137     +137     
+ Partials      745      740       -5     
Flag Coverage Δ
unittests 50.85% <59.47%> (-0.58%) ⬇️

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

Impacted Files Coverage Δ
pkg/yurthub/certificate/server/server.go 39.02% <39.02%> (ø)
...tificate/kubeletcertificate/kubelet_certificate.go 43.63% <43.63%> (ø)
cmd/yurthub/app/config/config.go 48.97% <72.72%> (-3.44%) ⬇️
pkg/yurthub/certificate/token/token.go 26.84% <75.00%> (-30.16%) ⬇️
pkg/yurthub/certificate/manager/manager.go 78.46% <78.46%> (ø)
cmd/yurthub/app/options/options.go 94.79% <100.00%> (+0.06%) ⬆️

... and 1 file with indirect coverage changes

Copy link
Member

@YTGhost YTGhost left a comment

Choose a reason for hiding this comment

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

/lgtm

@openyurt-bot openyurt-bot added the lgtm lgtm label Jul 24, 2023
@openyurt-bot openyurt-bot merged commit 4efa1bf into openyurtio:master Jul 24, 2023
13 of 14 checks passed
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.

[feature request]Support for bootstrapping yurthub component using node certificates.
3 participants