← Back to Pull requests

VertexAI, Workflows: migrate VertexAIMetadataStore, WorkflowsWorkflow to kmsv1beta1.KMSCryptoKeyRef #13868

Closed
unknown closed this pull request without merging on Oct 09, 2026 19:24 UTC
View on GitHub
unknown unknown commented on Oct 09, 2026 14:24 UTC
Author

Migrate VertexAIMetadataStore and WorkflowsWorkflow to use kmsv1beta1.KMSCryptoKeyRef instead of refs.KMSCryptoKeyRef as part of the direct controller KMS reference cleanup (#13781).

Key Changes


  • VertexAIMetadataStore:

  • - Updated EncryptionSpec.KMSKeyRef in apis/vertexai/v1beta1/vertexaimetadatastore_types.go from refsv1beta1.KMSCryptoKeyRef to kmsv1beta1.KMSCryptoKeyRef.
    - Updated pkg/controller/direct/vertexai/vertexaimetadatastore_controller.go to call common.NormalizeReferences(ctx, reader, obj, nil) in AdapterForObject and removed manual refs.ResolveKMSCryptoKeyRef / normalizeExternal.
    - Updated EncryptionSpec_v1beta1_FromProto in pkg/controller/direct/vertexai/mappers.go to construct kmsv1beta1.KMSCryptoKeyRef.
    - Added unit tests in pkg/controller/direct/vertexai/vertexaimetadatastore_controller_test.go verifying reference normalization and proto mapping.

  • WorkflowsWorkflow:

  • - Updated WorkflowsWorkflowSpec.KMSCryptoKeyRef in apis/workflows/v1alpha1/workflowsworkflow_types.go from
    refs.KMSCryptoKeyRef to kmsv1beta1.KMSCryptoKeyRef.
    - Updated pkg/controller/direct/workflows/workflowsworkflow_controller.go to call common.NormalizeReferences(ctx, reader, obj, nil) in AdapterForObject and removed manual refs.ResolveKMSCryptoKeyRef from normalizeReference.
    - Updated WorkflowsWorkflowSpec_FromProto in pkg/controller/direct/workflows/workflowsworkflow_mapper.go to construct
    kmsv1beta1.KMSCryptoKeyRef.
    - Added unit tests in pkg/controller/direct/workflows/workflowsworkflow_controller_test.go verifying reference normalization and proto mapping.

  • Regenerated Code & Docs:

  • - Regenerated deepcopy implementations, CRDs, and resource reference documentation.
    - Verified zero CRD schema drift.

    Fixes #13861

    ``release-note
    NONE
    ``


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

    Diff: 244 lines (+183 / -61) across 3 files Reviewer: anhdle-sso Review duration: 300m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.62) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.62 · 244 lines diff across 3 files
    0.62
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.329
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.062
    Real PR Conversation Timeline
    1 comments
    "Review active on #13868"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 62% (MEDIUM) · Higher = larger blast radius
    62%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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.5% · Safe to merge
    24.5%