← Back to Pull requests

feat: add lifecycle-manager component scaffolding #1610

Closed
unknown closed this pull request without merging on Aug 17, 2026 22:08 UTC
View on GitHub
unknown unknown commented on Aug 14, 2026 17:12 UTC
Author

Summary


This PR adds scaffolding for the new lifecycle-manager component. It adds the following:
1. Automatically generated validation-controller and ValidationRequest CRD via kubebuilder:
 kubebuilder init --domain nvsentinel.nvidia.com --repo github.com/nvidia/nvsentinel/lifecycle-manager
 kubebuilder create api --group nvsentinel.nvidia.com --version v1alpha1 --kind ValidationRequest 

2. Helm chart organization copied from Janitor. Specifically, we use same approach where only the ValidationRequest CRD is generated and copied to the Helm chart directory by running make generate in the lifecycle-manager repo. All other K8s resources are maintained directly in the Helm chart.

Additionally, the following scaffolding specific to the the validation-controller was added:

1. Add a ValidationConfiguration which defines the config for the validation-controller. This does not result in a CRD being generated and this file is mounted into a ConfigMap which is read as a file from the controller on start-up. It's handled similar the KubeletConfiguration which is read by Kubelets on start-up and is not an API object.
2. Add a templates configuration which includes yaml definitions for test provider CRDs. Right now we have a K8s job defined but later will extend to a NCCL provider CRD. This is maintained in a separate ConfigMap from the ValidationConfiguration and is also read as a file from the controller on start-up.

  templates:
    "k8s-job-template.yaml": |
      apiVersion: batch/v1
      kind: Job
      metadata:
        name: {{.ValidationRequestName}}-{{.TestGroupName}}
        namespace: {{.Namespace}}
      spec:
        activeDeadlineSeconds: {{.Timeout}}
        template:
          spec:
            runtimeClassName: nvidia
            nodeName: {{(index .Nodes 0).NodeName}}
            restartPolicy: Never
            containers:
              - name: test
                image: {{.Image}}
                command: {{.Command}}

3. Automatically add RBAC permissions for all test provider CRD types and automatically trigger controller reconciling of parent ValidationRequest CRDs if any child test provider CRD is modified. This is the relevant section from the controller:
	for _, provider := range r.Config.Validation.Spec.Providers {
		u := &unstructured.Unstructured{}
		u.SetGroupVersionKind(schema.GroupVersionKind{
			Group:   provider.APIGroup,
			Version: provider.Version,
			Kind:    provider.Kind,
		})

		b = b.Owns(u)
	}

Type of Change


  • 🐛 Bug fix

  • [X] ✨ New feature

  • 💥 Breaking change

  • 📚 Documentation

  • 🔧 Refactoring

  • 🔨 Build/CI
  • Component(s) Affected


  • [X] Core Services

  • Documentation/CI

  • Fault Management

  • Health Monitors

  • Janitor

  • Other: ____________
  • Testing


  • [X] Tests pass locally

  • [X] Manual testing completed

  • [X] No breaking changes (or documented)
  • Checklist


  • [X] Self-review completed

  • [] Documentation updated (will add documentation after initial implementation is complete)

  • [X] Ready for review
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    New Features


  • Added the NVSentinel Lifecycle Manager for configuring and running node validation workflows.

  • Added Kubernetes ValidationRequest resources with lifecycle status, test tracking, skipped items, and failure reporting.

  • Added admission validation for request nodes and configured tests.

  • Added Helm deployment support for validation providers, scheduling, webhooks, metrics, TLS, and leader election.

  • Lifecycle Manager is disabled by default and can be enabled through chart values.
  • Documentation


  • Updated node-validation design documentation for revised configuration and status formats.

  • <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 490 lines (+367 / -123) across 6 files Reviewer: jtschelling Review duration: 4615m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.47 · 490 lines diff across 6 files
    0.47
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.371
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1610"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    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: 47.4% (MEDIUM) · Higher = larger blast radius
    47.4%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 18.7% · Safe to merge
    18.7%