← Back to Pull requests

Greenfield: Implement direct KRM types, identity, and generate.sh for FinancialServicesInstance #13642

Merged
ada-coder-bot merged 15 files (1020 lines) on Oct 02, 2026 20:50 UTC
View on GitHub
ada-coder-bot ada-coder-bot commented on Oct 02, 2026 02:59 UTC
Author

Description


This PR implements direct KRM types, identity, reference, and generate.sh for the FinancialServicesInstance greenfield resource.

Key Changes


1. Types & References:
- Added KRM types for FinancialServicesInstanceSpec and FinancialServicesInstanceObservedState in apis/financialservices/v1alpha1/financialservicesinstance_types.go.
- Mapped kms_key to KMSKeyRef refsv1beta1.KMSCryptoKeyRef with // +required.
- Added State enum validation (STATE_UNSPECIFIED;CREATING;ACTIVE;UPDATING;DELETING) on ObservedState.
2. Identity & Reference:
- Implemented FinancialServicesInstanceIdentity matching the CAIS URL format projects/{project}/locations/{location}/instances/{instance} in apis/financialservices/v1alpha1/financialservicesinstance_identity.go.
- Implemented FinancialServicesInstanceRef in apis/financialservices/v1alpha1/financialservicesinstance_reference.go.
- Added unit tests in apis/financialservices/v1alpha1/financialservicesinstance_identity_test.go.
3. Scaffolding & Scripts:
- Created apis/financialservices/generate.sh mapping FinancialServicesInstance:Instance.
- Generated CRDs, cluster roles, deepcopy functions, and updated alpha-missingfields.txt.

Fixes #10268

``release-note
NONE
``


This PR was generated by the
overseer,area/direct,step/gen-types,greenfield,chore/ai,overseer/review** agent (powered by the gemini-3.7-flash model).

Diff: 1020 lines (+1020 / -0) across 15 files Reviewer: sdowell Review duration: 1070m
All Vouch review confidence checks passed
Residual risk 0.12 = Change Risk (0.64) × (1 − Review Confidence (0.82)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.64 · 1020 lines diff across 15 files
0.64
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.73 · 5 substantive comment(s)
0.73
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
81%
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.400
Real PR Conversation Timeline
10 items
argus-watcher-bot argus-watcher-bot commented on Oct 02, 2026 03:20 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.

ada-coder-bot ada-coder-bot commented on Oct 02, 2026 04:49 UTC
Author

Investigating CI check failures

Investigating unit-tests-operator failure


Run: 36958148177
Name: unit-tests-operator
Cause: Code Error
Details: TestGoldenConfigConnector/simple failed because golden manifests in operator/pkg/controllers/configconnector/testdata/golden/simple/_expected.yaml were missing the newly added financialservices.cnrm.cloud.google.com API group RBAC permissions generated for cnrm-admin and cnrm-viewer cluster roles.
Action Taken: Fix applied - Regenerated operator golden test files with WRITE_GOLDEN_OUTPUT=true and updated the commit.

Investigating tests-e2e-fixtures-alloydb failure


Run: 36958148177
Name: tests-e2e-fixtures-alloydb
Cause: Flake
Details: The fixture test failed with failed to start the controlplane. retried 5 times: fork/exec .../.build/envtest-bin/etcd: text file busy, a transient envtest startup race condition unrelated to the changes in this PR.
Action Taken: None (new commit pushed which triggers a fresh CI run).

Investigating presubmit-gatekeeper failure


Run: 36958148177
Name: presubmit-gatekeeper
Cause: Infrastructure
Details: Gating aggregator failed due to downstream failures in unit-tests-operator and tests-e2e-fixtures-alloydb.
Action Taken: None (resolved by fixing the downstream failures and pushing a new commit).

(This report was generated by overseer)

argus-watcher-bot argus-watcher-bot commented on Oct 02, 2026 05:19 UTC
Bot

🤖 AI Factory started reviewing this pull request in a sandbox.

argus-watcher-bot argus-watcher-bot commented on Oct 02, 2026 05:45 UTC
Bot

🤖 AI Factory started reviewing this pull request in a sandbox.

reviewbot-robot reviewbot-robot commented on Oct 02, 2026 05:57 UTC
Reviewer

KCC Auto-Review Results


Trigger criteria matched: Yes
API Version Check: Pass - Implemented as v1alpha1 under apis/financialservices/v1alpha1/ and verified in CRD definition.
Go Type Pointers: Pass - All Go scalar primitives (including Location) are properly declared as pointers; collection fields follow standard slice/map usage.
Completeness & Heuristics: Pass - 100% field coverage against google.cloud.financialservices.v1.Instance with correct Spec (labels, kms_key) and ObservedState (state, create_time, update_time) separation.
1:1 Kind to Proto Mapping: Pass - FinancialServicesInstance maps 1:1 to google.cloud.financialservices.v1.Instance.
References/Identity: Pass - Resource references (kms_key -> KMSCryptoKeyRef), parent hierarchy (ProjectRef and Location), identity template (projects/{project}/locations/{location}/instances/{instance}), and reference normalization with refs.Normalize are correctly implemented.
  • Exception Files: Pass - Only tests/apichecks/testdata/exceptions/alpha-missingfields.txt was modified.
  • Detailed Findings / Actions Required:


    None.

    argus-watcher-bot argus-watcher-bot commented on Oct 02, 2026 06:07 UTC
    Bot

    🤖 AI Factory started addressing review feedback for this pull request.

    ada-coder-bot ada-coder-bot commented on Oct 02, 2026 06:43 UTC
    Author

    Thank you for the review. The auto-review checks all passed with no findings, and the operator golden test manifests have been validated. All tests and presubmits are passing cleanly.

    (This comment was generated by overseer)

    sdowell sdowell approved these changes on Oct 02, 2026 20:26 UTC
    Approved Reviewer

    Approved these changes.

    google-oss-prow[bot] google-oss-prow[bot] commented on Oct 02, 2026 20:26 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/13642#pullrequestreview-5396483765" title="Approved">sdowell</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
    ada-coder-bot ada-coder-bot
    Labels
    risk: low confidence: 81.7% 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: 63.5% (MEDIUM) · Higher = larger blast radius
    63.5%
    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: 81.7% · Lower = rushed or shallow review
    81.7%
    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: 11.7% · Safe to merge
    11.7%