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

While importing kubeconfig, showback information about K8s context registration #7571

Merged
merged 8 commits into from May 12, 2023

Conversation

MdSahil-oss
Copy link
Contributor

Notes for Reviewers

This PR fixes #6331

Signed commits

  • Yes, I signed my commits.

@Chadha93
Copy link
Member

@MdSahil-oss Let's discuss this on the Meshery Dev call. Please add this as an agenda item in the meeting minutes if you would. :)

Signed-off-by: MdSahil-oss <Mohdssahil1@gmail.com>
@codecov-commenter
Copy link

codecov-commenter commented Apr 19, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01 ⚠️

Comparison is base (4eb97e3) 16.53% compared to head (22e0d9b) 16.52%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7571      +/-   ##
==========================================
- Coverage   16.53%   16.52%   -0.01%     
==========================================
  Files         121      121              
  Lines       16931    16941      +10     
==========================================
  Hits         2799     2799              
- Misses      13626    13636      +10     
  Partials      506      506              
Flag Coverage Δ
gointegrationtests 5.51% <0.00%> (-0.01%) ⬇️
unittests 12.45% <0.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
server/handlers/k8sconfig_handler.go 2.05% <0.00%> (-0.08%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

resp := K8sConfigResonseOutput{
K8sConfigOutputs: uiMessages,
}
json.NewEncoder(w).Encode(resp)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please check for errors while encoding and send response accordingly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@MUzairS15 Please review this PR again


return ctx
return ctx, msg
Copy link
Contributor

Choose a reason for hiding this comment

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

Please send the contexts name list in response. UI can present the message accordingly.

Signed-off-by: MdSahil-oss <Mohdssahil1@gmail.com>
Signed-off-by: MdSahil-oss <Mohdssahil1@gmail.com>
@MdSahil-oss MdSahil-oss changed the title WIP: While importing kubeconfig, showback information about K8s context registration While importing kubeconfig, showback information about K8s context registration Apr 20, 2023
@leecalcote
Copy link
Member

@MdSahil-oss, signal when feedback has been incorporated and you're ready for review again.

Signed-off-by: MdSahil-oss <Mohdssahil1@gmail.com>
@MdSahil-oss
Copy link
Contributor Author

@leecalcote This PR is ready to review :)

@leecalcote
Copy link
Member

@MdSahil-oss goooood, good. Did we ever get this one demo'ed on the Meshery Dev meeting? If not, will you do so in this week's meeting?

@leecalcote
Copy link
Member

Note that a merge conflict has popped up.

@Chadha93
Copy link
Member

Chadha93 commented May 3, 2023

@MdSahil-oss Let's discuss this on the Meshery Dev call. Please add this as an agenda item in the meeting minutes if you would. :)

I'm adding this as agenda item.

Signed-off-by: MdSahil-oss <Mohdssahil1@gmail.com>
@leecalcote leecalcote merged commit 3cb9acb into meshery:master May 12, 2023
16 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UI] Multi-cluster: While importing kubeconfig, showback information about K8s context registration
5 participants