Skip to content

bug: Missing values in ClusterFilter/multiline template #1580

@discostur

Description

@discostur

Describe the issue

If you install fluent-operator via helm chart you get a multiline clusterFilter like this:

apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterFilter
metadata:
  name: multiline
spec:
  filters:
  - multiline:
      emitterMemBufLimit: 120
      keyContent: log
      parser: go,python,java
  match: kube.*

However, the operator (or the CRD itself, note sure) seems to update the filter to the following:

spec:
  filters:
  - multiline:
      buffer: false
      emitterMemBufLimit: 120
      emitterType: memory
      flushMs: 2000
      keyContent: log
      parser: go,python,java

If you deploy the whole thing via argoCD you get a constant "out of sync" error because the added lines are not rendered by helm and are added after the deployment from inside the k8s cluster. To fix this we should just add the three missing lines in the fluent-operator helm chart:

      buffer: false
      emitterType: memory
      flushMs: 2000

Regards,
Kilian

To Reproduce

  • install fluent-operator with argoCD

Expected behavior

  • should be in sync

Your Environment

- Fluent Operator version: v3.3.0

How did you install fluent operator?

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions