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

kubectl-env should provide all relevant kubeconfigs (seed, control plane, shoot, garden) #72

Open
petersutter opened this issue Jan 26, 2022 · 1 comment
Assignees
Labels
component/gardenctl Gardener CLI kind/enhancement Enhancement, improvement, extension lifecycle/rotten Nobody worked on this for 12 months (final aging stage)

Comments

@petersutter
Copy link
Member

What would you like to be added:
the kubectl-env subcommand should provide all relevant kubeconfigs.

E.g. if a Shoot cluster is targeted, the kubeconfig should contain the following kubeconfigs (contexts, clusters and users):

  • shoot kubeconfig (this should be the current context)
  • seed kubeconfig with seed-shoot namespace set of the Shoot (control plane access)
  • original seed kubeconfig (maybe not needed because of the control plane kubeconfig?)
  • garden cluster kubeconfig with project namespace set

If the seed is targeted, it should only contain:

  • original seed kubeconfig
  • garden cluster kubeconfig with garden namespace set

etc.

Why is this needed:
So that the user can easily switch the contexts to jump from the control plane to the shoot to the garden cluster

@petersutter petersutter added component/gardenctl Gardener CLI kind/enhancement Enhancement, improvement, extension labels Jan 26, 2022
@petersutter
Copy link
Member Author

as we just discussed this with @rfranzke the question came up if we rather

  1. would want to have stable context names for easier switching
contexts:
- name: shoot-external
- name: shoot-internal
- name: control-plane
- name: seed (maybe not needed)
- name: garden
  1. or have the target name (e.g. shoot name) within the context name for easier identification of the context
contexts:
- name: shoot-external--my-cluster
- name: shoot-internal--my-cluster
- name: control-plane--my-cluster
- name: seed--aws1 (maybe not needed)
- name: garden--landscape-dev

@holgerkoser holgerkoser self-assigned this Jan 28, 2022
@gardener-robot gardener-robot added the lifecycle/stale Nobody worked on this for 6 months (will further age) label Jul 28, 2022
@gardener-robot gardener-robot added lifecycle/rotten Nobody worked on this for 12 months (final aging stage) and removed lifecycle/stale Nobody worked on this for 6 months (will further age) labels Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/gardenctl Gardener CLI kind/enhancement Enhancement, improvement, extension lifecycle/rotten Nobody worked on this for 12 months (final aging stage)
Projects
None yet
Development

No branches or pull requests

3 participants