This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/common/bin/kubfn

8 lines
174 B
Plaintext
Raw Normal View History

#!/usr/bin/env sh
kubectl get namespaces --show-labels | \
uniq | \
sort | \
cut -d ' ' -f1 | \
fzf | \
xargs -I{} kubectl config set-context --current --namespace='{}'