Add wrappers for env-based kubectl calls

This commit is contained in:
2020-12-30 22:36:45 +01:00
parent afdd8fb34c
commit 0043122f62
2 changed files with 13 additions and 2 deletions

11
bin/kubectl-env Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
case "$1" in
mycloud)
shift
command kubectl --kubeconfig=<(pass show mycloud/kubeconfig) "${@}"
;;
*)
command kubectl "${@}"
;;
esac