Skip to content

Conversation

kurarrr
Copy link

@kurarrr kurarrr commented Aug 11, 2025

Description:

With the current implementation, GetDNSPolicy automatically determines the pod's dnsPolicy, preventing users from specifying custom DNS policies such as dnsPolicy: Default.
This PR adds a spec.dnsPolicy field to the OpenTelemetryCollector to allow users to specify the DNS policy for collector pods.
The spec.dnsPolicy field is optional, so it doesn't break existing behavior, though when specified, it takes precedence over the default DNS policy determination.

Link to tracking Issue(s):

Testing:

  • Unit tests for deployment / daemonset / statefulset with dnsPolicy specified
  • E2E tests:
    • Create a collector without dns policy specified
    • Create a collector with dns policy specified
    • Modify collector's dns policy
    • Delete collector's dns policy

Documentation:
Just generated

@kurarrr kurarrr requested a review from a team as a code owner August 11, 2025 14:29
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.

Support spec.dnsPolicy
1 participant