Skip to content

feat(server): support static provisioning PV for k8s PVC volumes#916

Open
yoogoc wants to merge 1 commit into
alibaba:mainfrom
yoogoc:static-provisioning-pv-k8s
Open

feat(server): support static provisioning PV for k8s PVC volumes#916
yoogoc wants to merge 1 commit into
alibaba:mainfrom
yoogoc:static-provisioning-pv-k8s

Conversation

@yoogoc
Copy link
Copy Markdown
Contributor

@yoogoc yoogoc commented May 19, 2026

Summary

Some Kubernetes environments lack dynamic provisioning (e.g., bare-metal clusters without a CSI driver, or scenarios requiring pre-existing NFS/hostPath/local volumes). Static provisioning allows users to specify the exact PV spec (e.g., NFS server, hostPath, CSI volumeHandle) so the server creates and binds both the PV and PVC automatically, without needing a StorageClass provisioner.

Testing

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

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

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: bcde2194c4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread server/opensandbox_server/services/k8s/kubernetes_service.py
Comment thread server/opensandbox_server/services/k8s/kubernetes_service.py Outdated
@yoogoc yoogoc force-pushed the static-provisioning-pv-k8s branch from bcde219 to 5d4d22d Compare May 19, 2026 08:08
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ This PR has no labels. Please add one based on the changes.

Changed directories: kubernetes、sdks、server、specs.

📋 Recommended labels (based on changed files):

  • component/k8s ⬅️
  • component/server ⬅️
  • documentation ⬅️
  • sdks ⬅️

Other available labels:

  • bug - Something isn't working
  • dependencies - Pull requests that update a dependency file
  • feature - New feature or request
  • packages - Changes for package, image and configuration

💡 Tip: Use feature for new functionality or improvements, bug for fixes.

cc @yoogoc

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: 5d4d22d450

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread server/opensandbox_server/services/k8s/kubernetes_service.py Outdated
Comment thread server/opensandbox_server/api/schema.py Outdated
Comment thread server/opensandbox_server/services/k8s/kubernetes_service.py
@yoogoc yoogoc force-pushed the static-provisioning-pv-k8s branch from 5d4d22d to cc1eee7 Compare May 20, 2026 01:26
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.

1 participant