cut into bash k8s aliases

This commit is contained in:
Barak Michener 2021-09-18 17:19:56 -07:00
parent 2a36ef6c0b
commit 48ec212fb2

10
.bash_k8s_aliases Normal file
View file

@ -0,0 +1,10 @@
#!/bin/bash
k8s-configmap-from-dir () {
local name=$1
shift
local dir=$1
shift
if
kubectl create configmap "$1" --from-file="$2" -o yaml --dry-run "$@"
}