Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong marshal for OpenTelemetryCollector #3281

Closed
iblancasa opened this issue Sep 11, 2024 · 1 comment
Closed

Wrong marshal for OpenTelemetryCollector #3281

iblancasa opened this issue Sep 11, 2024 · 1 comment
Labels
bug Something isn't working needs triage

Comments

@iblancasa
Copy link
Contributor

iblancasa commented Sep 11, 2024

Component(s)

What happened?

Description

I'm working on something using the OpenTelemetry Collector API provided by this repository and I found some configuration fields were not marshaled properly.

So, for an OpenTelemetry Collector like this:

apiVersion: opentelemetry.io/v1beta1
kind: OpenTelemetryCollector
metadata:
  name: instance
  namespace: open-cluster-management-observability
spec:
  config:
    exporters:
      debug:
    processors:
    receivers:
      jaeger:
        protocols:
            grpc:
      otlp:
        protocols:
          grpc:
          http:
    service:
      pipelines:
        traces:
          exporters:
            - debug
          processors: []
          receivers:
            - otlp
            - jaeger
  mode: deployment

I can see the protocols field from the otlp receiver is dropped.

If we try directly in a script, it doesn't reproduce. But it can be reproduced by creating the resource first in Kubernetes, retrieving it, and doing the marshaling.

This seems to be expected from the changes introduced in #2444

@iblancasa
Copy link
Contributor Author

Closing since #3333 did a workaround for this. More details in #3286 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
1 participant