fix(helm): remove duplicate labels #1844
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.66) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.66 · 360 lines diff across 4 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.352
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.066
Real PR Conversation Timeline
1 comments
"Review active on #1844"
general
weight: 0.35
KaivalyaMDabhadkar
Summary
Closes #1833
templates/job-external-mongodb-setup.yamlemittedapp.kubernetes.io/nametwice in the Job'smetadata.labels, because it appended the key afternvsentinel.labels, which already emits it throughnvsentinel.selectorLabels. Helm's own parser tolerates a duplicate mapping key (last one wins), so the chart rendered, linted, and published fine, but every strict YAML parser rejects the document.helm templatewith external-MongoDB values — the duplicate key is gone, the resulting label set is unchanged:| File | Guards |
| --- | --- |
|
tests/external_mongodb_setup_job_test.yaml| The Job's label set: the name isexternal-mongodb-setup, emitted once, with the common labels intact. ||
tests/strict_render_test.yaml| The class of bug: every template must render as strictly valid YAML, across four datastore permutations (defaults, external MongoDB, bundled MongoDB, PostgreSQL). |Both suites were confirmed to fail against the pre-fix chart with the exact error Flux reports, and pass after:
Type of Change
Component(s) Affected
Testing
Checklist
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
- Improved Kubernetes resource labels to provide distinct, accurate names for each resource and avoid duplicate name mappings.
- Updated the external MongoDB setup job to use its specific resource name in metadata.
- Added coverage for external MongoDB setup job labels.
- Added rendering checks across default, external MongoDB, bundled MongoDB, and PostgreSQL configurations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->