feat(crd): stamp recommended app.kubernetes.io labels on CRDs #518
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 · 333 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.348
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.065
Real PR Conversation Timeline
1 comments
"Review active on #518"
general
weight: 0.35
ajaysundark
Description
Adds the recommended
app.kubernetes.iolabels to both CRDs (NodeReadinessRuleandNodeReadinessEvaluation), so a managed provider or anyone else can tell NRC is already installed before putting in a second controller:+kubebuilder:metadata:labelsmarkers on the root types, somake manifestsgenerates them. The chart'scrds/copy of the NRR CRD is updated to match.versionandinstanceare left out because they change per release and per install, and don't fit static manifests.installation.mdgets a short "Detecting an Existing Installation" section with thekubectl get crdcheck and its limits: the labels say who packaged the CRD, not that a controller is running, and Helm keepscrds/after uninstall.This covers items 1 and 2 of #438. Item 3 (a Helm pre-install hook) is left out on purpose: #440 tried that and false-positived on reinstall, so it probably needs its own discussion.
If #511 lands first, its chart copy of the NRE CRD will need the same 4-line label block re-synced (
hack/verify-chart-drift.shcatches it). #502, #484 and #509 touch the same generated files, but only schema, so a rebase plusmake manifestswould sort it out.Related Issue
Refs #438
Type of Change
/kind feature
Testing
On the current head, which already sits on main
0eefab6:make manifestsleaves no diff, andhack/verify-chart-drift.shpasses (the chart CRD is byte-identical to the generated one).make testandmake lintpass, and so doeshack/verify-all.sh.kubectl get crd nodereadinessrules.readiness.node.x-k8s.io -o jsonpath='{.metadata.labels.app\.kubernetes\.io/managed-by}'returnsnode-readiness-controller.helm lintwas clean andhelm unittestpassed 53/53 on this same code.Checklist
make testpassesmake lintpassesDoes this PR introduce a user-facing change?
``
release-note
``The NodeReadinessRule and NodeReadinessEvaluation CRDs now carry the app.kubernetes.io/name, part-of and managed-by labels, which can be used to detect an existing installation.
Generative AI Usage Disclosure
How they were used:
Claude helped with the marker changes, the docs section and running the checks. The generated CRDs and docs were reviewed and the checks above were re-run on the final head before marking this ready.