Greenfield: Implement direct KRM types, identity, and generate.sh for SaaSServiceMgmtTenant - #13623
lovelace-coder-bot wants to merge 1 commit into
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 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 - (CRD and Go types implemented under
apis/saasservicemgmt/v1alpha1with versionv1alpha1) - Go Type Pointers: Pass - (All scalar primitives in
SaaSServiceMgmtTenantSpec,SaaSServiceMgmtTenantObservedState, andLocationare pointers; non-primitives and slices follow KCC conventions) - Completeness & Heuristics: Pass - (100% field coverage of the
google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenantproto definition, proper split between Spec and ObservedState) - 1:1 Kind to Proto Mapping: Pass - (
SaaSServiceMgmtTenantmaps 1:1 to protoTenant) - References/Identity: Pass - (
SaaSServiceMgmtTenantIdentity,SaaSServiceMgmtTenantRef, andSaaSServiceMgmtSaaSRefimplemented with canonical format templates and validations) - Exception Files: Fail - (
tests/apichecks/testdata/exceptions/naming_violations.txtmodified)
Detailed Findings / Actions Required:
tests/apichecks/testdata/exceptions/naming_violations.txt: Greenfield PRs must not modify exception files other thantests/apichecks/testdata/exceptions/alpha-missingfields.txt.apis/saasservicemgmt/v1alpha1/saasservicemgmtsaas_reference.go: Consider implementingParseExternalToIdentity() (identity.Identity, error)onSaaSServiceMgmtSaaSRefto satisfyrefs.ExternalRef.
| [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 any exception files other than tests/apichecks/testdata/exceptions/alpha-missingfields.txt. Please verify if naming_violations.txt changes can be avoided or if the naming test needs adjustment.
| var _ refsv1beta1.Ref = &SaaSServiceMgmtSaaSRef{} | ||
| var SaaSServiceMgmtSaaSGVK = GroupVersion.WithKind("SaaSServiceMgmtSaaS") | ||
|
|
||
| // SaaSServiceMgmtSaaSRef is a reference to a GCP SaaSServiceMgmtSaaS. |
There was a problem hiding this comment.
Consider implementing ParseExternalToIdentity() (identity.Identity, error) on SaaSServiceMgmtSaaSRef so that it satisfies the refs.ExternalRef interface, matching SaaSServiceMgmtTenantRef and standard reference implementations across KCC.
|
🤖 AI Factory started addressing review feedback for this pull request. |
… SaaSServiceMgmtTenant Implement direct KRM types, identity, reference, and generate.sh for SaaSServiceMgmtTenant (saasservicemgmt.cnrm.cloud.google.com/v1alpha1). Issue: GoogleCloudPlatform#13604
172d496 to
62ea708
Compare
|
Thanks for the review! I have addressed all the feedback:
(This comment 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. |
Investigating tests-e2e-direct-iam failureRun: 36957375530 Investigating tests-e2e-fixtures-networksecurity failureRun: 36957375530 (This report was generated by overseer) |
|
🤖 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 versionv1alpha1) - Go Type Pointers: Pass - (All primitive scalar fields including
Locationuse pointer types) - Completeness & Heuristics: Pass - (All proto fields for
Tenantare mapped to spec, status.observedState, or KRM metadata) - 1:1 Kind to Proto Mapping: Pass - (
SaaSServiceMgmtTenantstrictly maps 1:1 togoogle.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant) - References/Identity: Pass - (
SaasRef,ProjectRef,SaaSServiceMgmtTenantIdentity, andSaaSServiceMgmtSaaSIdentityfollowgcpurls.Templatepattern and userefs.Normalize) - Exception Files: Pass - (Only
tests/apichecks/testdata/exceptions/alpha-missingfields.txtwas updated)
Detailed Findings / Actions Required:
None. The implementation strictly adheres to all greenfield type conventions and validation checks.
|
🤖 AI Factory started addressing review feedback for this pull request. |
|
Thank you for the review! All review checks have passed and no additional changes are required. Unit tests and API checks have been verified. (This comment was generated by overseer) |
Description
This PR implements direct KRM types, identity, reference, and
generate.shfor theSaaSServiceMgmtTenantgreenfield resource (saasservicemgmt.cnrm.cloud.google.com/v1alpha1).Key Changes
SaaSServiceMgmtTenantSpecandSaaSServiceMgmtTenantObservedStateinapis/saasservicemgmt/v1alpha1/saasservicemgmttenant_types.go.SaaSServiceMgmtSaaSRefinapis/saasservicemgmt/v1alpha1/saasservicemgmtsaas_reference.goand identitySaaSServiceMgmtSaaSIdentityinapis/saasservicemgmt/v1alpha1/saasservicemgmtsaas_identity.go.SaaSServiceMgmtTenantIdentitymatching the CAIS URL formatprojects/{project}/locations/{location}/tenants/{tenant}inapis/saasservicemgmt/v1alpha1/saasservicemgmttenant_identity.go.SaaSServiceMgmtTenantRefinapis/saasservicemgmt/v1alpha1/saasservicemgmttenant_reference.go.saasservicemgmttenant_identity_test.goandsaasservicemgmtsaas_identity_test.go.--resource SaaSServiceMgmtTenant:Tenanttoapis/saasservicemgmt/generate.sh.naming_violations.txtandalpha-missingfields.txt.Fixes #13604
This PR was generated by the overseer,step/gen-types,greenfield,overseer/review agent (powered by the gemini-3.7-flash model).