@@ -27,8 +27,9 @@ git --version 2>/dev/null
2727node --version 2> /dev/null
2828python3 --version 2> /dev/null
2929
30- # Optional (enables in-place updates of deployed apps)
31- kubectl version --client 2> /dev/null
30+ # Required (enables in-place updates of deployed apps)
31+ # Check PATH first, then fallback to ~/.agents/bin/
32+ kubectl version --client 2> /dev/null || ~ /.agents/bin/kubectl version --client 2> /dev/null
3233
3334# Always available (system built-in)
3435curl --version 2> /dev/null | head -1
@@ -57,7 +58,7 @@ ENV.docker = true/false
5758ENV.git = true/false
5859ENV.node = true/false (18+ required)
5960ENV.python = true/false
60- ENV.kubectl = true/false
61+ ENV.kubectl = true/false (if false, check ~/.agents/bin/kubectl)
6162ENV.curl = true/false
6263ENV.jq = true/false
6364```
@@ -90,9 +91,11 @@ docker info 2>/dev/null
9091** Python:**
9192- If missing, Sealos template validation (Phase 5) uses AI self-check instead of ` quality_gate.py `
9293
93- ** kubectl:**
94- - If available, enables in-place update of already-deployed apps (` kubectl set image ` , ` kubectl rollout ` )
95- - If missing, updates require a full re-deploy through the Template API
94+ ** kubectl (required):**
95+ - Installed automatically by ` install.sh ` to ` ~/.agents/bin/kubectl `
96+ - If ` kubectl ` is not in PATH, use ` ~/.agents/bin/kubectl ` as the absolute path for all kubectl commands
97+ - Enables in-place update of already-deployed apps (` kubectl set image ` , ` kubectl rollout ` )
98+ - If somehow missing, guide user to re-run the installer: ` curl -fsSL https://seakills.gzg.sealos.run/install.sh | bash `
9699
97100## Step 2: Project Context
98101
@@ -420,7 +423,7 @@ Environment: (cached / refreshed)
420423 ✓ git <version>
421424 ○ Node.js <version> (or: ✗ Node.js — using AI fallback mode)
422425 ○ Python <version> (or: ✗ Python — template validation via AI)
423- ○ kubectl <version> (or: ✗ kubectl — update via re-deploy only)
426+ ✓ kubectl <version>
424427
425428Auth:
426429 ✓ Sealos Cloud (<region>)
0 commit comments