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
Multi-Context Support #4218
Multi-Context Support #4218
Conversation
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
…nd dummy implementation in remote provider Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
…a in http request contexts Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #4218 +/- ##
=======================================
Coverage 32.12% 32.12%
=======================================
Files 62 62
Lines 5252 5252
=======================================
Hits 1687 1687
Misses 3140 3140
Partials 425 425
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
Reviewers, |
Thanks for the note @Utkarsh-pro Will test out mesheryctl and see if there are any issues. |
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: leecalcote <leecalcote@gmail.com>
Syncing with master. @Utkarsh-pro this PR does not include the Kubernetes context selector, does it? Without a selector, users will be unable to identify which context a given operation is to be sent to. |
@Utkarsh-pro when multiple contexts are connected, only a single cluster chip shows on the Dashboard. We're expecting to show all connected contexts here, yeah? Screen.Recording.2022-01-04.at.2.17.44.AM.mov |
@Utkarsh-pro I'm getting:
I'll send you the full logs... |
@leecalcote, yes this PR doesn't have the mentioned context selector. Right now the only way to switch contexts is to do it from the settings (by selecting the context from the dropdown). UI certainly needs to be improved, it could be a part of this PR or could be brought in another PR considering that the UX doesn't changes even if we bring in this PR. |
Yes, that's right. We should be showing the same here as well. |
Ah, I think this is just a minor bug. I think the status code that the remote provider sending is 201 (resource created) while the server is expecting 200. So the API is working just fine, just need to change the expected status code. Will fix this 👍 |
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.
Things that failed during testing in my system
- Failed to delete current-context
- Failed to delete all context
- Failed to deploy operator in a non-current-context cluster
- If I upload the same kubeconfig twice, multiple entries for contexts get saved
2022-01-15.15-13-28.mp4
@Utkarsh-pro thoughts on @piyushsingariya's feedback? Heads-up on merge conflicts. |
These are concerning findings @piyushsingariya. I have been away from this PR for a while now but will look into these behaviours and will confirm if these are indeed reproducible bugs and were not left out for certain reasons. I should be able to get back on this within a few hours. // @leecalcote |
Also, thank you much @piyushsingariya for testing this out understanding you may had to go out of your way to test this PR out 🙁 . |
@Utkarsh-pro here's the design for the Kubernetes context switcher - https://www.figma.com/file/SMP3zxOjZztdOLtgN4dS2W/Meshery-UI?node-id=3984%3A21705 |
@Utkarsh-pro any comment here? Something that you can implement? |
A few merge conflicts have popped up. FYI, @Utkarsh-pro. |
@leecalcote, yes I can work on the the given UI. Have been lagging quite a lot but will make sure that this PR goes through ✅ . |
@Utkarsh-pro sounds great. Can you demo progress at this week's Meshery development meeting? |
@Utkarsh-pro, how about this week? Can you demo progress at this week's Meshery development meeting? |
Hey @leecalcote, I have conflicting meeting on Wednesday. I'll try to show the progress on Friday's call though. |
@Utkarsh-pro, excellent! // @debo19 |
Tomorrow is the big day! :) |
Signed-off-by: ashish <ashishjaitiwari15112000@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
@leecalcote all the changes that I had locally are here now. I have also resolved the merge conflicts. @piyushsingariya I could not replicate duplicate upload issue, I am not sure what might have caused that 🤔 . To answer other questions:
// @sudo-NithishKarthik @Revolyssup |
Signed-off-by: ashish <ashishjaitiwari15112000@gmail.com>
Description
This PR adds support for multiple contexts in meshery. This is a critical PR, has a huge surface area for bugs to pop up and also changes the way sections of meshery server interact with kubernetes cluster.
Details:
None
as well asMeshery Cloud
will ignore the "current-context" claim of the new context. If the user wants to switch the context, they can do so via the API/UI.Notes for Reviewers
Although this PR is functional (to the best of my knowledge) but still it should not be merged. Some cleanup items are left to do like:
Signed commits