Skip to content

ate-setup: register ExternalVolumeClasses for the installed CSI drivers - #3780

Open
Vu Le (lekhoavu2909) wants to merge 18 commits into
agent-substrate:mainfrom
lekhoavu2909:evc-pr6-setup
Open

Vu Le (lekhoavu2909) wants to merge 18 commits into
agent-substrate:mainfrom
lekhoavu2909:evc-pr6-setup

Conversation

@lekhoavu2909

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

Copy link
Copy Markdown
Collaborator

When the ExternalVolumes preview gate is enabled, ate-setup now creates an ExternalVolumeClass for each CSI driver it installs, so templates can use external_volume_class without setting up classes by hand. Stacked on #3776: the NFS class uses mountOptions.

  • canonical evc manifests and ate-setup registration

Part of #3754

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

No breaking change. Setup only adds classes when the ExternalVolumes gate is on.

  • 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>
Signed-off-by: Vu Le <vulk@google.com>
apitool example

Signed-off-by: Vu Le <vulk@google.com>
Signed-off-by: Vu Le <vulk@google.com>
Signed-off-by: Vu Le <vulk@google.com>
Signed-off-by: Vu Le <vulk@google.com>
Signed-off-by: Vu Le <vulk@google.com>
Signed-off-by: Vu Le <vulk@google.com>
Signed-off-by: Vu Le <vulk@google.com>
@lekhoavu2909 Vu Le (lekhoavu2909) changed the title evc pr6 setup ate-setup: register ExternalVolumeClasses for the installed CSI drivers Nov 11, 2026
@lekhoavu2909 Vu Le (lekhoavu2909) self-assigned this Nov 11, 2026
@lekhoavu2909
Vu Le (lekhoavu2909) marked this pull request as ready for review November 11, 2026 00:15
Signed-off-by: Vu Le <vulk@google.com>
// resources for the selected CSI driver when the ExternalVolumes preview gate
// is enabled and ate-api-server is deployed. Existing classes with the same
// spec are kept; differing specs return an error.
func (e *Env) RegisterExternalVolumeClasses(ctx context.Context, driver string) error {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The previewGateEnabled and DeploymentExists("ate-api-server") guards let ate-setup setup csi succeed in CI's preview-off lane (pr-workflow.yaml) and when setup csi is run before deploy ate-system.

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