Skip to content

feat(helm): add namespaceOverride support to FluentBit chart #1918

@hsdp-smulford

Description

@hsdp-smulford

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

When deploying the fluent-operator in a multi-tenant or shared cluster setup, there is no way to deploy FluentBit resources into a namespace other than .Release.Namespace. The namespace field in charts/fluent-operator/templates/fluentbit-fluentBit.yaml is hardcoded to {{ .Release.Namespace }}, forcing FluentBit to always land in the operator's own namespace.

Describe the solution you'd like

Add a fluentbit.namespaceOverride value to charts/fluent-operator/values.yaml that allows users to target a specific namespace for FluentBit resources, falling back to .Release.Namespace when unset.

values.yaml (~line 113):

fluentbit:
  namespaceOverride: ""  # Override the namespace for FluentBit resources; defaults to .Release.Namespace

templates/fluentbit-fluentBit.yaml (line 7):

namespace: {{ default .Release.Namespace .Values.fluentbit.namespaceOverride | quote }}

This follows the namespaceOverride convention already established in charts like kube-prometheus-stack and others in the Helm ecosystem.

Additional context

Relevant files:

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