Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add parserSelector to clusterFluentBitConfig chart templates #956

Merged
merged 1 commit into from Oct 13, 2023

Conversation

JoeDerby
Copy link
Contributor

What this PR does / why we need it:

Add parserSelector for helm chart ClusterFluentBitConfig templates, allowing this config to use custom Parser resources

e.g.

{{- if .Values.Kubernetes -}}
{{- if .Values.fluentbit.enable -}}
apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterFluentBitConfig
metadata:
  name: fluent-bit-config
  labels:
    app.kubernetes.io/name: fluent-bit
spec:
  service:
    parsersFile: parsers.conf
    httpServer: true
{{- if .Values.fluentbit.service.storage }}
    storage:
{{ toYaml .Values.fluentbit.service.storage | indent 6 }}
{{- end }}
  inputSelector:
    matchLabels:
      fluentbit.fluent.io/enabled: "true"
  filterSelector:
    matchLabels:
      fluentbit.fluent.io/enabled: "true"
  outputSelector:
    matchLabels:
      fluentbit.fluent.io/enabled: "true"
{{- end }}
{{- end }}

Which issue(s) this PR fixes:

Fixes #955

Does this PR introduced a user-facing change?

None

Additional documentation, usage docs, etc.:


Signed-off-by: Derbyj <j.derby@elsevier.com>
@benjaminhuo benjaminhuo merged commit c62d73a into fluent:master Oct 13, 2023
2 checks passed
@benjaminhuo
Copy link
Member

@JoeDerby Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: ClusterFluentBitConfig is missing a parserSelector
2 participants