fix(deploy): create the namespace before the first secrets; prove probe settings; keep the start order as fallback

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
This commit is contained in:
ngqileandClaude Opus 5.5 committed 2026-12-03 19:07:05 +08:00
1 parent c7bc7a8dcb
commit 12babb9b88
3 files changed
+20 -4

No files matched your search

+4
View File
@@ -47,6 +47,10 @@ apply() { # name, then kubectl create arguments
echo "applied Secret $name"
}
if [ -z "$dry" ]; then
# The first run comes before the first apply, which is what would otherwise create the namespace.
kubectl create namespace "$ns" --dry-run=client -o yaml | kubectl apply -f - >/dev/null
fi
for f in "$src"/*.env "$src"/*/; do
[ -e "$f" ] || continue
name=$(basename "$f" .env); name=${name%/}