Skip to content

fix(server): include manually created k8s sandboxes in list API#411

Open
suger-m wants to merge 1 commit intoalibaba:mainfrom
suger-m:fix/issue-409-manual-k8s-list
Open

fix(server): include manually created k8s sandboxes in list API#411
suger-m wants to merge 1 commit intoalibaba:mainfrom
suger-m:fix/issue-409-manual-k8s-list

Conversation

@suger-m
Copy link
Contributor

@suger-m suger-m commented Mar 10, 2026

Summary

  • list k8s workloads without requiring opensandbox.io/id label
  • fallback sandbox id to workload metadata.name when the label is missing
  • add unit test for manually created BatchSandbox without id label

Validation

  • uv run pytest tests/k8s/test_kubernetes_service.py -q
  • uv run pytest tests/test_routes_list_sandboxes.py -q
  • uv run ruff check src/services/k8s/kubernetes_service.py tests/k8s/test_kubernetes_service.py

Fixes #409

@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@CLAassistant
Copy link

CLAassistant commented Mar 10, 2026

CLA assistant check
All committers have signed the CLA.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

希望sandbox-server可以管理通过k8s创建的沙箱

2 participants