From d33b950431d7d31172d533581b5cc9fd3a3744d9 Mon Sep 17 00:00:00 2001 From: btalakola <102497586+btalakola@users.noreply.github.com> Date: Thu, 24 Oct 2024 08:33:32 +0530 Subject: [PATCH] Adding namespaceClusterFbCfg to ClusterFluentBitConfig custom resource. (#1382) * Deployed fluent-bit configmap and secret in namespaceClusterFbCfg namespace. If it is not defined, it is in the namespace of the fluent-operator. Signed-off-by: Bharathi Talakola Signed-off-by: btalakola * Deployed fluent-bit configmap and secret in namespaceClusterFbCfg namespace. If it is not defined, it is in the namespace of the fluent-operator. Signed-off-by: Bharathi Talakola Signed-off-by: btalakola --------- Signed-off-by: btalakola --- .../templates/fluentbitconfig-fluentBitConfig.yaml | 3 +++ charts/fluent-operator/values.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/charts/fluent-operator/templates/fluentbitconfig-fluentBitConfig.yaml b/charts/fluent-operator/templates/fluentbitconfig-fluentBitConfig.yaml index 0695cdba7..7eb2a0f3a 100644 --- a/charts/fluent-operator/templates/fluentbitconfig-fluentBitConfig.yaml +++ b/charts/fluent-operator/templates/fluentbitconfig-fluentBitConfig.yaml @@ -7,6 +7,9 @@ metadata: labels: app.kubernetes.io/name: fluent-bit spec: + {{- if .Values.fluentbit.namespaceClusterFbCfg }} + namespace: {{ .Values.fluentbit.namespaceClusterFbCfg }} + {{- end }} service: parsersFiles: - /fluent-bit/etc/parsers.conf diff --git a/charts/fluent-operator/values.yaml b/charts/fluent-operator/values.yaml index 7e05ae842..7be9eb0ca 100644 --- a/charts/fluent-operator/values.yaml +++ b/charts/fluent-operator/values.yaml @@ -388,6 +388,9 @@ fluentbit: javaMultiline: # use in filter for parser generic springboot multiline log format enable: false + #Using namespaceClusterFbCfg, deploy fluent-bit configmap and secret in this namespace. + #If it is not defined, it is in the namespace of the fluent-operator. + namespaceClusterFbCfg: "" fluentd: # Installs a sub chart carrying the CRDs for the fluentd controller. The sub chart is enabled by default.