Skip to content

Commit 6a192ab

Browse files
author
Anahera Roestenburg
committed
Adjust tests to be more realistic, fix indentation
fix: try fix newline issue
1 parent 3080340 commit 6a192ab

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ spec:
140140
- name: metrics
141141
containerPort: 8888
142142
protocol: TCP
143-
{{- if $daemonset.extraPorts }}
144-
{{ toYaml $daemonset.extraPorts | nindent 8 }}
145-
{{- end }}
143+
{{- if $daemonset.extraPorts }}
144+
{{- toYaml $daemonset.extraPorts | nindent 8 }}
145+
{{- end }}
146146
initContainers: # ensure the host path is owned by the otel user group
147147
- name: changeowner
148148
# yamllint disable-line rule:line-length

tests/helm/testdata/goldenfile/logs_otc_daemonset/complex.input.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ otellogs:
9696
readOnly: true
9797

9898
extraPorts:
99-
- containerPort: 3000
100-
hostPort: 3001
101-
- containerPort: 3002
102-
protocol: UDP
99+
- name: otlp-http
100+
containerPort: 4318
101+
protocol: TCP
102+
hostPort: 4318
103+
- name: statsd
104+
containerPort: 8125
105+
hostPort: 8125
106+
protocol: UDP

tests/helm/testdata/goldenfile/logs_otc_daemonset/complex.output.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,13 @@ spec:
114114
- name: metrics
115115
containerPort: 8888
116116
protocol: TCP
117-
118-
- containerPort: 3000
119-
hostPort: 3001
120-
- containerPort: 3002
117+
- name: otlp-http
118+
containerPort: 4318
119+
protocol: TCP
120+
hostPort: 4318
121+
- name: statsd
122+
containerPort: 8125
123+
hostPort: 8125
121124
protocol: UDP
122125
initContainers: # ensure the host path is owned by the otel user group
123126
- name: changeowner

0 commit comments

Comments
 (0)