← Back to Pull requests

Greenfield: Implement direct controller, E2E fixtures, and fuzzer for NetAppStoragePool #16513

Closed
unknown closed this pull request without merging on Nov 26, 2026 17:31 UTC
View on GitHub
unknown unknown commented on Nov 26, 2026 07:24 UTC
Author

This pull request was generated by an AI coding agent.

Summary of Changes

  • Controller & Fuzzer Generation: Autogenerated direct controller pkg/controller/direct/netapp/netappstoragepool_controller.go and fuzzer pkg/controller/direct/netapp/netappstoragepool_fuzzer.generated.go via controllerbuilder generate-controller and generate-fuzzer using --prepopulate-resource.

  • Static Configuration: Registered NetAppStoragePool with direct reconciler in pkg/controller/resourceconfig/static_config.go.

  • Labels & Update Normalization:

  • - Reconciled Kubernetes labels via label.GCPLabels on creation and common.CompareGreenfieldSpecAndLabels on update.
    - Handled project ID to project number normalization for network in StoragePoolAdapter.Update to avoid spurious diffs.
    - Adopted actual state for write-only/create-only fields (zone, replicaZone) in StoragePoolAdapter.Update since GCP does not return them and rejects them in updateMask.
  • E2E Golden Testing:

  • - Created netappstoragepool-minimal and netappstoragepool-maximal fixtures and recorded golden HTTP/audit logs against real GCP project cnrm-barni-4.
    - Passed TestAllInSeries with clean CREATE -> UPDATE -> RE-RECONCILE -> DELETE lifecycles.
    - Updated tests/apichecks/testdata/exceptions/alpha-missingfields.txt.
    - Documented service-specific learnings in .gemini/journals/netapp.md.

    Fixes #16501

    ``release-note
    NONE

    
    <sub>🤖 [Agent session](https://staging.repoagent.dev/#/overseers/kcc/task-session/fix-k8s-config-connector-16501/recipe-fix-20261126-033653-fa88)</sub>
    
    <!-- factory:task-output kind=Change task=recipe-fix-20261126-033653-fa88 -->
    
    ---
    
    ### Greenfield: Implement MockGCP and Alignment for NetAppStoragePool
    
    ### Summary
    Implements Phase 3 (MockGCP and Alignment) for `NetAppStoragePool` to verify behavioral correctness against simulated GCP services:
    - Implemented `NetAppStoragePool` mock service in `mockgcp/mocknetapp/storagepool.go` covering CRUD operations, LRO handling, default population, network project number resolution, and throughput calculations.
    - Updated `mockgcp/mocknetapp/normalize.go` with service-scoped visitor configuration for timestamp normalization.
    - Added `NetAppStoragePool` to the MockGCP-supported GroupKinds in `config/tests/samples/create/harness.go`.
    - Generated matched `_http_mock.log` files for both minimal and maximal fixtures.
    - Verified log alignment and E2E test suites with zero diffs.
    
    Fixes #16519
    
    
    release-note
    NONE
    
    This pull request was generated by an AI coding agent.
    
    <!-- factory:group-step issue=16519 -->
    
    ---
    
    ### Greenfield: Release NetAppStoragePool (remove it from BLOCKED_KINDS)
    
    This pull request was generated by an AI coding agent.
    
    Release `NetAppStoragePool` by removing it from the `BLOCKED_KINDS` array in `dev/tasks/build-release-bundle` so its CRD ships in the release bundle.
    
    All test fixtures for `NetAppStoragePool` under `pkg/test/resourcefixture/testdata/basic/netapp/v1alpha1/netappstoragepool/` (`netappstoragepool-minimal` and `netappstoragepool-maximal`) contain authentic real-GCP HTTP logs (`_http.log`), audit probe logs (`_audit_probe.log`), and mock golden logs (`_http_mock.log`).
    
    Fixes #16532
    
    
    release-note
    New Alpha Resources (Direct Reconciler):
    NetAppStoragePool
    `

    Review Instructions

    Use .gemini/skills/reviewgen-greenfield-release/SKILL.md to conduct the review.

    KCC Greenfield Release Auto-Review Results


    Only
    BLOCKED_KINDS Changed: Pass
    Fixture Evidence (_http.log, _audit_probe.log, _http_mock.log`): Pass
  • Release Note: Pass
  • Detailed Findings / Actions Required:


    None. All criteria and invariants are satisfied.

    <!-- factory:group-step issue=16532 -->

    Diff: 470 lines (+352 / -118) across 5 files Reviewer: lovelace-coder-bot Review duration: 606m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.46) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.46 · 470 lines diff across 5 files
    0.46
    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%
    60%
    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.368
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #16513"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 45.7% (MEDIUM) · Higher = larger blast radius
    45.7%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 18% · Safe to merge
    18%