Skip to content

docs(pool): show how SDK client pools use Kubernetes Pools - #3119

Draft
LyleLiu666 wants to merge 1 commit into
opensandbox-group:mainfrom
LyleLiu666:codex/docs-client-pool-kubernetes
Draft

LyleLiu666 wants to merge 1 commit into
opensandbox-group:mainfrom
LyleLiu666:codex/docs-client-pool-kubernetes

Conversation

@LyleLiu666

Copy link
Copy Markdown
Contributor

Summary

  • Show how a Python SDK client pool selects a pre-warmed Kubernetes BatchSandbox Pool through PoolCreationSpec.extensions["poolRef"].
  • Build the shared-PVC instructions on the repository's Pool sample, which includes the task executor and execd. Link the guides and explain when to omit per-request volumes.

This addresses the question raised by AllenJavaLearner and builds on the static PVC documentation in #1476. Discussion #681 · PR #1476

Testing

  • Unit tests and local SDK request checks
  • Documentation build and inspection of the generated pages
  • Live Kubernetes end-to-end test

The documented Python snippet sent poolRef and omitted volumes in four paths through an HTTP transport stub. These covered background warmup and direct-create fallback for both sync and async pools. Five focused server tests passed, including the HTTP 400 case for a per-request volume combined with poolRef.

The documented YAML additions assembled with the repository sample. The controller test confirmed that the generated Pod spec retains the PVC reference and volume mount. The full VitePress build passed on Node 22, and the generated pages contained both cross-links.

The local Kind run stopped while obtaining the node image. Mounting the PVC and executing an SDK command in a live pooled Pod remain unverified.

The broader local regression run had failures and setup blockers. The lifecycle server passed 3,194 tests, with 3 failures and 34 skips. All three failures also occurred on the base commit across the full and focused runs. The Python and JavaScript SDK suites had timing-related failures, with overlapping failures on focused base checks. The full Kubernetes suite could not obtain setup-envtest. The hosted CI matrix remains unverified.

Breaking Changes

  • None

Checklist

  • Linked the motivating discussion
  • Updated the documentation
  • Checked the documented examples and ran existing tests
  • Considered security impact and backward compatibility

@github-actions github-actions Bot added documentation Improvements or additions to documentation size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant