fluent / fluent-operator

Operate Fluent Bit and Fluentd in the Kubernetes way - Previously known as FluentBit Operator
Apache License 2.0
587 stars 250 forks source link

helm template output es support logstashPrefixKey #1118

Closed onecer closed 7 months ago

onecer commented 7 months ago

Is your feature request related to a problem? Please describe.

When I use helm to manage my fluent-operator. I set logstashPrefixKey in values.yml It's not gonna work.

The helm template is miss logstashPrefixKey column.

Describe the solution you'd like

add

{{- if .Values.fluentbit.output.es.logstashPrefix }}
    logstashPrefix: {{ .Values.fluentbit.output.es.logstashPrefix | default "ks-logstash-log" | quote }}
{{- end }}
{{- if .Values.fluentbit.output.es.logstashPrefixKey }}
    logstashPrefixKey: {{ .Values.fluentbit.output.es.logstashPrefixKey | default "ks-logstash-log-key" | quote }}
{{- end }}

replace

logstashPrefix: {{ .Values.fluentbit.output.es.logstashPrefix | default "ks-logstash-log" | quote }}

Additional context

No response