Repository navigation
Description
Problem Description
The rag-ingest WorkflowTemplate sets OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector.otel.svc.cluster.local:4318 (k8s/devops/workflowtemplate-rag-ingest.yaml). Namespace otel has no Service with that name. The Collector chart makes the Service otel-collector-opentelemetry-collector (release otel-collector, chart opentelemetry-collector). kubectl -n otel get svc -o name lists otel-collector-opentelemetry-collector, tempo and tempo-headless.
devops-cli reads telemetry.endpoint first, and OTEL_EXPORTER_OTLP_ENDPOINT only when the config names no endpoint (docs/TELEMETRY.md, OTLP Exporter). If the mounted config of the step names no endpoint, the step sends its spans and metrics to a host that does not resolve. If the config names one, the variable is dead and wrong.
Reproduction Steps
git grep -n "otel-collector.otel.svc" -- k8s/devops/kubectl -n otel get svc -o name
Expected vs Actual Behavior
Expected: the step names the Collector Service that exists, or sets no variable when the mounted config names the endpoint. A check of the k8s row of devops ci fails on an OTLP endpoint in k8s/ that names a host in namespace otel other than the Collector Service.
Actual: the step names a Service that does not exist.
Environment Diagnostics
Argo CD devops Application, main branch.
Proposed design
Problem statement
The rag-ingest WorkflowTemplate sends spans and metrics to otel-collector.otel.svc.cluster.local. That host does not resolve. The Collector chart names its Service otel-collector-opentelemetry-collector. When the mounted config names no endpoint, the step exports to the dead host. No check of k8s/ reports an OTLP endpoint in namespace otel that is not the Collector Service.
Acceptance criteria
Requirement: rag-ingest endpoint host
The ingest container of the rag-ingest WorkflowTemplate SHALL set OTEL_EXPORTER_OTLP_ENDPOINT to the Collector Service that exists in namespace otel.
Scenario: The step names the live Collector Service
- WHEN a test reads the environment of the
ingestcontainer ink8s/devops/workflowtemplate-rag-ingest.yaml - THEN the value is
http://otel-collector-opentelemetry-collector.otel.svc.cluster.local:4318.
Requirement: k8s row OTLP endpoint check
The k8s row of devops ci SHALL fail when a manifest under k8s/ names an OTLP endpoint host in namespace otel other than the Collector Service.
Scenario: A stale Collector host fails
- WHEN the check reads a manifest that sets
OTEL_EXPORTER_OTLP_ENDPOINTtohttp://otel-collector.otel.svc.cluster.local:4318 - THEN the check names that host and returns a failure.
Requirement: Live Collector Service passes
The check SHALL pass on an OTLP endpoint that names the Collector Service in namespace otel.
Scenario: The corrected host passes
- WHEN the check reads a manifest that sets
OTEL_EXPORTER_OTLP_ENDPOINTtohttp://otel-collector-opentelemetry-collector.otel.svc.cluster.local:4318 - THEN the check reports no problem and returns a pass.
Requirement: Other hosts pass
The check SHALL ignore an OTLP endpoint host outside namespace otel and a workload that sets no OTLP endpoint.
Scenario: Another namespace and no endpoint pass
- WHEN the check reads one manifest that sets
OTEL_EXPORTER_OTLP_ENDPOINTtohttp://collector.monitoring.svc.cluster.local:4318and one manifest with no OTLP endpoint - THEN the check reports no problem for either manifest.
Requirement: The committed tree passes
Every OTLP endpoint under k8s/ MUST name the Collector Service or a host outside namespace otel.
Scenario: The committed k8s tree passes the check
- WHEN the check reads the committed
k8s/tree - THEN the check reports no problem.
Existing Tool Considered
No alternatives check has run. No open, maintained tool covers the need. kubeconform validates the Kubernetes schema and kube-linter applies pattern rules. Neither resolves a Service host name, and Helm lookup needs a live cluster at install time. The change builds its own check: about 30k tokens to write the module and its tests, about 5k tokens a month to keep and fix it, and about 4 hours of elapsed time.
Key questions
- Which value does the
rag-ingeststep set for its OTLP endpoint?: SetOTEL_EXPORTER_OTLP_ENDPOINTtohttp://otel-collector-opentelemetry-collector.otel.svc.cluster.local:4318. (best practice) [sources: k8s/devops/workflowtemplate-rag-ingest.yaml, docs/TELEMETRY.md, docs/CONFIGURATION.md:147]- Chosen: Correct the host in
OTEL_EXPORTER_OTLP_ENDPOINT. The variable is correct when the config names no endpoint, and harmless when the config names one. - Rejected: Remove
OTEL_EXPORTER_OTLP_ENDPOINT. A config that names no endpoint then falls back tohttp://localhost:4318, which fails inside the pod. - Rejected: Set
DEVOPS_CLI_TELEMETRY_ENDPOINTinstead. It outranks the mounted config, so the step ignores an endpoint that the config sets on purpose.
- Chosen: Correct the host in
- What is the name and the port of the Collector Service in namespace
otel?: The Service isotel-collector-opentelemetry-collector, the Helm fullname of releaseotel-collectorand chartopentelemetry-collector. The OTLP HTTP port is4318. [sources: k8s/otel/values.yaml, tests/gate/k8s_checks/otel_collector.py, k8s/devops/workflowtemplate-rag-ingest.yaml] - Where does the new check live?: Add the module
tests/gate/k8s_checks/otel_endpoint.py, which thek8srow ofdevops ciruns. (best practice) [sources: tests/gate/k8s_checks/otel_collector.py, tests/gate/k8s_checks/argocd_apps.py]- Chosen: A module under
tests/gate/k8s_checks/. The otherk8srow checks live there, and the issue asks for a check of that row. - Rejected: A test under
tests/invariants/. An invariant test runs in another job, so thek8srow would not report the host. - Rejected: A kube-linter rule. A kube-linter rule matches a pattern in one manifest and cannot know the Service name.
- Chosen: A module under
- Which manifests and which variables does the check scan?: The check reads every YAML file under
k8s/and each environment name that starts withOTEL_EXPORTER_OTLPand ends with_ENDPOINT. (best practice) [sources: k8s/devops/workflowtemplate-rag-ingest.yaml, docs/TELEMETRY.md]- Chosen: All of
k8s/and every OTLP endpoint variable. The issue namesk8s/, and the signal-specific variables carry the same defect. - Rejected:
k8s/devops/andOTEL_EXPORTER_OTLP_ENDPOINTonly. It misses the other directories and the signal-specific variables.
- Chosen: All of
- How does the check know the Collector Service name?: The module holds one constant for the Service name and the port:
otel-collector-opentelemetry-collectorand4318. (best practice) [sources: k8s/otel/values.yaml, tests/gate/k8s_checks/otel_collector.py]- Chosen: One constant in the new module. The chart's fullname template is not in this repository, and the check must run offline.
- Rejected: Derive it from
k8s/argocd/apps/otel-collector.yaml. Refine must first confirm that the file holds the release name and the chart name. - Rejected: Read the live Service from the cluster. The acceptance criteria must pass or fail with no cluster access.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-11: partly.
Tool: open-policy-agent/conftest (https://github.com/open-policy-agent/conftest), NOASSERTION, last activity 2026-11-11, maintained.
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(k8s)scope of the title gives the scope.Telemetry is silently lost for rag-ingest, but the service still runs and no data is corrupted.Users lose observability for rag-ingest spans and metrics, which hinders debugging and SLO tracking.The fix is a one-line correction of the Service name or removal of the variable.Both set the OTLP endpoint for k8s workloads, but #1197 enables telemetry for roadmap-service with the correct name while the candidate fixes the wrong name in rag-ingest.devops-cli-service commentedon Nov 11, 2026
Status set to Ready at 5f75d25 (see proposed design in issue body).
devops-cli-service commentedon Nov 11, 2026
Alternatives check: partly
Reason: The searches and repository facts turned up Conftest (Open Policy Agent's policy-test harness) as the one open, maintained tool that can express this check: it parses and combines all manifests under
k8s/, so a Rego rule can gather the Service names in namespaceoteland fail any OTLP endpoint host that is not the Collector Service. It covers only the checking half of the issue — no tool fixes the wrong host in the WorkflowTemplate, and Conftest ships no OTLP or Service-reference rule, so the policy itself must still be written.Tool: open-policy-agent/conftest (https://github.com/open-policy-agent/conftest)
Covers:
k8s/into one document set, so one rule can compare an OTLP endpoint host with the Service names declared in the same treeOTEL_EXPORTER_OTLP*_ENDPOINTand host patterns, which is the shape the issue asks thek8srow to checkLacks:
OTEL_EXPORTER_OTLP_ENDPOINTink8s/devops/workflowtemplate-rag-ingest.yaml; the manifest edit stays manualtests/gate/k8s_checks/Tools considered:
Searches run:
Sources:
Checked on 2026-11-11. A person decides what this means for the item. The check changes no label and closes no issue.
fix(k8s): name the collector service that exists (#4528)
test(k8s): move the endpoint check test to the k8s mirror (#4528)
devops-cli-service commentedon Nov 15, 2026
Released in v0.159.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.159.0
devops-cli-service commentedon Nov 15, 2026
Live since 2026-11-15 23:51 UTC