Skip to content

Commit 4ce99c5

Browse files
authored
Merge pull request #1645 from smallc2009/feature/optimize-helm-chart
make tls config in elastic more clearer
2 parents 0c01b0a + 5222cc0 commit 4ce99c5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

charts/fluent-operator/templates/fluentbit-output-elasticsearch.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ spec:
4141
traceError: {{ .Values.fluentbit.output.es.traceError | default false }}
4242
generateID: true
4343
timeKey: "@timestamp"
44-
{{- if .Values.fluentbit.output.es.enableTLS }}
44+
{{- if and .Values.fluentbit.output.es.tls .Values.fluentbit.output.es.tls.enable }}
4545
tls:
46-
{{- toYaml .Values.fluentbit.output.es.tls | nindent 6 }}
46+
{{- omit .Values.fluentbit.output.es.tls "enable" | toYaml | nindent 6 }}
4747
{{- end }}
4848
{{- end }}
4949
{{- end }}

charts/fluent-operator/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ fluentbit:
284284
# httpPassword:
285285
# logstashFormat: true
286286
# replaceDots: false
287-
# enableTLS: false
288287
# writeOperation: upsert
289288
# tls:
289+
# enable: false
290290
# verify: On
291291
# debug: 1
292292
# caFile: "<Absolute path to CA certificate file>"

0 commit comments

Comments
 (0)