Skip to content

[VMOwnedVolumes][Draft] Introduce FSS, CRD, RBACs and controller skeleton#4056

Open
deepakkinni wants to merge 1 commit into
kubernetes-sigs:masterfrom
deepakkinni:topic/dk016388/vmown-csi-phase0
Open

[VMOwnedVolumes][Draft] Introduce FSS, CRD, RBACs and controller skeleton#4056
deepakkinni wants to merge 1 commit into
kubernetes-sigs:masterfrom
deepakkinni:topic/dk016388/vmown-csi-phase0

Conversation

@deepakkinni
Copy link
Copy Markdown
Collaborator

What this PR does / why we need it:
Phase 0 — Foundation / Infrastructure
VMOwnedVolumes Feature State Switch (FSS) — Register a new VMOwnedVolumes constant in the CSI FSS system (constants.go, ConfigMap watcher) so all new code paths are gated behind it.

CsiVolumeInfo CRD and Go Types — Define a new CsiVolumeInfo CRD (distinct from the existing CnsVolumeInfo) with the spec/status schema from Section 4.1 (spec.volumeID/pvcName/pvName, status.ownershipState/vmName/vmInstanceUUID/diskUUID/diskPath/conditions), cns.vmware.com/disk-uuid label, cvi-protection finalizer, PV ownerReference with blockOwnerDeletion: true, and status subresource.

CsiVolumeInfo RBAC, Informers, and Service Layer — Add RBAC rules, controller-runtime watches/caches, and a CRUD service layer (analogous to the existing cnsvolumeinfo/cnsvolumeinfoservice.go) for the new CsiVolumeInfo CR so controllers can create/read/update/delete CVIs.

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Testing done:
A PR must be marked "[WIP]", if no test result is provided. A WIP PR won't be reviewed, nor merged.
The requester can determine a sufficient test, e.g. build for a cosmetic change, E2E test in a predeployed setup, etc.
For new features, new tests should be done, in addition to regression tests.
If jtest is used to trigger precheckin tests, paste the result after jtest completes and remove [WIP] in the PR subject.
The review cycle will start, only after "[WIP]" is removed from the PR subject.

Special notes for your reviewer:

Release note:

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deepakkinni

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels May 30, 2026
Signed-off-by: Deepak Kinni <deepak.kinni@broadcom.com>
@deepakkinni deepakkinni force-pushed the topic/dk016388/vmown-csi-phase0 branch from 614f049 to af65243 Compare May 30, 2026 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants