Skip to content

Conversation

olandr
Copy link

@olandr olandr commented Aug 13, 2025

Description:
At the moment it is not possible to set the spec.hostPID field for the collector (regardless of type). This change adds a featuregate operator.security.hostpid that allows a user to configure the spec.hostPID field for the collector.

Inspiration for the code follows from the functionality of the hostNetwork boolean field
Link to tracking Issue(s): 4214

Testing:

  • adds e2e tests for all types
  • adds unit tests for configuring the hostPID depending on featureflag activation.

Documentation:
Autogenerated docs from the type defs.


on-behalf-of: @SAP Simon Olander ([email protected])

@olandr olandr requested a review from a team as a code owner August 13, 2025 10:08
Copy link

linux-foundation-easycla bot commented Aug 13, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

olandr added 3 commits August 26, 2025 15:53
This adds the field `hostPID boolean` field to the different modes of the collector PodSpec template.
- adds hostPID to collector,
- adjusts daemonset, deplotment, statefulsets to allow setting hostPID

Inspiration for the code follows from the functionality of the `hostNetwork boolean` field

---------

on-behalf-of: @SAP Simon Olander ([email protected])
- adds unit and e2e tests
- adds .chloggen entry

---------

on-behalf-of: @SAP Simon Olander ([email protected])
---------

on-behalf-of: @SAP Simon Olander ([email protected])
@olandr olandr force-pushed the feat/allow-hostpid-support-otelcol branch from 4751e3d to a732ae0 Compare August 26, 2025 13:55
fields in v1beta1/common.go area for all component types. for now the hostPID support is only for the collector

---------

on-behalf-of: @SAP Simon Olander ([email protected])
Comment on lines -7 to +8
newName: docker.io/pavolloffay/opentelemetry-operator
newTag: dev-e6d96f00-1755261473
newName: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator
newTag: 0.131.0-36-ga732ae06
Copy link
Author

@olandr olandr Aug 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also the auto-gen overwriting stuff from #4287. Should this docker image be used or is the auto-gen correct? cc @pavolloffay?

newName: docker.io/pavolloffay/opentelemetry-operator
newTag: dev-e6d96f00-1755261473
newName: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator
newTag: 0.131.0-36-ga732ae06
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
newTag: 0.131.0-36-ga732ae06
newTag: 0.131

Oh I guess that should be correct.

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.

Add support for setting the OpenTelemetryCollector hostPID field
3 participants