← Back to Pull requests

Use Recreate strategy for statuscleaner deployment #530

Open
unknown opened this pull request with 322 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 10, 2026 17:57 UTC
Author

Is this a BUG FIX or a FEATURE ?:

/kind bug

What this PR does / why we need it:

The statuscleaner deployment runs with hostNetwork and a fixed host port (19443). With the default RollingUpdate strategy, the new pod cannot be scheduled while the old one still holds the port, so upgrades get stuck on single node clusters.

This switches the deployment strategy to Recreate in both the helm chart and the kustomize manifests (all-in-one regenerated), so the old pod is terminated before the new one starts.

Fixes metallb/metallb#3184
Fixes #448

Special notes for your reviewer:

Same approach taken in openshift/cluster-network-operator#3142.

Client side apply (Helm 3, Helm 4 upgrades of releases created with client side apply, plain kubectl apply) uses strategic merge patch, where Deployment strategy has retainKeys, so the defaulted rollingUpdate field is dropped when switching type and no extra step is needed.

Server side apply (Helm 4 releases installed with its default --server-side=true, kubectl apply --server-side) does not remove the API-server defaulted rollingUpdate because no field manager owns it, so the upgrade is rejected with spec.strategy.rollingUpdate: Forbidden: may not be specified when strategy type is 'Recreate'. A chart can't fix this on its own, so the release note documents a one time step. Fresh installs are not affected.

Trade-off: with Recreate there is a short window during rollouts where the validating webhook has no endpoint, so FRRConfiguration create/update requests can be rejected until the new pod is ready.

Tested on kind with all nodes but one cordoned: main gets stuck with the new pod Pending (didn't have free ports); kubectl apply of this branch unblocks the rollout and subsequent restarts work. With kubectl apply --server-side the Forbidden error reproduces, and the patch in the release note fixes it.

Release note:

``release-note
The statuscleaner deployment now uses the Recreate strategy, so upgrades no longer get stuck on single node clusters because of the host port conflict.

action required: when upgrading an existing installation applied with server side apply (Helm 4 releases installed with server side apply, or kubectl apply --server-side), switch the strategy and drop the defaulted rollingUpdate field before upgrading:
kubectl patch deployment <release>-statuscleaner -n <namespace> --type=merge -p '{"spec":{"strategy":{"type":"Recreate","rollingUpdate":null}}}'
Alternatively, Helm 4 users can run the upgrade once with --server-side=false.
``

Diff: 322 lines (+241 / -81) across 4 files Reviewer: fedepaol Review duration: 9892m
All Vouch review confidence checks passed
Residual risk 0.35 = Change Risk (0.65) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.65 · 322 lines diff across 4 files
0.65
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
Diff Size diff_size
0.346
Shallow Review Depth shallow_review_depth
0.344
Sensitive Paths sensitive_paths
0.065
Real PR Conversation Timeline
1 comments
"Review active on #530"
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: 65.1% (HIGH) · Higher = larger blast radius
65.1%
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: 34.7% · Safe to merge
34.7%