Skip to content

Commit 4baecc9

Browse files
feat: allow for hostNetwork in otellogs.daemonset
1 parent d74ff3c commit 4baecc9

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.changelog/3940.feat.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
feat: allow for hostNetwork in otellogs.daemonset

deploy/helm/sumologic/templates/logs/collector/otelcol/daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ spec:
8484
{{- else }}
8585
priorityClassName: {{ include "sumologic.metadata.name.priorityclass" $ctx | quote }}
8686
{{- end }}
87+
{{- if $daemonset.hostNetwork }}
88+
hostNetwork: {{ $daemonset.hostNetwork }}
89+
{{- end }}
8790
containers:
8891
- args:
8992
- --config=/etc/otelcol/config.yaml

deploy/helm/sumologic/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,6 +2124,9 @@ otellogs:
21242124
## Add custom annotations to all otelcol daemonset pods
21252125
podAnnotations: {}
21262126

2127+
## Allow for hostNetwork to be used in the OTEL daemonsets
2128+
hostNetwork: false
2129+
21272130
resources:
21282131
limits:
21292132
memory: 1Gi

0 commit comments

Comments
 (0)