Greenfield: Implement direct KRM types, identity, and generate.sh for SaaSServiceMgmtRolloutKind - #13622
Conversation
…h for SaaSServiceMgmtRolloutKind Implement KRM types, identity, reference, and generate.sh mapping for Greenfield resource SaaSServiceMgmtRolloutKind. Issue: 13601
|
[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. |
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 - Checked
apis/saasservicemgmt/v1alpha1/and CRD versionv1alpha1. - Go Type Pointers: Pass - All scalar primitive types in
SaaSServiceMgmtRolloutKindSpec,ErrorBudget, andSaaSServiceMgmtRolloutKindObservedState(includingLocation) are declared as pointers. Slice and map fields are non-pointers. - Completeness & Heuristics: Pass - 100% coverage of fields from
google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind. Output-only fields (uid,etag,create_time,update_time) are correctly mapped toObservedState, and mutable/configurable fields are mapped toSpec. - 1:1 Kind to Proto Mapping: Pass -
SaaSServiceMgmtRolloutKindmaps 1:1 togoogle.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind. - References/Identity: Pass - Resource identity matches canonical CAIS URI format
projects/{project}/locations/{location}/rolloutKinds/{rolloutkind}. Identity parsing and normalization adhere toIdentityV2andrefs.Refstandards usingrefs.Normalize. - Exception Files: Pass - Only
tests/apichecks/testdata/exceptions/alpha-missingfields.txtwas modified.
Detailed Findings / Actions Required:
None. All checks pass and code complies with Greenfield KRM type standards.
|
🤖 AI Factory started addressing review feedback for this pull request. |
|
Thank you for the review. All automated checks passed with no action required. (This comment was generated by overseer) |
Description
This PR implements direct KRM types, identity, reference, and
generate.shfor theSaaSServiceMgmtRolloutKindgreenfield resource (saasservicemgmt.cnrm.cloud.google.com/v1alpha1).Key Changes
SaaSServiceMgmtRolloutKindSpecandSaaSServiceMgmtRolloutKindObservedStateinapis/saasservicemgmt/v1alpha1/saasservicemgmtrolloutkind_types.go.*string,*int32,*int64) adhering to KCC guidelines.location,unitKind) and enum validation forupdateUnitKindStrategy.SaaSServiceMgmtRolloutKindIdentitymatching the CAIS URL templateprojects/{project}/locations/{location}/rolloutKinds/{rolloutkind}inapis/saasservicemgmt/v1alpha1/saasservicemgmtrolloutkind_identity.go.SaaSServiceMgmtRolloutKindRefinapis/saasservicemgmt/v1alpha1/saasservicemgmtrolloutkind_reference.go.apis/saasservicemgmt/v1alpha1/saasservicemgmtrolloutkind_identity_test.go.--resource SaaSServiceMgmtRolloutKind:RolloutKindtoapis/saasservicemgmt/generate.sh.pkg/controller/direct/saasservicemgmt/mapper.gofor proto3 optional fields inErrorBudget.tests/apichecks/testdata/exceptions/alpha-missingfields.txt.Fixes #13601
This PR was generated by the overseer,step/gen-types,greenfield,overseer/review agent (powered by the gemini-3.7-flash model).