Greenfield: Implement direct KRM types, identity, and generate.sh for FinancialServicesInstance #13642
🤖 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.
Investigating CI check failures
Investigating unit-tests-operator failure
Run: 36958148177
Name:
unit-tests-operatorCause:
Code ErrorDetails:
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-alloydbCause:
FlakeDetails: 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-gatekeeperCause:
InfrastructureDetails: 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)
🤖 AI Factory started reviewing this pull request in a sandbox.
🤖 AI Factory started reviewing this pull request in a sandbox.
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.tests/apichecks/testdata/exceptions/alpha-missingfields.txt was modified.Detailed Findings / Actions Required:
None.
🤖 AI Factory started addressing review feedback for this pull request.
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)
Approved these changes.
[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:
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"]} -->
sdowell
ada-coder-bot
Description
This PR implements direct KRM types, identity, reference, and
generate.shfor theFinancialServicesInstancegreenfield resource.Key Changes
1. Types & References:
- Added KRM types for
FinancialServicesInstanceSpecandFinancialServicesInstanceObservedStateinapis/financialservices/v1alpha1/financialservicesinstance_types.go.- Mapped
kms_keytoKMSKeyRef refsv1beta1.KMSCryptoKeyRefwith// +required.- Added
Stateenum validation (STATE_UNSPECIFIED;CREATING;ACTIVE;UPDATING;DELETING) onObservedState.2. Identity & Reference:
- Implemented
FinancialServicesInstanceIdentitymatching the CAIS URL formatprojects/{project}/locations/{location}/instances/{instance}inapis/financialservices/v1alpha1/financialservicesinstance_identity.go.- Implemented
FinancialServicesInstanceRefinapis/financialservices/v1alpha1/financialservicesinstance_reference.go.- Added unit tests in
apis/financialservices/v1alpha1/financialservicesinstance_identity_test.go.3. Scaffolding & Scripts:
- Created
apis/financialservices/generate.shmappingFinancialServicesInstance: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).