Skip to content

[clusterobservability] fix config for bundled collectors#5080

Open
jinja2 wants to merge 3 commits into
open-telemetry:mainfrom
jinja2:clustobs-runnable
Open

[clusterobservability] fix config for bundled collectors#5080
jinja2 wants to merge 3 commits into
open-telemetry:mainfrom
jinja2:clustobs-runnable

Conversation

@jinja2
Copy link
Copy Markdown
Contributor

@jinja2 jinja2 commented May 13, 2026

Description: Fixes for the bundled agent and cluster collectors generated from a ClusterObservability CR start cleanly on stock k8s.

  • Rewrite getCollectorImage to swap any opentelemetry-collector image for its -contrib counterpart (bundled configs use contrib-only components; main only special-cased the :0.0.0 dev fallback).
  • Inject K8S_NODE_NAME on the agent pod via the downward API so the bundled kubeletstats receiver's https://${env:K8S_NODE_NAME}:10250 endpoint resolves.
  • Move distro detection in the manifests builder to the shared config.DistroProvider, and extract agent volumes/mounts into helper functions gated on it. No user-visible behavior change.
  • checkClusterCollectorStatus now reads the StatefulSet workload, so the CR no longer stays in Pending even when the cluster collector is fully healthy. The CR was update to use STS in feat(clusterobservability): enable TargetAllocator support for cluster collectors #5139

Link to tracking Issue(s):

Testing:

  • New make e2e-clusterobservability chainsaw target
  • make prepare-e2e-clusterobservability runs add-rbac-permissions-to-operator (opt-in kustomize patches) and bakes in --feature-gates=+operator.clusterobservability for the duration of the e2e job.
  • Reusable e2e workflow gets the new group, experimental: true with matching continue-on-error, so failures don't block other operator e2e jobs.
  • Kind 1.25 / 1.35 enable serverTLSBootstrap; start-kind approves the kubelet-serving CSRs so the kubeletstats receiver can verify the kubelet against the cluster CA.
  • New unit tests in clusterobservability_test.go cover the image rewrite and distro-gated volumes/mounts.

@jinja2 jinja2 changed the title Fixes configuration for bundled collectors and e2e test for ClusterOb… [clusterobservability] fix config for bundled collectors May 13, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 13, 2026

E2E Test Results

 40 files  273 suites   2h 24m 20s ⏱️
116 tests 115 ✅ 1 💤 0 ❌
295 runs  293 ✅ 2 💤 0 ❌

Results for commit 92fc794.

♻️ This comment has been updated with latest results.

@jinja2 jinja2 force-pushed the clustobs-runnable branch 7 times, most recently from ad20221 to 6be7270 Compare May 14, 2026 18:10
@jinja2 jinja2 force-pushed the clustobs-runnable branch 3 times, most recently from dade0ee to d5ccd0e Compare May 29, 2026 00:39
…servability

Follow-ups to the initial ClusterObservability framework so the
generated agent and cluster collectors come up cleanly on stock
distributions, plus a smoke e2e that exercises the pipelines end-to-end.
@jinja2 jinja2 force-pushed the clustobs-runnable branch from d5ccd0e to 92fc794 Compare May 29, 2026 01:00
@jinja2 jinja2 marked this pull request as ready for review May 29, 2026 01:35
@jinja2 jinja2 requested a review from a team as a code owner May 29, 2026 01:35
@jinja2 jinja2 requested review from pavolloffay and swiatekm May 29, 2026 01:35
@swiatekm swiatekm requested a review from frzifus May 30, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant