Use Recreate strategy for statuscleaner deployment #530
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
fedepaol
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 DeploymentstrategyhasretainKeys, so the defaultedrollingUpdatefield 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 defaultedrollingUpdatebecause no field manager owns it, so the upgrade is rejected withspec.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 applyof this branch unblocks the rollout and subsequent restarts work. Withkubectl apply --server-sidethe Forbidden error reproduces, and the patch in the release note fixes it.Release note:
``
release-noteThe 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.