fix(deploy): isolate compose smoke resources
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
script=scripts/docker-smoke.sh
|
||||
sh -n "$script"
|
||||
|
||||
grep -q 'SMOKE_PROJECT' "$script"
|
||||
grep -q -- '--project-name' "$script"
|
||||
grep -q 'KEEP_SMOKE_RESOURCES' "$script"
|
||||
grep -q 'down --volumes' "$script"
|
||||
|
||||
if grep -q -- 'down --remove-orphans' "$script"; then
|
||||
echo "smoke cleanup must not remove operator orphans" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "docker-smoke isolation contract passed."
|
||||
Reference in New Issue
Block a user