Skip to content

Commit bf2743f

Browse files
authored
feat: add overcloud service prechecks script
This piece of `kayobe-automation` could be used during `PR/MR` to check that any proposed configuration will satisfy all prechecks.
1 parent a7de3ab commit bf2743f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
set -euE
4+
set -o pipefail
5+
6+
PARENT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
7+
8+
source "${PARENT}/../functions"
9+
10+
11+
function main {
12+
kayobe_init
13+
args=()
14+
git merge --no-edit $1
15+
run_kayobe overcloud service prechecks "${args[@]}" "${@}"
16+
}
17+
18+
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
19+
if [ "$#" -lt 1 ]; then
20+
die $LINENO "Error: You must provide a git ref." \
21+
"Usage: overcloud-service-prechecks.sh <git ref>"
22+
fi
23+
main "$1"
24+
fi

0 commit comments

Comments
 (0)