cut into bash k8s aliases
This commit is contained in:
parent
2a36ef6c0b
commit
48ec212fb2
1 changed files with 10 additions and 0 deletions
10
.bash_k8s_aliases
Normal file
10
.bash_k8s_aliases
Normal 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 "$@"
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue