From cf83b661d138fed59a11b7375d71ecf79d59f147 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Wed, 16 Apr 2025 00:28:40 +0800 Subject: [PATCH] fix: add missing labels to Fluent Bit resources for consistency Signed-off-by: zhenyus --- .../templates/authentication/fluentbit.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/fluentbit.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/fluentbit.yaml index b404793f..1c6c7e63 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/fluentbit.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/fluentbit.yaml @@ -4,6 +4,8 @@ kind: FluentBit metadata: name: {{ .Release.Name }}-log-collector namespace: {{ .Release.Namespace | quote }} + labels: + fluentbit.fluent.io/enabled: "true" spec: image: {{ .Values.fluentbit.image | quote }} imagePullPolicy: {{ .Values.fluentbit.imagePullPolicy | quote }} @@ -27,6 +29,7 @@ metadata: namespace: {{ .Release.Namespace | quote }} labels: app.kubernetes.io/name: {{ .Release.Name }}-log-collector + fluentbit.fluent.io/enabled: "true" spec: json: timeKey: {{ .Values.fluentbit.timeKey | quote }} @@ -39,6 +42,7 @@ metadata: namespace: {{ .Release.Namespace | quote }} labels: app.kubernetes.io/name: {{ .Release.Name }}-log-collector + fluentbit.fluent.io/enabled: "true" spec: match: "*" forward: @@ -50,6 +54,8 @@ kind: FluentBitConfig metadata: name: {{ .Release.Name }}-log-collector-config namespace: {{ .Release.Namespace | quote }} + labels: + fluentbit.fluent.io/enabled: "true" spec: inputSelector: matchLabels: @@ -65,6 +71,8 @@ apiVersion: fluentbit.fluent.io/v1alpha2 kind: ClusterInput metadata: name: {{ .Release.Name }}-log-collector-input + labels: + fluentbit.fluent.io/enabled: "true" spec: tail: path: {{ .Values.fluentbit.logPath | quote }}