[zsh] Fix kp launcher making the KUBECONFIG not overrideable
This commit is contained in:
parent
1765056eb7
commit
c80a1b91d7
|
@ -86,7 +86,7 @@ alias -g baml="|bat -l yaml"
|
|||
alias -g obaml="-o yaml|bat -l yaml"
|
||||
|
||||
# Switch between multiple kubeconfigs, stored in gopass
|
||||
kp() { export KUBECONFIG=/dev/shm/kubeconfig-${1} && touch $KUBECONFIG && chmod 0500 $KUBECONFIG && gopass $(gopass ls -f | fzf --query "'${1} kubeconfig" --select-1) > $KUBECONFIG && source <(kubectl completion zsh) }
|
||||
kp() { export KUBECONFIG=/dev/shm/kubeconfig-${1} && touch $KUBECONFIG && chmod 0600 $KUBECONFIG && gopass $(gopass ls -f | fzf --query "'${1} kubeconfig" --select-1) > $KUBECONFIG && source <(kubectl completion zsh) }
|
||||
# Give my <tab> key some rest
|
||||
kfp() { kubectl get pod -l app="${1:-$(basename $PWD)}" -o jsonpath="{.items[0].metadata.name}" }
|
||||
kpe() { kubectl exec -ti $(kfp ${1:-$(basename $PWD)}) $2 }
|
||||
|
|
Loading…
Reference in New Issue