f8df461249
* scripts: check for satellite configuration changes Create a simple script that checks if the satellite configuration has differed with the last changes. * Makefile: add target to check satellite cfg changes Add a Makefile target which executes the script that checks if the last changes has made a change in the satellite configuration. * ci: add satellite cfg check on integration stage * FIXUP: use releae defaults rather than development ones * FIXUP: show the message when config differs & some cleanups * scripts: add script to update the satellite cfg lock Add a script for allowing to update the satellite configuration lock file and add Makefile target to run it. * scripts/testsdata: update satellite cfg lock Update the satellite configuration lock file with the last changes that satellite has suffered upstream.
25 lines
722 B
Bash
Executable File
25 lines
722 B
Bash
Executable File
#!/bin/bash -
|
|
|
|
# NOTE this script MUST BE EXECUTED from the same directory where it's located
|
|
# to always obtain the same paths in the satellite configuration file.
|
|
|
|
set -uo pipefail
|
|
|
|
TESTDATA_DIR="./testdata"
|
|
cleanup(){
|
|
rm "$TESTDATA_DIR/config.yaml"
|
|
}
|
|
trap cleanup EXIT
|
|
|
|
satellite --config-dir "$TESTDATA_DIR" --defaults release setup > /dev/null
|
|
|
|
|
|
diff "$TESTDATA_DIR/satellite-config.yaml.lock" "$TESTDATA_DIR/config.yaml"
|
|
if [[ $? != 0 ]]; then
|
|
echo
|
|
echo "NOTIFY the Devops and PM when this test fails so they can plan for changing it in the release process before fixing it to merge your PR."
|
|
echo "Once you have notified them you can update the lock file through another Makefile target"
|
|
echo
|
|
exit 1
|
|
fi
|