fluent / fluent-operator

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

bug: assignment to entry in nil map when --watch-namespaces flag is provided #1333

Closed alexandrevilain closed 3 weeks ago

alexandrevilain commented 3 weeks ago

Describe the issue

When providing the --watch-namespaces the operator fails to boot with the following error:

panic: assignment to entry in nil map

goroutine 1 [running]:
main.main()
    /workspace/main.go:109 +0x15e8

To Reproduce

Start the operator with the --watch-namespaces flag set.

Expected behavior

It should not panic

Your Environment

- Fluent Operator version: 3.1.0
- Container Runtime:
- Operating system:
- Kernel version:

How did you install fluent operator?

Helm chart

Additional context

No response