Skip to content

Add support for setting the OpenTelemetryCollector hostPID field #4214

@olandr

Description

@olandr

Component(s)

collector

Is your feature request related to a problem? Please describe.

I have a situation where I want to run an openTelemetry-collector that accesses the audit-daemon (i.e. host namespace). It is connected to a feature request here open-telemetry/opentelemetry-collector-contrib#40836.

Describe the solution you'd like

The issue seems to be that I am not allowed to set spec.hostPID (boolean). Because when instantiating an OpenTelemetryCollector as DaemonSet manually (with spec.hostPID: true) I am able to run it as expected.

Proposed solution:

  • allow for a user to set the spec.hostPID
  • modify OpenTelemetryCollector CRD to allow setting spec.hostPID

Describe alternatives you've considered

I have not found another way that would allow me to run a privileged openTelemetry-collector as a DaemonSet.

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions