OSAC-3274: remove pvcRef and pvRef from Volume - #341
Conversation
|
@akshaynadkarni: This pull request references OSAC-2872 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the feature to target the "5.1.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akshaynadkarni The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Warning Review limit reached
Next review available in: 42 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository: osac-project/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (7)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🤖 Finished Review · ✅ Success · Started 4:39 PM UTC · Completed 4:56 PM UTC Commit: |
|
@akshaynadkarni: This pull request references OSAC-3274 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "5.1.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
ReviewFindingsHigh
Medium
Low
Labels: PR modifies Volume resource types across the storage stack (proto, CRD, server) Next steps:
Previous runReviewFindingsHigh
Medium
Low
Next steps:
Previous run (2)ReviewFindingsCritical
High
Low
Next steps:
|
A Volume represents storage provisioned on a backend array. It exists independently of any PVC. The PV object in Kubernetes is the native link between a PVC and an OSAC Volume (via volumeHandle). PVC/PV tracking belongs on a future VolumeAttachment resource that models the ControllerPublishVolume lifecycle (OSAC-3278), not on the Volume itself. Removes PVCReference and PVReference message types from the proto, pvcRef from VolumeSpec and VolumeStatus, and pvRef from VolumeStatus. Regenerates all generated code and CRD manifests. Signed-off-by: akshaynadkarni <25892229+akshaynadkarni@users.noreply.github.com> Assisted-by: Cursor/Claude Signed-off-by: akshaynadkarni <25892229+akshaynadkarni@users.noreply.github.com>
The spec.pvc_ref case in applyVolumeUpdate was added by OSAC-4036 (immutability enforcement). Since pvc_ref has been removed from VolumeSpec, this case is no longer needed. Signed-off-by: akshaynadkarni <25892229+akshaynadkarni@users.noreply.github.com> Assisted-by: Cursor/Claude Signed-off-by: akshaynadkarni <25892229+akshaynadkarni@users.noreply.github.com>
fe1197b to
cb0f250
Compare
Auto-dismissed: only Prow labels gate merging
|
🤖 Finished Review · ✅ Success · Started 6:10 PM UTC · Completed 6:24 PM UTC Commit: |
The pvc_ref field was removed from VolumeSpec. Remove the test that created a volume with pvc_ref and the assertion checking pvc_ref is nil on standalone volumes. Signed-off-by: akshaynadkarni <25892229+akshaynadkarni@users.noreply.github.com> Assisted-by: Cursor/Claude Signed-off-by: akshaynadkarni <25892229+akshaynadkarni@users.noreply.github.com>
Auto-dismissed: only Prow labels gate merging
|
🤖 Finished Review · ✅ Success · Started 7:23 PM UTC · Completed 7:39 PM UTC Commit: |
Auto-dismissed: only Prow labels gate merging
Summary
OSAC-2872: Remove pvcRef and pvRef from Volume proto and CRD.
A Volume represents storage provisioned on a backend array. It exists independently
of any PVC. The PV object in Kubernetes is the native link between a PVC and an OSAC
Volume (via volumeHandle). PVC/PV tracking belongs on a future VolumeAttachment
resource that models the ControllerPublishVolume lifecycle (OSAC-3278).
Removes: PVCReference and PVReference message types from proto, pvc_ref from
VolumeSpec, pvc_ref and pv_ref from VolumeStatus, and all corresponding CRD fields.
Regenerates all generated code and CRD manifests.
Why
Avishay Traeger flagged during EP review (enhancement-proposals #151) that embedding
PVC/PV references in the Volume resource conflates two distinct lifecycle stages:
provisioning (CreateVolume) and attachment (ControllerPublishVolume). The CSI spec
cleanly separates these, and the current controller implementation does not reference
these fields.
Testing
Pre-merge notes
After this merges and a new BSR module version is tagged, osac-operator should bump
its buf.gen.yaml version and run buf generate. This is a cleanup (the generated client
will have stale GetPvcRef() methods that nothing calls), not a blocker.
Ticket
OSAC-2872
Signed-off-by: akshaynadkarni 25892229+akshaynadkarni@users.noreply.github.com
Assisted-by: Cursor/Claude