Skip to content

feat(otellogs): add hostNetwork and dnsPolicy configuration#3993

Open
azamorano wants to merge 2 commits intoSumoLogic:mainfrom
azamorano:hostnetwork-dnspolicy-configurable
Open

feat(otellogs): add hostNetwork and dnsPolicy configuration#3993
azamorano wants to merge 2 commits intoSumoLogic:mainfrom
azamorano:hostnetwork-dnspolicy-configurable

Conversation

@azamorano
Copy link
Copy Markdown

Allows for configurable hostNetwork and dnsPolicy. Related with #3940

Checklist

  • Changelog updated or skip changelog label added
  • Template tests added for new features

@rnishtala-sumo
Copy link
Copy Markdown
Contributor

rnishtala-sumo commented Sep 19, 2025

@azamorano thank you for your contribution! Recommend that we also add an Integration test for this change to validate that the pods in the logs daemonset startup without issues. This should also test whether a pod would need associated clusterRole changes to run on this mode and that the logs are being received by sumologic.

@echlebek echlebek changed the title Configurable hostNetwork and dnsPolicy for otellogs daemonset feat(otellogs): add hostNetwork and dnsPolicy configuration Sep 29, 2025
Copy link
Copy Markdown
Contributor

@echlebek echlebek left a comment

Choose a reason for hiding this comment

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

It appears that this change has lead to one of the integration tests breaking

@azamorano
Copy link
Copy Markdown
Author

@echlebek sorry for the late response. I did not have much time to take a look to this.
I'm failing to understand what I might have broken with my change in the current integration tests.
I'm trying to run it locally and it works for me. Please find attached the snippet with the output of my test.
test.log
Could it be something transient?

@azamorano
Copy link
Copy Markdown
Author

Hi @echlebek did you have a chance to take a look to my comment above?

Copy link
Copy Markdown
Contributor

@rnishtala-sumo rnishtala-sumo left a comment

Choose a reason for hiding this comment

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

Added a comment about the template tests. I'd also recommend creating an issue or updating the description for this PR, to help understand the motivation to enable hostNetwork.

require.Equal(t, "50%", logsCollectorDaemonset.Spec.UpdateStrategy.RollingUpdate.MaxUnavailable)
}

func TestCollectorDaemonsetHostNetwork(t *testing.T) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could we plug into the existing template tests? I think we'll need to define the input and output files. See - https://github.com/SumoLogic/sumologic-kubernetes-collection/blob/main/tests/helm/README.md

@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open for 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants