Implement direct controller and test fixtures for BeyondCorpAppGateway #14611
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.47) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 279 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.337
Real PR Conversation Timeline
1 comments
"Review active on #14611"
general
weight: 0.35
maqiuyujoyce
This pull request implements the direct controller and test fixtures for
BeyondCorpAppGateway(beyondcorp.cnrm.cloud.google.com/v1alpha1) following thekcc-direct-controller-implementerandkcc-direct-controller-logic-brownfieldskills.Key Changes
- Implemented
Adapterunderpkg/controller/direct/beyondcorp/beyondcorpappgateway/beyondcorpappgateway_controller.gousing the officialcloud.google.com/go/beyondcorp/appgateways/apiv1GAPIC client.- Implemented
Find,Create,Update,Delete, andExport/AdapterForURL.- Propagated GCP labels from KRM
metadata.labelsusinglabel.GCPLabels.- Handled GCP resource immutability: Since GCP does not support updates for BeyondCorp AppGateways,
Update()usescommon.CompareBrownfieldSpecAndLabelsto detect spec or label diffs and returns an error explaining that the resource is immutable, while allowing steady-state re-reconciliation to proceed without issuing mutating requests.- Added
k8s.ReconcilerTypeDirecttoSupportedControllersforBeyondCorpAppGatewayinpkg/controller/resourceconfig/static_config.gowhile keepingDefaultControllerask8s.ReconcilerTypeTerraform.- Added round-trip fuzzer test
beyondcorpappgateway_fuzzer_test.go.- Generated and aligned golden mock files (
_http_mock.log,_http_old_controller_mock.log,_final_object_old_controller.golden.yaml,_http_mock.diff,_final_object.diff).- Verified that both direct and fallback legacy reconcilers pass all tests (creation, readiness, re-reconciliation, and deletion).
- Added migration journals in
.gemini/skills/kcc-direct-controller-implementer/journal/BeyondCorpAppGateway.mdand.gemini/skills/kcc-direct-controller-logic-brownfield/journal/BeyondCorpAppGateway.md.Fixes #14589
``
release-note
``NONE
This pull request was generated by an AI coding agent.
<sub>🤖 Agent session</sub>
<!-- factory:task-output kind=Change task=recipe-fix-20261029-062337-126b -->