← Back to Pull requests

Rename ObjectProtocolAndBucketInfo to BucketInfo #438

Merged
rajaneeshgit merged 16 files (560 lines) on Nov 18, 2026 18:20 UTC
View on GitHub
rajaneeshgit rajaneeshgit commented on Nov 04, 2026 18:33 UTC
Author

Summary
------

Renames the gRPC message ObjectProtocolAndBucketInfo to BucketInfo, as asked in #393. That name was already used by the nested DriverGrantBucketAccessResponse.BucketInfo, so the nested message becomes AccessedBucket, matching the nested AccessedBucket messages in the Grant and Revoke requests.
I also renamed the respective field name as bucket_info that holds a BucketInfo.

The sample driver changes are on the branch rajaneeshgit:rename-bucketinfo. I will open that PR next.

BREAKING CHANGE for third-party drivers.

Validation
------

  • Regenerate proto

  • make test

  • make kubeapi-lint

  • make golangci-lint-run reports one error (pre existing in main)

  • Manual: make test-e2e (kind + MinIO + cosi-driver-sample): Chainsaw suite passes
  • Fixes #393

    Diff: 560 lines (+282 / -278) across 16 files Reviewer: BlaineEXE Review duration: 20146m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.69) × (1 − Review Confidence (0.74)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.69 · 560 lines diff across 16 files
    0.69
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.47 · 5 substantive comment(s)
    0.47
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    73%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.379
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    13 items
    kubernetes-prow[bot] kubernetes-prow[bot] commented on Nov 04, 2026 18:34 UTC
    Bot

    Welcome @rajaneeshgit! <br><br>It looks like this is your first PR to <a href='https://github.com/kubernetes-sigs/container-object-storage-interface'>kubernetes-sigs/container-object-storage-interface</a> 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval. <br><br>You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation. <br><br>You can also check if kubernetes-sigs/container-object-storage-interface has its own contribution guidelines. <br><br>You may want to refer to our testing guide if you run into trouble with your tests not passing. <br><br>If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs! <br><br>Thank you, and welcome to Kubernetes. :smiley:

    kubernetes-prow[bot] kubernetes-prow[bot] commented on Nov 04, 2026 18:34 UTC
    Bot

    Hi @rajaneeshgit. Thanks for your PR.

    I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

    Regular contributors should join the org to skip this step.

    Once the patch is verified, the new status will be reflected by the ok-to-test label.

    I understand the commands that are listed here.

    <details>

    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 kubernetes-sigs/prow repository.
    </details>

    netlify[bot] netlify[bot] commented on Nov 04, 2026 18:34 UTC
    Bot

    <span aria-hidden="true">✅</span> Deploy Preview for container-object-storage-interface ready!

    | Name | Link |
    |:-:|------------------------|
    |<span aria-hidden="true">🔨</span> Latest commit | 42e15d4b4622e215bacf0b98160ddf9820aab6bb |
    |<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/projects/container-object-storage-interface/deploys/6aedd5a5f69fd53f034e35f8 |
    |<span aria-hidden="true">😎</span> Deploy Preview | https://deploy-preview-438--container-object-storage-interface.netlify.app |
    |<span aria-hidden="true">📱</span> Preview on mobile | <details><summary> Toggle QR Code... </summary><br /><br />!QR Code<br /><br />_Use your smartphone camera to open QR code link._</details> |
    ---
    <!-- container-object-storage-interface Preview -->
    _To edit notification comments on pull requests, go to your Netlify project configuration._

    BlaineEXE BlaineEXE commented on code on Nov 05, 2026 21:20 UTC
    Code Review
    proto/spec.md:1
    @@ -734,7 +734,7 @@ message DriverGrantBucketAccessResponse {
         // characters ([a-z0-9A-Z]), dashes (-), and dots (.).
         string account_id = 1;
     
    -    message BucketInfo {
    +    message AccessedBucket {

    This change is not defined in the KEP, but it is fairly minor (being a rename), and I think it improves the API's readability. That said, we now have a shared type name between both request and response that is likely to create confusion.

    Let's keep it but with some modifications:

  • Rename this AccessedBucket to AccessGrantedBucket

  • Rename the other to AccessRequestedBucket
  • This should be a good naming scheme for clarity while also not having ridiculously long type names.

    BlaineEXE BlaineEXE commented on code on Nov 05, 2026 21:21 UTC
    Code Review
    proto/spec.md:1
    BlaineEXE BlaineEXE requested changes on Nov 05, 2026 21:27 UTC
    Changes Requested Reviewer

    Some of the renames here are beyond the scope I intended (and beyond what is officially in the KEP), but I think what you have here is a clear usability improvement for driver developers. A benefit you bring to the project as a newcomer instead of having years of historical knowledge and assumptions.

    The only concern I have is that we now have AccessedBucket as a type twice, once for request and once for response. The generated code does have them separated, but I think this could still result in accidental misreadings that could be a point of friction for driver/COSI devs.

    It should be easy to add one more rename into the mix to make things consistent and clear while also avoiding confusion. Thanks again for taking the time to work on this

    rajaneeshgit rajaneeshgit commented on code on Nov 06, 2026 14:47 UTC
    Code Review
    proto/spec.md:1
    @@ -734,7 +734,7 @@ message DriverGrantBucketAccessResponse {
         // characters ([a-z0-9A-Z]), dashes (-), and dots (.).
         string account_id = 1;
     
    -    message BucketInfo {
    +    message AccessedBucket {

    Done.

    rajaneeshgit rajaneeshgit commented on code on Nov 06, 2026 14:47 UTC
    Code Review
    proto/spec.md:1

    Done.

    rajaneeshgit rajaneeshgit commented on Nov 06, 2026 14:49 UTC
    Author

    The sample driver changes are on the branch rajaneeshgit:rename-bucketinfo. I will open that PR next.

    Sample Driver PR: https://github.com/kubernetes-sigs/cosi-driver-sample/pull/174

    BlaineEXE BlaineEXE commented on Nov 18, 2026 18:08 UTC
    Contributor

    /ok-to-test

    BlaineEXE BlaineEXE commented on Nov 18, 2026 18:09 UTC
    Contributor

    /approve
    /lgtm

    kubernetes-prow[bot] kubernetes-prow[bot] commented on Nov 18, 2026 18:09 UTC
    Bot

    [APPROVALNOTIFIER] This PR is APPROVED

    This pull-request has been approved by: <a href="https://github.com/kubernetes-sigs/container-object-storage-interface/pull/438#issuecomment-6987259461" title="Approved">BlaineEXE</a>, <a href="https://github.com/kubernetes-sigs/container-object-storage-interface/pull/438#" title="Author self-approved">rajaneeshgit</a>

    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:

  • ~~OWNERS~~ [BlaineEXE]
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":[]} -->

    Reviewers
    Assignees
    rajaneeshgit rajaneeshgit
    Labels
    risk: low confidence: 73.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 69.4% (HIGH) · Higher = larger blast radius
    69.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 73.8% · Lower = rushed or shallow review
    73.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.2% · Safe to merge
    18.2%