docs: ADR-051 MaintenanceRequest (MR) — entry door for signaling incoming node maintenance #1577
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 552 lines diff across 6 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.378
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1577"
general
weight: 0.35
natherz97
Summary
Adds ADR-051, the design for the
MaintenanceRequest(MR) CRD — the inbound counterpart toExternalRemediationRequest(ADR-040). A requester (an external system or operator) creates an MR to tell NVSentinel that maintenance is incoming for a node, so NVSentinel prepares the node (cordon, drain) before the work begins instead of the requester bypassing the pipeline.Key design points
spec.healthEventunchanged — the requester picksrecommendedAction, and the pipeline routes it to the matching remediation (RESTART_VM→ RebootNode,CUSTOM/external-remediation→ ERR). The MR carries astartTimerecording when the maintenance window opens. The MR name and UID are stamped into event metadata for traceability only; nothing consumes them.isHealthy=trueevent to retract the fault and un-cordon the node. Auto-deletion on remediation completion is deliberately deferred.lifecycle-manager. The reconciler and webhook are added to the existing component (#1610, introduced with the validation-controller), reusing its manager, leader election, webhook server, config, chart, and RBAC scaffolding. MR adds the one capability it lacks: ahealthpubemitter plus ahostPathmount of the platform-connector socket, which is that component's first node-local socket dependency.protoc-gen-crdfor the CRD YAML, and a Go wrapper withprotojsonmarshalling, becausespec.healthEventembeds the proto-generatedHealthEvent. This means API versionv1and groupnvsentinel.dgxc.nvidia.com, solifecycle-managerserves that group alongsidenvsentinel.nvidia.comforValidationRequest.HealthEventEmittedcondition, nocompletionTime, and no owner-references, GC coupling, or cross-CRD watches.isHealthy=trueopening event, requiresstartTimeto be in the future, freezesspec.healthEventafter creation, and best-effort-rejects a duplicate MR for a node.Main tradeoff to push on
A forgotten MR leaves a node cordoned indefinitely. Nothing reclaims it, so MRs become an operational surface that needs monitoring. This is the accepted cost of dropping automatic cleanup in the first iteration.
Alternatives considered
The most substantial is a
kubernetes-object-monitorpolicy instead of a controller — KOM already implements MR's exact open/close model generically, so it would need no new reconciler. It was rejected because every field in KOM'sHealthEventSpecis a static TOML literal: each new fault type would need its own policy and a release, and no single request could carry per-request detail. The ADR records the full comparison, along with the deferred auto-completion design and three other rejected shapes.Dependencies
ExternalRemediationRequest) — shipped.fault-quarantineruleset matching MR-emitted events is the only hard prerequisite, and must land with MR or before it.external-remediationaction that renders an ERR is needed only for theCUSTOMcase.fault-remediationshould be idempotent on re-publish, since the MR re-emits its opening event on retry.🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
- Added a new
MaintenanceRequestAPI for scheduling maintenance windows with associated health events.- Maintenance requests now track lifecycle conditions and automatically emit healthy clearing events when maintenance ends.
- Added validation, permissions, deployment integration, and testing guidance for the new API.
- Added a detailed architecture decision record describing the maintenance request lifecycle, behavior, and operational considerations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->