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/bin/kubfn

8 lines
174 B
Text
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='{}'