Skip to content

feat(server): Add pvc support in k8s runtime#424

Merged
hittyt merged 1 commit intoalibaba:mainfrom
Spground:feature/public-pvc-k8s-runtime
Mar 12, 2026
Merged

feat(server): Add pvc support in k8s runtime#424
hittyt merged 1 commit intoalibaba:mainfrom
Spground:feature/public-pvc-k8s-runtime

Conversation

@Spground
Copy link
Copy Markdown
Collaborator

@Spground Spground commented Mar 11, 2026

Summary

  • What is changing and why?

Add pvc volume in k8s runtime, users can use existing PVC to persist data in sandbox.

Testing

  • Not run (explain why)
  • Unit tests
  • Integration tests
  • e2e / manual verification
image

Breaking Changes

  • None
  • Yes (describe impact and migration path)

Checklist

  • Linked Issue or clearly described motivation
  • Added/updated docs (if needed)
  • Added/updated tests (if needed)
  • Security impact considered
  • Backward compatibility considered

@chatgpt-codex-connector
Copy link
Copy Markdown

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.

@Spground Spground added feature New feature or request component/server labels Mar 11, 2026
@Spground Spground force-pushed the feature/public-pvc-k8s-runtime branch from d4f025f to 5e291b8 Compare March 11, 2026 12:40
Copy link
Copy Markdown
Collaborator

@hittyt hittyt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added support for Kubernetes PVC and HostPath volumes in K8s runtime, but several architectural and security improvements are needed, specifically regarding volume validation and code duplication.

Comment thread server/src/services/k8s/kubernetes_service.py
Comment thread server/src/services/k8s/agent_sandbox_provider.py
Comment thread server/src/services/k8s/batchsandbox_provider.py
Comment thread server/src/services/k8s/batchsandbox_provider.py Outdated
Comment thread server/src/services/k8s/batchsandbox_provider.py Outdated
Comment thread examples/kubernetes-pvc-volume-mount/README.md Outdated
@Spground Spground force-pushed the feature/public-pvc-k8s-runtime branch from 5e291b8 to ed18cbb Compare March 12, 2026 09:41
@jwx0925
Copy link
Copy Markdown
Collaborator

jwx0925 commented Mar 12, 2026

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ed18cbb959

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread server/src/services/k8s/kubernetes_service.py
Comment thread server/src/services/k8s/volume_helper.py
@Spground Spground force-pushed the feature/public-pvc-k8s-runtime branch from ed18cbb to 040a62e Compare March 12, 2026 10:44
Copy link
Copy Markdown
Collaborator

@hittyt hittyt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hittyt hittyt merged commit 112a9f0 into alibaba:main Mar 12, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/server feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants