#!/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 "$@" }