Skip to content

Commit af76698

Browse files
hsdp-smulfordcw-Guo
authored andcommitted
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>
1 parent eab602e commit af76698

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

charts/fluent-operator/templates/fluentbit-fluentBit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: fluentbit.fluent.io/v1alpha2
44
kind: FluentBit
55
metadata:
66
name: fluent-bit
7-
namespace: {{ .Release.Namespace | quote }}
7+
namespace: {{ default .Release.Namespace .Values.fluentbit.namespaceOverride | quote }}
88
labels:
99
app.kubernetes.io/name: fluent-bit
1010
spec:

charts/fluent-operator/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ operator:
113113
fluentbit:
114114
# -- Enable Fluent Bit deployment
115115
enable: true
116+
# -- Override the namespace for FluentBit resources; defaults to .Release.Namespace
117+
namespaceOverride: ""
116118
serviceMonitor:
117119
# -- Enable Prometheus ServiceMonitor for Fluent Bit
118120
enable: false

0 commit comments

Comments
 (0)