fix(helm): render blackbox Probes into global.namespace#28
Conversation
The Probe templates in monitoring.yaml used `.Values.namespace`, which is unset (the namespace lives at `.Values.global.namespace`), so every Probe CR rendered with an empty `metadata.namespace`. PodMonitors in the same file already use the local `$namespace` (= `.Values.global.namespace`); align the Probes with that so they land in the chart namespace explicitly instead of relying on the apply-time (helm -n / ArgoCD destination) namespace fallback.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR updates ChangesPrometheus Probe namespace consolidation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
The
Probetemplates indeploy/helm/templates/monitoring.yamlsetnamespace: {{ .Values.namespace }}, but that key is unset — the namespace lives at.Values.global.namespace. As a result every blackboxProbeCR rendered with an emptymetadata.namespace, relying on the apply-time namespace fallback (helm-n/ ArgoCD destination) to place it.The
PodMonitortemplates in the same file already use the local$namespacealias ({{- $namespace := .Values.global.namespace }}). This change aligns the 8 Probe blocks with that, so Probes render into the chart namespace explicitly and consistently with PodMonitors.This affects every env with
monitoring.probes.enabled: true(e.g. pdx01, and the in-flight sjc4 migration).Why it matters
global.namespace).OBSERVABILITY=trueintegration test (test_probe_labels.py, which looks for Probe CRs inconfig_manager_namespace) robust.Test plan
helm template ... --values values-ci.yaml --values values-observability.yaml→ all 8 Probes render withnamespace: nv-config-manager-ci(was empty) and retainstaticConfig.labels.include_in_slo..Values.namespacereferences inmonitoring.yaml.observabilityenabled (CI).Summary by CodeRabbit