10 lines
168 B
Bash
10 lines
168 B
Bash
#!/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 "$@"
|
|
}
|