← Back to Pull requests

Greenfield: Implement direct KRM types, identity, and generate.sh for NetAppActiveDirectory #13735

Closed
unknown closed this pull request without merging on Oct 06, 2026 17:45 UTC
View on GitHub
unknown unknown commented on Oct 05, 2026 23:56 UTC
Author

Description


This PR implements direct KRM types, identity, reference, CRD, and generate.sh mapping for NetAppActiveDirectory (netapp.cnrm.cloud.google.com/v1alpha1).

Key Changes


1. generate.sh: Added --resource NetAppActiveDirectory:ActiveDirectory to apis/netapp/generate.sh.
2. KRM Types: Implemented NetAppActiveDirectorySpec and NetAppActiveDirectoryObservedState in apis/netapp/v1alpha1/netappactivedirectory_types.go mapping to proto google.cloud.netapp.v1.ActiveDirectory.
3. Identity & Reference: Implemented NetAppActiveDirectoryIdentity and NetAppActiveDirectoryRef using gcpurls.Template in netappactivedirectory_identity.go and netappactivedirectory_reference.go along with unit tests.
4. Generated Code & CRD: Regenerated deepcopy functions, direct mappers (pkg/controller/direct/netapp/mapper.generated.go), and CRD manifest (config/crds/resources/apiextensions.k8s.io_v1_customresourcedefinition_netappactivedirectories.netapp.cnrm.cloud.google.com.yaml).

KCC Auto-Review Results


Trigger criteria matched: Yes
API Version Check: Pass - (apis/netapp/v1alpha1/netappactivedirectory_types.go, KRM version v1alpha1, CRD v1alpha1)
Go Type Pointers: Pass - All scalar primitive fields in spec and observed state are pointers. Slices (BackupOperators, Administrators, SecurityOperators) are slices of strings and Labels is map[string]string.
Completeness & Heuristics: Pass - All fields declared in proto google.cloud.netapp.v1.ActiveDirectory are mapped to Spec or ObservedState.
1:1 Kind to Proto Mapping: Pass - NetAppActiveDirectory maps 1:1 to google.cloud.netapp.v1.ActiveDirectory.
References/Identity: Pass - ProjectRef used for project reference. Identity implemented via gcpurls.Template. Reference implemented in netappactivedirectory_reference.go.
Exception Files: Pass - No exception files modified.

Fixes #13732

``release-note
NONE
``


This PR was generated by the
overseer,step/gen-types,greenfield,overseer/review** agent (powered by the gemini-3.7-flash model).

Diff: 266 lines (+199 / -67) across 3 files Reviewer: lovelace-coder-bot Review duration: 1068m
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.39) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 266 lines diff across 3 files
0.39
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
56%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Diff Size diff_size
0.334
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #13735"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 56.8% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 39.4% (MEDIUM) · Higher = larger blast radius
39.4%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 56.8% · Lower = rushed or shallow review
56.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 17% · Safe to merge
17%