feat: preserve pre-existing taints and cordons in fault-quarantine #1445
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1445"
general
weight: 0.35
natherz97
Summary
Closes #1424
This PR updates fault-quarantine to preserve pre-existing taints or node cordons which existed prior to the fault-quarantine applying a quarantine to a given node.
There is also a bug fix to remove the quarantinedNodeUntaintedManually annotation when a node is quarantined since previously only the quarantinedNodeUncordonedManually annotation was removed.
Implementation details:
Examples
Case 1: Node does not have a pre-existing cordon or taint
Before quarantine:
After quarantine:
After unquarantine:
Case 2: Node has a pre-existing cordon and taint
Before quarantine:
After quarantine:
After unquarantine:
Case 3: Manual uncordon
During quarantine:
After manual uncordon:
Case 4: Manual taint removal
During quarantine:
After manual taint removal:
Tests
Test coverage in reconciler_e2e_test.go:
E2E test coverage in fault_quarantine_test.go:
Type of Change
Component(s) Affected
Testing
Checklist
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Added a new quarantine health annotation to report when a node was already cordoned before quarantine.
Updated taint configuration serialization to support a
preExistingflag in JSON.Bug Fixes
Improved node quarantine/restore behavior to preserve pre-existing cordon/taint state and to fully clean up manual untaint/uncordon artifacts.
Improved handling when node details can’t be retrieved.
Tests
Expanded end-to-end and unit tests to cover pre-existing cordons/taints and manual cleanup scenarios.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->