From e5e8af303bfa713f03c70c5bdda6ce5025fb69c6 Mon Sep 17 00:00:00 2001 From: Vicken Simonian Date: Thu, 9 Dec 2021 01:22:07 -0800 Subject: [PATCH] Support setting extra keys in the [SERVICE] block Fixes #510 Fixes #559 --- stable/aws-for-fluent-bit/templates/configmap.yaml | 4 ++++ stable/aws-for-fluent-bit/values.yaml | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/stable/aws-for-fluent-bit/templates/configmap.yaml b/stable/aws-for-fluent-bit/templates/configmap.yaml index ab0148da6..0ece76062 100755 --- a/stable/aws-for-fluent-bit/templates/configmap.yaml +++ b/stable/aws-for-fluent-bit/templates/configmap.yaml @@ -15,6 +15,10 @@ data: Parsers_File /fluent-bit/etc/parser_extra.conf {{- end }} +{{- if .Values.service.extraKeys }} +{{ .Values.service.extraKeys | indent 8}} +{{- end }} + [INPUT] Name tail Tag {{ .Values.input.tag }} diff --git a/stable/aws-for-fluent-bit/values.yaml b/stable/aws-for-fluent-bit/values.yaml index 9df6671ca..95514100d 100644 --- a/stable/aws-for-fluent-bit/values.yaml +++ b/stable/aws-for-fluent-bit/values.yaml @@ -14,6 +14,8 @@ fullnameOverride: "" service: parsersFiles: - /fluent-bit/parsers/parsers.conf + # extraKeys: | + # HTTP_Server On # extraParsers: | # [PARSER] # Name logfmt @@ -139,7 +141,7 @@ affinity: {} annotations: {} # iam.amazonaws.com/role: arn:aws:iam::123456789012:role/role-for-fluent-bit - + env: [] ## To add extra environment variables to the pods, add as below # env: @@ -157,7 +159,7 @@ env: [] # valueFrom: # fieldRef: # fieldPath: spec.nodeName - + volumes: - name: varlog