← Back to Pull requests

Memorystore, Metastore: migrate MemorystoreInstance, MetastoreService to kmsv1beta1.KMSCryptoKeyRef #13867

Merged
lovelace-coder-bot merged 14 files (356 lines) on Oct 09, 2026 17:27 UTC
View on GitHub
lovelace-coder-bot lovelace-coder-bot commented on Oct 09, 2026 14:18 UTC
Author

Description


Migrate MemorystoreInstance and MetastoreService to use canonical kmsv1beta1.KMSCryptoKeyRef instead of legacy refs.KMSCryptoKeyRef:
  • Updated KmsKeyRef in apis/memorystore/v1beta1/memorystoreinstance_types.go to use kmsv1beta1.KMSCryptoKeyRef.

  • Updated KMSKeyRef in apis/metastore/v1alpha1/metastoreservice_types.go to use kmsv1beta1.KMSCryptoKeyRef.

  • Invoked common.NormalizeReferences(ctx, reader, obj, nil) in AdapterForObject and removed manual calls to refs.ResolveKMSCryptoKeyRef.

  • Updated mappers to convert between protobuf and kmsv1beta1.KMSCryptoKeyRef.

  • Regenerated CRDs and deepcopy code with zero CRD schema drift.

  • Added reference normalization unit tests for both resources.
  • Fixes #13857
    Part of #13781

    ``release-note
    NONE
    ``


    This PR was generated by the
    overseer
    * agent (powered by the gemini-3.7-flash model).

    Diff: 356 lines (+315 / -41) across 14 files Reviewer: anhdle-sso Review duration: 189m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.85) × (1 − Review Confidence (0.71)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.85 · 356 lines diff across 14 files
    0.85
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.57 · 5 substantive comment(s)
    0.57
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    71%
    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.352
    Sensitive Paths sensitive_paths
    0.085
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    7 items
    argus-watcher-bot argus-watcher-bot commented on Oct 09, 2026 14:32 UTC
    Bot

    🤖 AI Factory started investigating CI check failures for this pull request.

    Note: We recommend waiting for the 'ready-for-human' label before leaving review comments. Comments added while the system is actively working may be associated with outdated commits once a new commit is pushed, causing them to be ignored.

    lovelace-coder-bot lovelace-coder-bot commented on Oct 09, 2026 15:13 UTC
    Author

    Investigating validate-resource-docs failure


    Run: 37943149547
    Name: validate-resource-docs
    Cause: Code Error
    Details: The generated documentation in scripts/generate-google3-docs/resource-reference/generated/resource-docs/memorystore/memorystoreinstance.md was out-of-date after updating KmsKeyRef to kmsv1beta1.KMSCryptoKeyRef.
    Action Taken: Fix applied. Ran make resource-docs and verified dev/ci/presubmits/validate-resource-docs passes cleanly with zero diff.

    Investigating tests-e2e-fixtures-metastore failure


    Run: 37943149547
    Name: tests-e2e-fixtures-metastore
    Cause: Test Failure
    Details: In pkg/test/resourcefixture/testdata/basic/metastore/v1beta1/metastorebackup/metastorebackup-minimal/_generated_object_metastorebackup-minimal.golden.yaml, the golden output previously recorded encryptionConfig: {kmsKeyRef: {}} due to legacy empty struct serialization. With kmsv1beta1.KMSCryptoKeyRef, empty references are omitted, producing encryptionConfig: {} when no KMS key is configured.
    Action Taken: Fix applied. Updated _generated_object_metastorebackup-minimal.golden.yaml to match encryptionConfig: {}.

    Investigating tests-e2e-fixtures-memorystore failure


    Run: 37943149547
    Name: tests-e2e-fixtures-memorystore
    Cause: Flake / Infrastructure
    Details: The job was canceled by GitHub Actions (The operation was canceled.) because earlier sibling matrix jobs failed in the workflow run. Memorystore unit tests passed and fixture tests were executing normally prior to cancellation.
    Action Taken: Fixes applied to failing checks and squashed commit pushed to the PR branch; the workflow will re-run automatically.

    (This report was generated by overseer)*

    argus-watcher-bot argus-watcher-bot commented on Oct 09, 2026 15:47 UTC
    Bot

    🤖 AI Factory started investigating CI check failures for this pull request.

    Note: We recommend waiting for the 'ready-for-human' label before leaving review comments. Comments added while the system is actively working may be associated with outdated commits once a new commit is pushed, causing them to be ignored.

    lovelace-coder-bot lovelace-coder-bot commented on Oct 09, 2026 15:52 UTC
    Author

    Investigating golangci-lint failure


    Run: 37949912321
    Name: golangci-lint
    Cause: Infrastructure
    Details: The job failed during type checking due to an upstream network stream error when downloading a Go dependency (cloud.google.com/go/resourcemanager@v1.15.0: read "https://proxy.golang.org/cloud.google.com/go/resourcemanager/@v/v1.15.0.zip": stream error: stream ID 7533; INTERNAL_ERROR; received from peer) and GitHub Actions cache service availability issues.
    Action Taken: Rerun triggered

    Investigating tests-e2e-fixtures-networksecurity failure


    Run: 37949912321
    Name: tests-e2e-fixtures-networksecurity
    Cause: Flake
    Details: In networksecuritygatewaysecuritypolicy-maximal, the HTTP mock log comparison failed due to a polling count mismatch (GetGatewaySecurityPolicy: mismatched number of HTTP calls: want 6, got 5) during re-reconciliation. This is an intermittent timing flake in an unrelated service.
    Action Taken: Rerun triggered

    Investigating presubmit-gatekeeper failure


    Run: 37949912321
    Name: presubmit-gatekeeper
    Cause: Infrastructure
    Details: Failed as a downstream dependency because prerequisite jobs (golangci-lint and tests-e2e-fixtures-networksecurity) failed.
    Action Taken: Rerun triggered

    (This report was generated by overseer)

    anhdle-sso anhdle-sso approved these changes on Oct 09, 2026 17:01 UTC
    Approved Reviewer

    /lgtm

    google-oss-prow[bot] google-oss-prow[bot] commented on Oct 09, 2026 17:01 UTC
    Bot

    [APPROVALNOTIFIER] This PR is NOT APPROVED

    This pull-request has been approved by: <a href="https://github.com/GoogleCloudPlatform/k8s-config-connector/pull/13867#pullrequestreview-5473034566" title="LGTM">anhdle-sso</a>
    Once this PR has been reviewed and has the lgtm label, please assign ldanielmadariaga for approval. For more information see the Kubernetes Code Review Process.

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

    <details open>
    Needs approval from an approver in each of these files:

  • OWNERS
  • 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":["ldanielmadariaga"]} -->

    Reviewers
    Assignees
    lovelace-coder-bot lovelace-coder-bot
    Labels
    risk: low confidence: 71.2% reviewed sensitive_module
    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: 85.4% (HIGH) · Higher = larger blast radius
    85.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: 71.2% · Lower = rushed or shallow review
    71.2%
    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: 24.6% · Safe to merge
    24.6%