14 lines
325 B
Bash
14 lines
325 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
|
||
|
|
CREATE_CONFIGMAP=$(kubectl -n infctl create configmap merge-data-script --from-file=scripts/merge_data_ctl.sh --dry-run=client -o yaml)
|
||
|
|
|
||
|
|
echo $CREATE_CONFIGMAP
|
||
|
|
|
||
|
|
echo "$CREATE_CONFIGMAP" | kubectl -n infctl apply -f -
|
||
|
|
|
||
|
|
if [ $? -ne 0 ]; then
|
||
|
|
echo "Failed to create or update the configmap."
|
||
|
|
exit 1
|
||
|
|
fi
|
||
|
|
|