Skip to content

Commit e94ce95

Browse files
fix the es httpUser & httpPassword (#1775)
* fix the es httpUser & httpPassword Signed-off-by: Chengwei Guo <[email protected]> * add example httpUser and httpPassword Signed-off-by: Chengwei Guo <[email protected]> * adjust format Signed-off-by: Chengwei Guo <[email protected]> * fix indentation Signed-off-by: Chengwei Guo <[email protected]> --------- Signed-off-by: Chengwei Guo <[email protected]> Co-authored-by: Marco Franssen <[email protected]>
1 parent a1fb042 commit e94ce95

File tree

2 files changed

+34
-25
lines changed

2 files changed

+34
-25
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ spec:
2424
index: {{ . | quote }}
2525
{{- end }}
2626
{{- with .Values.fluentbit.output.es.httpUser }}
27-
httpUser: {{ . | quote }}
27+
httpUser:
28+
{{- toYaml . | nindent 6 }}
2829
{{- end }}
2930
{{- with .Values.fluentbit.output.es.httpPassword }}
30-
httpPassword: {{ . | quote }}
31+
httpPassword:
32+
{{- toYaml . | nindent 6 }}
3133
{{- end }}
3234
logstashFormat: {{ .Values.fluentbit.output.es.logstashFormat | default true }}
3335
{{- with .Values.fluentbit.output.es.logstashPrefix }}

charts/fluent-operator/values.yaml

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -305,26 +305,33 @@ fluentbit:
305305
logstashPrefix: ks-logstash-log
306306
bufferSize: 20MB
307307
traceError: true
308-
# logstashPrefixKey: ks-logstash-log
309-
# suppressTypeName: "On"
310-
# path: ""
311-
# bufferSize: "4KB"
312-
# index: "fluent-bit"
313-
# httpUser:
314-
# httpPassword:
315-
# logstashFormat: true
316-
# replaceDots: false
317-
# writeOperation: upsert
318-
# tls:
319-
# enable: false
320-
# verify: On
321-
# debug: 1
322-
# caFile: "<Absolute path to CA certificate file>"
323-
# caPath: "<Absolute path to scan for certificate files>"
324-
# crtFile: "<Absolute path to private Key file>"
325-
# keyFile: "<Absolute path to private Key file>"
326-
# keyPassword:
327-
# vhost: "<Hostname to be used for TLS SNI extension>"
308+
# logstashPrefixKey: ks-logstash-log
309+
# suppressTypeName: "On"
310+
# path: ""
311+
# index: "fluent-bit"
312+
# httpUser:
313+
# valueFrom:
314+
# secretKeyRef:
315+
# key: value
316+
# name: husersecret
317+
# httpPassword:
318+
# valueFrom:
319+
# secretKeyRef:
320+
# key: value
321+
# name: hpasssecret
322+
# logstashFormat: true
323+
# replaceDots: false
324+
# writeOperation: upsert
325+
# tls:
326+
# enable: false
327+
# verify: On
328+
# debug: 1
329+
# caFile: "<Absolute path to CA certificate file>"
330+
# caPath: "<Absolute path to scan for certificate files>"
331+
# crtFile: "<Absolute path to private Key file>"
332+
# keyFile: "<Absolute path to private Key file>"
333+
# keyPassword:
334+
# vhost: "<Hostname to be used for TLS SNI extension>"
328335
kafka:
329336
enable: false
330337
logLevel: info
@@ -351,11 +358,11 @@ fluentbit:
351358
# See https://docs.fluentbit.io/manual/pipeline/outputs/loki
352359
loki:
353360
# Switch for generation of fluentbit loki ClusterOutput (and loki basic auth http user and pass secrets if required)
354-
enable: false # Bool
361+
enable: false # Bool
355362
retryLimit: "no_limits"
356363
logLevel: "info"
357-
host: 127.0.0.1 # String
358-
port: 3100 # Int
364+
host: 127.0.0.1 # String
365+
port: 3100 # Int
359366
# Either, give http{User,Password},tenantID string values specifying them directly
360367
httpUser: myuser
361368
httpPassword: mypass

0 commit comments

Comments
 (0)