-
Notifications
You must be signed in to change notification settings - Fork 63
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: add hosted mode option for join command #289
feature: add hosted mode option for join command #289
Conversation
related to #267 |
use |
9a844e9
to
01f7dbc
Compare
01f7dbc
to
41f7951
Compare
/assign @qiujian16 @elgnay please take a look |
fb4320f
to
3e50699
Compare
3e50699
to
b8c1a45
Compare
103c4f8
to
4c2c5b9
Compare
4c2c5b9
to
d43059c
Compare
I think we need to take a look at the others related commands. |
Talked with @zhujian7 , the result is:
@qiujian16 do you have any suggestion? |
maybe the combination of the cluster name as a prefix and a spec hash of klusterlet if it s not set? |
1c76a1a
to
41b7344
Compare
41b7344
to
d121923
Compare
d121923
to
ef3328d
Compare
Signed-off-by: ycyaoxdu <[email protected]> rebase main Signed-off-by: ycyaoxdu <[email protected]> modify hosted mode Signed-off-by: ycyaoxdu <[email protected]> print preflight check results Signed-off-by: ycyaoxdu <[email protected]> remove klusterlet flags in hosted Signed-off-by: ycyaoxdu <[email protected]> refactor join command Signed-off-by: ycyaoxdu <[email protected]>
ef3328d
to
8a818a7
Compare
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.
/approve
It worth a demo on community meeting
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: qiujian16, ycyaoxdu 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 |
@qiujian16 maybe after we've done more jobs in #298 ? |
} | ||
if c.Mode == InstallModeDefault { | ||
if c.ManagedKubeconfigFile != "" { | ||
return nil, []error{errors.New("--managed-cluster-kubeconfig should not be set in default deploy mode")} |
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.
I am not sure if we do need this check.
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.
I think we should not set the --managed-cluster-kubeconfig with default mode. Can it be set in default mode? @zhujian7
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.
I was thinking just ignoring it in default mode, but reporting an error also makes sense.
/lgtm |
Signed-off-by: ycyaoxdu [email protected]