원클릭으로
reviewgen-greenfield-controller
Provides provides clear review criteria for reviewing PRs that add controllers for KCC Greenfield resources.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Provides provides clear review criteria for reviewing PRs that add controllers for KCC Greenfield resources.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Automate the initial scaffolding of a KCC "direct" resource, including CRD types and generation scripts. Use this when starting a new "direct" implementation for a GCP resource.
Creates or updates the _identity.go and _reference.go files for a Config Connector resource, ensuring they follow the canonical gcpurls.Template pattern. Use this when you need to make sure the identity and reference is up to date for a KCC resource or when implementing IdentityV2 and refs.Ref for a resource.
Standards and workflows for creating direct KRM Go types for an existing CRD while maintaining strict schema compatibility.
Comprehensive review guide and criteria for PRs adding or modifying features in legacy resources (TF patches, DCL patches, CRD changes, MockGCP alignment, and Direct Controller alignment).
Implement the controller, mappers, and fuzzer for a direct KCC resource, ensuring package isolation and CI compliance. Use this when implementing the main reconciliation logic for a "direct" resource.
Guides modifying, patching, and updating resources and fields managed by the Terraform/legacy controller, including patching the local/vendored Terraform Google Beta provider.
| name | reviewgen-greenfield-controller |
| description | Provides provides clear review criteria for reviewing PRs that add controllers for KCC Greenfield resources. |
Please respect the following review criteria and invariants when reviewing.
common.CompareProtoMessage is used to calculate differences between the desired state (krm spec mapped to proto) and the actual state (actual proto returned from API).UpdateMask (e.g. &fieldmaskpb.FieldMask{Paths: sets.List(paths)}) in the Update operation if required by the API.structuredreporting.ReportDiff(ctx, report) is used in the Update method to report the exact diff to the user before submitting the update request to the GCP API.Create and Update operations, even if there are no fields that need updating in the GCP resource. (e.g., a setStatus(u, status) call must be present and invoked, updating ObservedState, ExternalRef, etc.).op.Wait(ctx) after Create or Update).pkg/test/resourcefixture/testdata/basic/ directory for this resource contains at minimum:
create.yaml, etc.)gkehubscope.workerpool_controller.go (Note: it predates IdentityV2 and does not handle it correctly, so ensure new controllers implement IdentityV2 properly).directbase.Model and directbase.Adapter interfaces.resolveDependencies).When proposing changes or stating LGTM, format the review description as follows:
### KCC Auto-Review Results
* **Trigger criteria matched**: [Yes/No]
* **Proto Diffs & Update Mask**: [Pass/Fail] - (List any issues with diff calculation)
* **Structured Reporting**: [Pass/Fail] - (List if structured reporting is missing)
* **KRM Status Updates**: [Pass/Fail] - (List if status update is skipped on no-op updates)
* **LRO Wait**: [Pass/Fail] - (List if LRO waits are missing)
* **Test Coverage**: [Pass/Fail] - (List missing minimal/maximal test cases)
#### Detailed Findings / Actions Required:
1. [Specify file, line number, and exact issue]