-
Notifications
You must be signed in to change notification settings - Fork 22
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
Perform plugin sync for single target only #521
Conversation
e234f33
to
1c30aa8
Compare
2634365
to
f1e1f3c
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.
I like this! It will be much nicer for users.
Some comments in-line.
After the change vmware-tanzu/tanzu-plugin-runtime#112 is merged, we should be using |
As a follow-up to this PR we should discuss improving the |
5c17e63
to
804e3f1
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.
Thanks @chandrareddyp.
Synching a single context may require a little more discussion now that we have decided that all context are mutually-exclusive when active, except for TMC. This means that there can be at most two active contexts at the same time:
- a TMC context
- a kubernetes OR tae context
For the non-TMC context, do we want to require the user to specify the correct type (k8s or tae) or do we want to just allow to say "sync the other context than the TMC one"? This makes me wonder if we don't actually want to use --target
for synching.
Once we agree on the approach, the commit message may need to be updated.
Also the PR description may need to be updated.
And finally, we must discuss #521 (comment)
3d65cf1
to
4888c55
Compare
After a discussion with the team, we have decided to remove the |
c796c65
to
e1b0070
Compare
This pull request updates existing functionality of context create/use as follows: 1. 'tanzu context create' now performs 'plugin sync' only for the newly created context, not for all active contexts. 2. 'tanzu context use' now triggers 'plugin sync' only for the context being set as active, not for all currently active contexts.
e1b0070
to
aeaa4ae
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.
LGTM
Thanks for this very nice change!
(cherry picked from commit b8c291b)
(cherry picked from commit b8c291b)
(cherry picked from commit b8c291b)
What this PR does / why we need it
This pull request updates existing functionality:
Before this pull request, 'tanzu context create,' and 'tanzu context use' performed sync operations for all active contexts. As part of this PR, the functionality has been updated as follows:
Which issue(s) this PR fixes
Fixes #
Describe testing done for PR
Release note
Additional information
Special notes for your reviewer