Make status-cleaner host networking configurable #515
<!-- 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&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>
</dd>
</dl>
</details>
</dd>
</dl>
</details>
<!-- finishing_touch_checkbox_end -->
<!-- autopilot:start -->
<!-- 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>
</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>
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 -->
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 ?
@fedepaol that would be https://github.com/metallb/frr-k8s/pull/305 😅
@fedepaol that would be #305 😅
ops :P
this is not related to the pr
please expand the commit message
Pinned for build reproducibility, but unrelated to this PR. Removed now.
@swasabs please clean up the commit history
fedepaol
swasabs
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.hostNetworkwith a backwards-compatible default oftrue, a boolean schema entry and generated Helm documentation. Setting it tofalsechanges 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-k8spasses.falserenders differ only in the status-cleanerhostNetworkfield; the routing DaemonSet retains host networking.make helm-docsandmake verify-helm-docs-commentspass.hostNetwork: falseandhostUsers: falseon 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
falsewhen 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