Greenfield: Implement direct KRM types, identity, and generate.sh for SaaSServiceMgmtUnitKind - #13626
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
🤖 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. |
b9a2447 to
4c91cf3
Compare
Investigating CI check failuresInvestigating unit-tests-2-of-4 failureRun: 36947613902 Investigating capture-pprof failureRun: 36947613902 Investigating tests-preview failureRun: 36947613902 Summary of Fix
(This report was generated by overseer) |
|
🤖 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. |
… SaaSServiceMgmtUnitKind Implement direct KRM types, identity, reference, and generate.sh scaffolding for SaaSServiceMgmtUnitKind. Key Changes: - Added SaaSServiceMgmtUnitKind to apis/saasservicemgmt/generate.sh. - Implemented SaaSServiceMgmtUnitKindSpec and SaaSServiceMgmtUnitKindObservedState in apis/saasservicemgmt/v1alpha1/saasservicemgmtunitkind_types.go. - Implemented SaaSServiceMgmtUnitKind identity and reference in saasservicemgmtunitkind_identity.go and saasservicemgmtunitkind_reference.go. - Implemented SaasServiceMgmtRelease reference in saasservicemgmtrelease_reference.go. - Implemented external-only reference and identity for SaaSServiceMgmtSaaS in saasservicemgmtsaas_reference.go and saasservicemgmtsaas_identity.go. - Added identity unit tests in saasservicemgmtunitkind_identity_test.go. - Generated CRD, deepcopy functions, and proto-to-KRM mappers. Issue: 13602
4c91cf3 to
533d955
Compare
Investigating CI check failuresInvestigating unit-tests-2-of-4 failureRun: 36956618558
Investigating tests-e2e-direct-iam failureRun: 36956618558 Summary of Fix
(This report was generated by overseer) |
|
🤖 AI Factory started reviewing this pull request in a sandbox. |
1 similar comment
|
🤖 AI Factory started reviewing this pull request in a sandbox. |
reviewbot-robot
left a comment
There was a problem hiding this comment.
KCC Auto-Review Results
- Trigger criteria matched: Yes
- API Version Check: Pass -
apis/saasservicemgmt/v1alpha1/, CRD version isv1alpha1 - Go Type Pointers: Pass - All scalar primitive fields (including
Location,IgnoreForLookup, andObservedGeneration) are pointers - Completeness & Heuristics: Pass - 100% field coverage against
google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindproto with properspecvsstatus.observedStatemapping - 1:1 Kind to Proto Mapping: Pass - 1:1 mapping between
SaaSServiceMgmtUnitKindandUnitKindproto - References/Identity: Pass -
defaultReleaseRef,saasRef, andunitKindRefproperly implemented withIdentityV2and canonical URI formatting - Exception Files: Fail -
tests/apichecks/testdata/exceptions/naming_violations.txtwas modified
Detailed Findings / Actions Required:
tests/apichecks/testdata/exceptions/naming_violations.txt: Exceptions were added forsaasservicemgmtsaas_identity.goandsaasservicemgmtsaas_reference.go. Per greenfield review criteria, greenfield PRs must not modify exception files other thantests/apichecks/testdata/exceptions/alpha-missingfields.txt.
| [naming_violation] file=apis/refs/dataprocmetastoreservice_reference_test.go prefix=dataprocmetastoreservice (expected a valid resource kind prefix) | ||
| [naming_violation] file=apis/refs/organization_reference.go prefix=organization (expected a valid resource kind prefix) | ||
| [naming_violation] file=apis/run/v1beta1/revision_reference.go prefix=revision (expected a valid resource kind prefix) | ||
| [naming_violation] file=apis/saasservicemgmt/v1alpha1/saasservicemgmtsaas_identity.go prefix=saasservicemgmtsaas (expected a valid resource kind prefix) |
There was a problem hiding this comment.
Greenfield PRs must not add exceptions to exception files other than tests/apichecks/testdata/exceptions/alpha-missingfields.txt. These entries are generated because SaaSServiceMgmtSaaS is an external-only reference and not yet a registered CRD Kind. Please confirm if adding exceptions to naming_violations.txt is expected or if SaaSServiceMgmtSaaS types should be scaffolded.
|
🤖 AI Factory started addressing review feedback for this pull request. |
2 similar comments
|
🤖 AI Factory started addressing review feedback for this pull request. |
|
🤖 AI Factory started addressing review feedback for this pull request. |
|
Adding exceptions to Specifically, when a greenfield resource references another GCP resource that does not yet have a registered CRD Kind in KCC (in this case, (This comment was generated by overseer) |
Description
This PR implements direct KRM types, identity, reference, and
generate.shfor theSaaSServiceMgmtUnitKindgreenfield resource (saasservicemgmt.cnrm.cloud.google.com/v1alpha1).Key Changes
SaaSServiceMgmtUnitKindSpecandSaaSServiceMgmtUnitKindObservedStateinapis/saasservicemgmt/v1alpha1/saasservicemgmtunitkind_types.go.Dependency,VariableMapping,FromMapping, andToMapping.cnrm.cloud.google.com/stability-level: alphalabel to the CRD.defaultReleaseRef,unitKindRef, andsaasRef).SaaSServiceMgmtUnitKindIdentitymatching the CAIS URL formatprojects/{project}/locations/{location}/unitKinds/{unitKind}inapis/saasservicemgmt/v1alpha1/saasservicemgmtunitkind_identity.go.SaaSServiceMgmtUnitKindRefinapis/saasservicemgmt/v1alpha1/saasservicemgmtunitkind_reference.go.SaasServiceMgmtReleaseRefinapis/saasservicemgmt/v1alpha1/saasservicemgmtrelease_reference.go.SaaSServiceMgmtSaaSinapis/saasservicemgmt/v1alpha1/saasservicemgmtsaas_reference.goandapis/saasservicemgmt/v1alpha1/saasservicemgmtsaas_identity.go.apis/saasservicemgmt/v1alpha1/saasservicemgmtunitkind_identity_test.go.--resource SaaSServiceMgmtUnitKind:UnitKindtoapis/saasservicemgmt/generate.sh.Fixes #13602
This PR was generated by the overseer,step/gen-types,greenfield,overseer/review agent (powered by the gemini-3.7-flash model).