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