Repository navigation
feat(k8s): add k8s crawl4ai-check command - #4108
Conversation
Plans the change 3894-crawl4ai-check-command and writes its tests first. The tests fail on the base because the command, devops_cli.k8s.service_probe and devops_cli.k8s.crawl4ai_check do not exist.
Adds the command that forwards a port to Service crawl4ai, sends five routes to five internal targets with the keyring token, checks the refusal without the token, and probes the NetworkPolicy from a throwaway pod. The pod and forward code is in k8s/service_probe.py so the SearXNG check can reuse it.
|
Test record for #3894. Tests first: commit d82b2fb added 3 test files (38 tests) that failed (exit 2 for the command, import errors for the modules). The feature commit makes them pass. This is a new command, not a fix, so no fail-to-pass run applies. Full One run against the cluster by port-forward (exit 0, 11 s). The throwaway pod was in Terminating state at the end and never became Ready (readiness probe Requests with the token, 5 routes (/md, /html, /screenshot, /pdf, /llm/{url}) by 5 targets ( Requests without the token, 5 routes: 5 of 5 answered 401, result refused. Pod with the label of the service, connect test: Image checked: unclecode/crawl4ai:0.9.5 at the digest of the manifest. For a person to decide: the issue label says type/test, but the title uses feat because the change adds a command (owner choice of 2026-11-07). |
🤖 I have created a release *beep* *boop* --- ## [0.87.0](v0.86.0...v0.87.0) (2026-11-08) ### Features * **k8s:** add k8s crawl4ai-check command ([#4108](#4108)) ([32e247f](32e247f)) ### Bug Fixes * **repos:** keep unmanaged and ignored-data worktrees in add reclaim ([#4106](#4106)) ([8978d56](8978d56)) * **roadmap:** check a split plan of the stage with every gate ([#4109](#4109)) ([768dbd3](768dbd3)) * **roadmap:** count only answered searches in alternatives ([#4101](#4101)) ([b34fe0e](b34fe0e)) * **roadmap:** keep a round alive on item-changed; fail on bad schedule ([#4102](#4102)) ([9231dc3](9231dc3)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Add devops k8s crawl4ai-check. It sends five routes to five internal targets with the keyring token through a port-forward, and sends each route once without the token. A throwaway pod that never becomes Ready tries two connects under the NetworkPolicy of the service. It exits 1 when a target is served, a request without the token is not refused, or a pod connection opens. Run it at each bump of the image digest. A gate check ties the command to the digest in the manifest.
Closes #3894
Change:
openspec/changes/archive/2026-11-08-3894-crawl4ai-check-command/Elapsed: 2.48s