Add wrappers for env-based kubectl calls
This commit is contained in:
11
bin/kubectl-env
Executable file
11
bin/kubectl-env
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
case "$1" in
|
||||
mycloud)
|
||||
shift
|
||||
command kubectl --kubeconfig=<(pass show mycloud/kubeconfig) "${@}"
|
||||
;;
|
||||
*)
|
||||
command kubectl "${@}"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user