-
Notifications
You must be signed in to change notification settings - Fork 94
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
✨ Refactor registration #535
✨ Refactor registration #535
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: qiujian16 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 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #535 +/- ##
==========================================
+ Coverage 62.41% 62.60% +0.18%
==========================================
Files 177 181 +4
Lines 13857 13964 +107
==========================================
+ Hits 8649 8742 +93
+ Misses 4339 4338 -1
- Partials 869 884 +15
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
bb3e409
to
454a392
Compare
Signed-off-by: Jian Qiu <jqiu@redhat.com>
Signed-off-by: Jian Qiu <jqiu@redhat.com>
Signed-off-by: Jian Qiu <jqiu@redhat.com>
@@ -246,55 +268,27 @@ func (o *SpokeAgentConfig) RunSpokeAgentWithSpokeInformers(ctx context.Context, | |||
// create a ClientCertForHubController for spoke agent bootstrap | |||
// the bootstrap informers are supposed to be terminated after completing the bootstrap process. | |||
bootstrapInformerFactory := informers.NewSharedInformerFactory(bootstrapKubeClient, 10*time.Minute) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the comments should be updated. there is no ClientCertForHubController
now. And please check comments in other places.
IsHubKubeConfigValid(ctx context.Context, secretOption SecretOption) (bool, error) | ||
|
||
// BuildKubeConfigFromTemplate builds the kubeconfig from the template kubeconfig | ||
BuildKubeConfigFromTemplate(config *clientcmdapi.Config) *clientcmdapi.Config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BuildKubeConfigFromTemplate(config *clientcmdapi.Config) *clientcmdapi.Config | |
BuildKubeConfigFromTemplate(template *clientcmdapi.Config) *clientcmdapi.Config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or is it better to make the different driver only provide the auth-info? so the default-auth
key will always match the key defined in the BaseKubeConfigFromBootStrap
template kubeconfig context.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some implementation may also add additional field rather than authinfo, such as execconfig or execvar.
fc475f0
to
d3e6793
Compare
Signed-off-by: Jian Qiu <jqiu@redhat.com>
/lgtm |
8c1d286
into
open-cluster-management-io:main
Summary
Related issue(s)
Fixes #