7 lines
216 B
Bash
7 lines
216 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
|
||
|
|
SCRIPT=scripts/init-data-ctl.sh
|
||
|
|
|
||
|
|
CONFIGMAP=$(kubectl -n infctl create configmap init-data-script --from-file=init-data.sh=$SCRIPT --dry-run=client -o yaml)
|
||
|
|
|
||
|
|
echo "$CONFIGMAP" | kubectl apply -f -
|