feat(services-disabler): propagate SERVICES_DISABLED through deploy stack and add conflict detection

Adds inventory consistency guard that fails fast when SERVICES_DISABLED
conflicts with an already-deployed inventory, and ensures the env var is
forwarded through the dedicated runner, development exec command, and
local test scripts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Sonnet 4.6 committed 2026-04-14 19:36:16 +02:00
1 parent 3f626a71c1
commit 3cfdc4bdf7
7 files changed
+447 -47

No files matched your search

+6 -1
View File
@@ -31,5 +31,10 @@ def handler(args: argparse.Namespace) -> int:
if not cmd:
raise SystemExit("exec requires a command (e.g. exec -- sh -lc 'whoami')")
r = compose.exec(cmd, check=False)
extra_env: dict[str, str] = {}
services_disabled = os.environ.get("SERVICES_DISABLED", "")
if services_disabled:
extra_env["SERVICES_DISABLED"] = services_disabled
r = compose.exec(cmd, check=False, extra_env=extra_env or None)
return int(r.returncode)