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

namespace switching #32

Merged
merged 3 commits into from
Jan 26, 2024
Merged

namespace switching #32

merged 3 commits into from
Jan 26, 2024

Conversation

pjaudiomv
Copy link
Contributor

This adds a namespace switcher which allows you to set a namespace to current set kubeconfig context
IE snippet from kubeconfig. will take this which uses default

- context:
    cluster: k3d-k3s-default
    user: admin@k3d-k3s-default
  name: k3d-k3s-default

and set this

- context:
    cluster: k3d-k3s-default
    namespace: flux-system
    user: admin@k3d-k3s-default
  name: k3d-k3s-default
> kxd ns l
 default
 flux-system
 kube-node-lease
 kube-public
 kube-system
 metallb-system

> kxd ns s
  Kubeconfig Namespace Switcher
  Choose a namespace? flux-system

> kxd ns c
 flux-system

update readme and changelog
@pjaudiomv pjaudiomv force-pushed the pj/namespace-switching branch from 42bcbf8 to 0fff437 Compare January 26, 2024 19:46
Copy link

@caesarshift caesarshift left a comment

Choose a reason for hiding this comment

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

lgtm

@pjaudiomv pjaudiomv merged commit 123eace into main Jan 26, 2024
1 check passed
@pjaudiomv pjaudiomv deleted the pj/namespace-switching branch January 26, 2024 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants