feat(otel-collector): render OTel Collector from LogCollector.spec.otelCollector#4979
Draft
tianfeng92 wants to merge 1 commit into
Draft
feat(otel-collector): render OTel Collector from LogCollector.spec.otelCollector#4979tianfeng92 wants to merge 1 commit into
tianfeng92 wants to merge 1 commit into
Conversation
tianfeng92
marked this pull request as draft
June 29, 2026 19:52
tianfeng92
force-pushed
the
PMREQ-822-otel-collector
branch
from
June 30, 2026 23:37
69eaaa5 to
48c6ba9
Compare
tianfeng92
force-pushed
the
PMREQ-822-otel-collector
branch
from
July 8, 2026 21:50
5585581 to
f084ce5
Compare
tianfeng92
force-pushed
the
PMREQ-822-otel-collector
branch
2 times, most recently
from
July 17, 2026 20:23
d677acf to
210d27f
Compare
| Action: v3.Allow, | ||
| Protocol: &networkpolicy.TCPProtocol, | ||
| Destination: v3.EntityRule{ | ||
| Ports: networkpolicy.Ports(uint16(p)), |
tianfeng92
force-pushed
the
PMREQ-822-otel-collector
branch
3 times, most recently
from
July 17, 2026 22:05
ea3c7e6 to
0eb2e6b
Compare
…elCollector Add an opt-in OTel Collector managed by a new log-collector-otel controller, configured via a new otelCollector section on the LogCollector CR: - StatefulSet (calico-system, controlPlaneReplicas, mono-image otelcol) with health probes, self-monitoring metrics on 8888, and CR overrides - OTLP/HTTP receiver with mTLS (Tigera CA + operator-issued keypair) fed by a fluent-bit opentelemetry output rendered when the section is set - transform processor classifies log records (audit/dns/flows) into service.name via body-field probes - optional metrics pipeline federates from tigera-prometheus through its authn-proxy (ServiceAccount token + services/proxy RBAC), inheriting everything the existing ServiceMonitors scrape - customer exporters (otlp/otlphttp) fan out from the CR; the rendered NetworkPolicy derives per-exporter egress ports from endpoint URLs Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
tianfeng92
force-pushed
the
PMREQ-822-otel-collector
branch
from
July 17, 2026 22:06
0eb2e6b to
722ff23
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OpenTelemetryCollectorCRD with support for logs (OTLP receiver) and metrics (Prometheus receiver) pipelinesLogCollectortypes to carry OTel-related fields for fluent-bit integrationCombinedCalicoImage) consistent with upstream refactorChanges
api/v1/otelcollector_types.go,api/v1/logcollector_types.go,zz_generated.deepcopy.gopkg/controller/otelcollector/controller.go,internal/controller/pkg/render/otelcollector/component.gopkg/common/validation/otelcollector/validation.gopkg/controller/logcollector/logcollector_controller.gopkg/render/otelcollector/component_test.go,pkg/controller/otelcollector/otelcollector_controller_test.gopkg/imports/crds/operator/Test plan
make ut UT_DIR=./pkg/render/otelcollectormake ut UT_DIR=./pkg/controller/otelcollectormake ci)🤖 Generated with Claude Code