← Back to Pull requests

feat: manage node egress public IPs through deployment stacks #8212

Open
unknown opened this pull request with 275 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 20, 2026 12:47 UTC
Author

Summary


Manage the nine node-pool egress public IPs for eligible LoadBalancer clusters, including existing clusters. CS retains its creation path; UDR clusters do not wait for these IPs. No load balancer or CCM changes.

  • Discover an existing CS cluster before reserving IPs. Persist the nine CS-compatible resource IDs in ServiceProviderCluster before publishing executable intent; reject conflicting reservations rather than replacing them. SPC stores reservations only.

  • Keep the Azure stack target egress-public-ips, the desire node-pool-egress-public-ips, and the existing IP names and settings.

  • Always use the tenant first-party application (FPA) for the public-IP stack, whether its credential is real or mocked. The ARM permissions-manager helper is used for the separate mock-FPA ownership assignment, not for public-IP writes.

  • Before CS creation or final create-operation completion, require matching expected, stored and observed spec hashes, successful application, and all nine reserved IPs reported as managed. Neither a stale observation nor a successful permissions-manager spec establishes readiness.

  • Retryable failures remain Provisioning until the existing deadline; explicit InvalidIntent is terminal. On expiry, the saved error preserves the sanitized Target and nested Details.

  • On deletion, remove only the Cosmos desire; the existing managed-resource-group lifecycle handles Azure cleanup.
  • Validation


    Backend build, focused unit and wiring tests, targeted race tests, and lint passed locally. Tests cover FPA authentication with mocked credentials and rejection of stale or permissions-manager results by both creation checks. The earlier broader race run excluded the known TestHypershiftHostedClusterOperationState fixture race.

    Draft limitations


    Live Azure permissions, adoption and preservation of attached IPs, replay, concurrent CS creation, and cleanup remain unvalidated. Discovery, reservation and execution are not transactional; existing conflicting intent is not automatically revoked. Keep this PR draft pending rollout and live validation.

    ---
    AI-generated. Review for accuracy.

    @machi1990 requested from Slack

    Chai persona: ARO Ops

    Diff: 275 lines (+206 / -69) across 3 files Reviewer: machi1990 Review duration: 15400m
    All Vouch review confidence checks passed
    Residual risk 0.33 = Change Risk (0.63) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.63 · 275 lines diff across 3 files
    0.63
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.336
    Sensitive Paths sensitive_paths
    0.063
    Real PR Conversation Timeline
    1 comments
    "Review active on #8212"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed sensitive_module
    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: 62.7% (MEDIUM) · Higher = larger blast radius
    62.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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 33.4% · Safe to merge
    33.4%
    Repository