Skip to content

ateapi: add ExternalVolumeClass proto message and PostgreSQL store - #3742

Draft
Vu Le (lekhoavu2909) wants to merge 4 commits into
agent-substrate:mainfrom
lekhoavu2909:evc-pr1-store
Draft

Vu Le (lekhoavu2909) wants to merge 4 commits into
agent-substrate:mainfrom
lekhoavu2909:evc-pr1-store

Conversation

@lekhoavu2909

@lekhoavu2909 Vu Le (lekhoavu2909) commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator
  • add global-scoped ExternalVolumeClass message in ateapi.proto, regenerate ateapi.go, and register ExternalVolumeClass in apitool TestBuild_Annotations.
  • add sql migration on store.Interface and atepg.Persistence, unittest, controlapi.ServiceImpl store pass-throughs
  • add EVC CRUD, delete precondition, pruning tests, EVC to atepg test table truncation and driver_name column test
  • Adds ExternalVolumeClass, a new global-scoped resource that names the CSI driver used to provision external volumes and the parameters passed to its CreateVolume call. This PR covers the API message and the storage layer only. It does not add RPCs or wire the class into volume provisioning.
  • external_volume_classes stores driver_name in its own column alongside proto so future CSIDriverConfig deletion checks can query referencing classes by driver in SQL without backfilling stored rows.

Why is this needed?
Fixes #

AI use: AI-assisted, I reviewed and tested it

Not a breaking change. It adds a new table via migration and changes no existing schema.

  • Tests pass
  • Docs updated

regenerate ateapi.go, and register ExternalVolumeClass in apitool
TestBuild_Annotations.

Signed-off-by: Vu Le <vulk@google.com>
controlapi.ServiceImpl store pass-throughs

Signed-off-by: Vu Le <vulk@google.com>
table truncation and driver_name column test

Signed-off-by: Vu Le <vulk@google.com>
Signed-off-by: Vu Le <vulk@google.com>

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant