Skip to content

Commit 24e491a

Browse files
author
Mark Stumpf
authored
add additional logs-enabled check when defining log volumes (#48)
1 parent e9b1117 commit 24e491a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

helm-charts/splunk-otel-collector/templates/daemonset.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ spec:
166166
{{- end }}
167167
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
168168
volumes:
169+
{{- if .Values.logsEnabled }}
169170
- name: varlog
170171
hostPath:
171172
path: {{ .Values.fluentd.config.containers.path }}
@@ -181,6 +182,7 @@ spec:
181182
- name: fluentd-configmap
182183
configMap:
183184
name: {{ template "splunk-otel-collector.fullname" . }}-fluentd
185+
{{- end}}
184186
{{- if .Values.otelAgent.enabled }}
185187
{{- if .Values.metricsEnabled }}
186188
- name: hostfs

0 commit comments

Comments
 (0)