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

Not able to pass custom config to the opentelemetry-collector using "args" #2897

Closed
abvaidya opened this issue Apr 24, 2024 · 1 comment
Closed
Labels
bug Something isn't working needs triage

Comments

@abvaidya
Copy link

abvaidya commented Apr 24, 2024

Component(s)

collector

What happened?

Description

I am specifying a configmap which contains the collector config and would like to pass it to the collector.

Steps to Reproduce

apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
spec:
  mode: deployment
  image: collector-image
  configmaps:
    - name: mycm
      mountpath: mypath
  args:
    config: /var/conf/mypath/configmap-mycm/config.yaml

Expected Result

Collector is started with ( omitted other fields )

    spec:
      containers:
      - args:
        - --config=/var/conf/mypath/configmap-mycm/config.yaml

Actual Result

( omitted other fields )

    spec:
      containers:
      - args:
        - --config=/conf/collector.yaml

Am I missing something or configuring the args in incorrect way?

I do see the config from confimap mounted correctly at the above location.

Thank you for viewing this.

Kubernetes Version

1.29.0

Operator version

v0.95.0

Collector version

v0.97.0

Environment information

Environment

EKS

Log output

No response

Additional context

No response

@abvaidya abvaidya added bug Something isn't working needs triage labels Apr 24, 2024
@pavolloffay
Copy link
Member

This is expected behavior.

This is dup of #2871

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
Development

No branches or pull requests

2 participants