dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Enable to switch context when kubeconfig used for login

Open shu-mutou opened this issue 6 years ago • 10 comments

What would you like to be added
  • [x] Add contexts in kubeconfig into user menu. @shu-mutou #4534
  • [x] Store kubeconfig in browser side. @shu-mutou #4534
  • [x] Re-login when current context is switched. @shu-mutou #4534
  • [x] Store server for cluster in kubeconfig into cookie. @shu-mutou #4534
  • [x] Create client for server in each request. @shu-mutou #4534
  • [x] Store sidecarHost for cluster in kubeconfig into cookie. @shu-mutou #4534
  • [x] Create client for metrics plugin in each request. @shu-mutou #4534
  • [ ] Auto namespace selection when context has namespace attribute.
  • [ ] Add edit view for kubeconfig with validation. Or for only server and sidecarHost. Into login view and local setting view.
  • [ ] All Cluster option
Why is this needed

To enable to switch context from browser, rather than switching by kubectl proxy.

Comments

switch_context

shu-mutou avatar Nov 12 '19 06:11 shu-mutou

/assign shu-mutou

shu-mutou avatar Nov 12 '19 07:11 shu-mutou

That looks really interesting. How about adding an option to local settings on settings view to add new API server config. We could ping it before adding to see if it's up. Then on settings view we could switch contexts and trigger re-login.

Also, it would be good to show available contexts on the login view.

floreks avatar Nov 12 '19 08:11 floreks

Nice idea! Added config editor with validation to this spec.

shu-mutou avatar Nov 13 '19 01:11 shu-mutou

Is it possible we could have an all-clusters option, kinda like all namespaces that shows an aggregated view as well?

ivelichkovich avatar Jan 21 '20 16:01 ivelichkovich

@ivelichkovich All Clusters option added into this issue. It will be impremented in the future, but not 2.0.0. Thanks! 😉

shu-mutou avatar Jan 22 '20 00:01 shu-mutou

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale

fejta-bot avatar May 20 '20 01:05 fejta-bot

/lifecycle frozen

maciaszczykm avatar May 21 '20 09:05 maciaszczykm

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale

fejta-bot avatar Aug 23 '20 10:08 fejta-bot

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle rotten

fejta-bot avatar Sep 22 '20 10:09 fejta-bot

/lifecycle frozen

maciaszczykm avatar Sep 22 '20 11:09 maciaszczykm