feat: add lifecycle-manager component scaffolding #1610
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
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.371
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1610"
general
weight: 0.35
jtschelling
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:
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.
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:
Type of Change
Component(s) Affected
Testing
Checklist
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
ValidationRequestresources with lifecycle status, test tracking, skipped items, and failure reporting.Documentation
<!-- end of auto-generated comment: release notes by coderabbit.ai -->