← Back to Pull requests

Make status-cleaner host networking configurable #515

Open
swasabs opened this pull request with 58 lines diff across 7 files
View on GitHub
swasabs swasabs commented on Oct 24, 2026 21:07 UTC
Author

The status-cleaner Deployment currently hardcodes hostNetwork: true, preventing installations from placing this controller/webhook on ordinary Pod networking. For example, Kubernetes user namespaces cannot be enabled while host networking is set.

Add frrk8s.statusCleaner.hostNetwork with a backwards-compatible default of true, a boolean schema entry and generated Helm documentation. Setting it to false changes only the status-cleaner Pod; the FRR routing DaemonSet remains host-networked. No application code or default networking behavior changes.

Validation:

  • helm lint charts/frr-k8s passes.

  • Default and false renders differ only in the status-cleaner hostNetwork field; the routing DaemonSet retains host networking.

  • The schema rejects a non-boolean value.

  • make helm-docs and make verify-helm-docs-comments pass.

  • Separately, the v0.0.25 status-cleaner process was exercised with hostNetwork: false and hostUsers: false on a disposable Talos/Kubernetes cluster: readiness, certificate creation, valid/invalid webhook requests, stale-state cleanup and replacement recovery passed. This is process-level compatibility evidence, not FRR routing/dataplane validation.
  • Related: #448.

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    New Features
    Added a chart option to control whether the status-cleaner pod uses the host network. It defaults to enabled, preserving the existing behavior, and can be set to false when host networking is not desired.
    Documentation
    Documented the new option and its default value.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    /kind feature

    Diff: 58 lines (+55 / -3) across 7 files Reviewer: fedepaol Review duration: 60544m
    All Vouch review confidence checks passed
    Residual risk 0.09 = Change Risk (0.66) × (1 − Review Confidence (0.87)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.66 · 58 lines diff across 7 files
    0.66
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.91 · 5 substantive comment(s)
    0.91
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    86%
    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.244
    Sensitive Paths sensitive_paths
    0.066
    Real PR Conversation Timeline
    9 items
    coderabbitai[bot] coderabbitai[bot] commented on Oct 24, 2026 21:07 UTC
    Bot

    <!-- coderabbit-ai-generated:v1 -->

    <!-- This is an auto-generated comment: summarize by coderabbit.ai -->
    <!-- review_stack_entry_start -->

    <a href="https://app.coderabbit.ai/change-stack/metallb/frr-k8s/pull/515?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg?v=3"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg?v=3"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg?v=3" alt="Review in Change Stack →" height="32"></picture></a>

    <!-- review_stack_entry_end -->
    <!-- This is an auto-generated comment: review paused by coderabbit.ai -->

    [!NOTE]

    ## Reviews paused

    > It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

    > - Last reviewed commit: be889c041aa3306087f1141160e2ed8bff4e6ad0

    - Latest commit, not reviewed: 4c8d927c91cd4a36cbd40edc116633300e5aaa5b

    > Use the following commands to manage reviews:

    - @coderabbitai resume to resume automatic reviews.

    - @coderabbitai review to trigger a single review.

    > Use the checkboxes below for quick actions:

    - [ ] <!-- {"checkboxId":"7f6cc2e2-2e4e-497a-8c31-c9e4573e93d1"} --> Resume reviews

    - [ ] <!-- {"checkboxId":"e9bb8d72-00e8-4f67-9cb2-caf3b22574fe"} --> Trigger review

    <!-- end of auto-generated comment: review paused by coderabbit.ai -->
    <!-- recent_review_status_start -->

    No actionable comments were generated in the recent review.

    <!-- recent_review_status_end -->
    <!-- walkthrough_start -->

    <details>
    <summary><strong>Walkthrough</strong></summary>
    <dl>
    <dd>

    The chart adds a configurable hostNetwork value for the status-cleaner Deployment, defaulting to true. The repository also adds ignore rules for local and sensitive files, with exceptions for named example files.

    Changes: Status-cleaner host network setting

    |Layer / File(s)|Summary|
    |:---|:---|
    |Configure status-cleaner host networking <br> charts/frr-k8s/values.schema.json, charts/frr-k8s/values.yaml, charts/frr-k8s/templates/status-cleaner.yaml, charts/frr-k8s/README.md|The chart schema accepts an optional boolean statusCleaner.hostNetwork value. The value defaults to true, is documented, and configures the Deployment's hostNetwork setting.|

    Repository ignore rules

    |Layer / File(s)|Summary|
    |:---|:---|
    |Add local and sensitive file ignore rules <br> .gitignore|Adds ignore patterns for local credentials, environment files, Terraform files, infrastructure configuration, private keys, and macOS metadata. Named example environment and Terraform variable files remain unignored.|

    <!-- change_assessment_start -->

    Estimated code review effort: 2 (Simple) | ~10 minutes

    <!-- change_assessment_commit:"be889c041aa3306087f1141160e2ed8bff4e6ad0" -->
    <!-- change_assessment_priority:{"version":1,"urgency":"p2","manual":false} -->
    Change: Feature
    <!-- change_assessment_end -->

    Suggested reviewers: fedepaol

    </dd>
    </dl>
    </details>

    <!-- walkthrough_end -->
    <details>
    <summary><strong>Merge Risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-unassessed-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minimal</strong> · previous review <code>be889</code></summary>
    <dl>
    <dd>

    <!-- final_review_risk_start -->
    <!-- final_review_risk_label
    Merge Risk: ⚪ Minimal · up to be889
    -->
    <!-- final_review_risk_coverage:{"sourceCommitId":"be889c041aa3306087f1141160e2ed8bff4e6ad0","coveredCommitId":"be889c041aa3306087f1141160e2ed8bff4e6ad0","kind":"reviewed"} -->

    No actionable merge-blocking issue was identified in the reviewed changes.
    <!-- final_review_risk_end -->

    </dd>
    </dl>
    </details>
    <!-- pre_merge_checks_walkthrough_start -->

    <details>
    <summary><strong>Pre-merge checks: <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> 5</strong></summary>
    <dl>
    <dd>

    | Check name | Status | Explanation |
    | :------------------------ | :--------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    | Title check | !Passed | The title names the main change: the status-cleaner host networking setting becomes configurable. The raw summary shows the new frrk8s.statusCleaner.hostNetwork value, the template change, and the sch… |
    | Description check | !Passed | The description follows the repository template's intent. It states the problem and the change, and it gives a clear release-note-independent rationale. It selects the feature kind with /kind feature.… |
    | Docstring Coverage | !Passed | No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… |
    | Linked Issues check | !Passed | Check skipped because no linked issues were found for this pull request. |
    | Out of Scope Changes check | !Passed | Check skipped because no linked issues were found for this pull request. |

    <details>
    <summary><strong>Full details: Title check</strong></summary>
    <dl>
    <dd>

    Explanation

    The title names the main change: the status-cleaner host networking setting becomes configurable. The raw summary shows the new frrk8s.statusCleaner.hostNetwork value, the template change, and the schema entry, all of which match the title. The title is short, specific, and free of noise.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Full details: Description check</strong></summary>
    <dl>
    <dd>

    Explanation

    The description follows the repository template's intent. It states the problem and the change, and it gives a clear release-note-independent rationale. It selects the feature kind with /kind feature. It provides validation evidence and a related issue reference. The template's 'Special notes for your reviewer' section is empty, and the release-note block is empty. The release-note block is the section that most needs completion, since the template asks for either a note or NONE.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong>Full details: Docstring Coverage</strong></summary>
    <dl>
    <dd>

    Explanation

    No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

    </dd>
    </dl>
    </details>

    </dd>
    </dl>
    </details>

    <!-- pre_merge_checks_walkthrough_end -->
    <!-- finishing_touch_checkbox_start -->

    <details>
    <summary><strong>Finishing Touches</strong></summary>
    <dl>
    <dd>

    <details open>
    <summary><strong>Generate unit tests (beta)</strong></summary>
    <dl>
    <dd>

  • <!-- {"checkboxId": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "radioGroupId": "utg-output-choice-group-unknown_comment_id"} --> Create a new PR
  • </dd>
    </dl>
    </details>

    </dd>
    </dl>
    </details>

    <!-- finishing_touch_checkbox_end -->

    <!-- autopilot:start -->

  • <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autofix</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

  • <!-- autopilot:end -->
    <!-- announcements_start -->

    [!TIP]

    <details>

    <summary><strong>🎯 Customize your risk assessments</strong></summary>

    <dl>

    <dd>

    > Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

    > </dd>

    </dl>

    </details>

    > <details>

    <summary><strong>✅ Automatic approvals, with your rules</strong></summary>

    <dl>

    <dd>

    > Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

    > </dd>

    </dl>

    </details>

    <!-- announcements_end -->
    <!-- tips_start -->

    Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

    <details>
    <summary><strong>Share</strong></summary>
    <dl>
    <dd>

  • X

  • Mastodon

  • Reddit

  • LinkedIn
  • </dd>
    </dl>
    </details>

    <!-- tips_end -->
    <!-- recent_review_start -->

    <h6>
    <details>
    <summary><strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Recent review info</strong></summary>
    <dl>
    <dd>

    <!-- review_info_content -->
    <details>
    <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary>
    <dl>
    <dd>

  • Source mode: Auto

  • Repository: Unavailable

  • Branch: Unavailable

  • File: No configuration file from this repository applied

  • Commit: Unavailable

  • Layers: defaults

  • Review profile: CHILL

  • Plan: Advanced

  • Run ID: 2749980b-f5fa-49f8-b5c1-b51265adc693
  • </dd>
    </dl>
    </details>

    <details>
    <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</strong></summary>
    <dl>
    <dd>

    Reviewing files that changed from the base of the PR and between 6c1378cef890b1cb2ae107140cb72ad9e88f6320 and be889c041aa3306087f1141160e2ed8bff4e6ad0.

    </dd>
    </dl>
    </details>

    <details>
    <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 1</strong></summary>
    <dl>
    <dd>

  • .gitignore
  • </dd>
    </dl>
    </details>

    Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

    </dd>
    </dl>
    </details>
    </h6>

    <!-- recent_review_end -->

    fedepaol fedepaol commented on Oct 26, 2026 14:36 UTC
    Contributor

    I would question the need for being host-networked in first place, so maybe we can make it non host networked by default. WDYT @oribon ?

    oribon oribon commented on Oct 28, 2026 08:36 UTC
    Contributor

    @fedepaol that would be https://github.com/metallb/frr-k8s/pull/305 😅

    fedepaol fedepaol commented on Oct 28, 2026 12:58 UTC
    Contributor

    @fedepaol that would be #305 😅

    ops :P

    fedepaol fedepaol commented on code on Oct 28, 2026 13:13 UTC
    Code Review
    Dockerfile:1
    @@ -1,4 +1,4 @@
    -# syntax=docker/dockerfile:1.2
    +# syntax=docker/dockerfile:1.28.0@sha256:bb22d9815c728170f72750f4e5b0d672e06176142e1d602c7e66c050100b7e5b

    this is not related to the pr

    fedepaol fedepaol commented on Oct 28, 2026 13:13 UTC
    Contributor

    please expand the commit message

    swasabs swasabs commented on code on Oct 28, 2026 16:32 UTC
    Code Review
    Dockerfile:1
    @@ -1,4 +1,4 @@
    -# syntax=docker/dockerfile:1.2
    +# syntax=docker/dockerfile:1.28.0@sha256:bb22d9815c728170f72750f4e5b0d672e06176142e1d602c7e66c050100b7e5b

    Pinned for build reproducibility, but unrelated to this PR. Removed now.

    fedepaol fedepaol commented on Nov 17, 2026 17:47 UTC
    Contributor

    @swasabs please clean up the commit history

    Reviewers
    Assignees
    swasabs swasabs
    Labels
    risk: low confidence: 86.8% 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: 66.4% (HIGH) · Higher = larger blast radius
    66.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: 86.8% · Lower = rushed or shallow review
    86.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: 8.8% · Safe to merge
    8.8%