From 79b97c7c55c34abaac4840ea76aa154f00637f03 Mon Sep 17 00:00:00 2001 From: "shawn.mulford" <48554759+hsdp-smulford@users.noreply.github.com> Date: Tue, 7 Apr 2026 12:47:02 -0400 Subject: [PATCH] feat(helm): add namespaceOverride support to FluentBit chart Adds fluentbit.namespaceOverride value so users can deploy FluentBit resources into a namespace different from .Release.Namespace. Fixes #1918 Signed-off-by: shawn.mulford <48554759+hsdp-smulford@users.noreply.github.com> --- charts/fluent-operator/templates/fluentbit-fluentBit.yaml | 2 +- charts/fluent-operator/values.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/fluent-operator/templates/fluentbit-fluentBit.yaml b/charts/fluent-operator/templates/fluentbit-fluentBit.yaml index 051f2ff7e..0e35937df 100644 --- a/charts/fluent-operator/templates/fluentbit-fluentBit.yaml +++ b/charts/fluent-operator/templates/fluentbit-fluentBit.yaml @@ -4,7 +4,7 @@ apiVersion: fluentbit.fluent.io/v1alpha2 kind: FluentBit metadata: name: fluent-bit - namespace: {{ .Release.Namespace | quote }} + namespace: {{ default .Release.Namespace .Values.fluentbit.namespaceOverride | quote }} labels: app.kubernetes.io/name: fluent-bit spec: diff --git a/charts/fluent-operator/values.yaml b/charts/fluent-operator/values.yaml index 9983563e3..d57448468 100644 --- a/charts/fluent-operator/values.yaml +++ b/charts/fluent-operator/values.yaml @@ -113,6 +113,8 @@ operator: fluentbit: # -- Enable Fluent Bit deployment enable: true + # -- Override the namespace for FluentBit resources; defaults to .Release.Namespace + namespaceOverride: "" serviceMonitor: # -- Enable Prometheus ServiceMonitor for Fluent Bit enable: false