From 41216e0c4727ead050a5890c2dfcc0842fa05d58 Mon Sep 17 00:00:00 2001 From: RadOctocode Date: Thu, 29 Feb 2024 13:39:33 -0500 Subject: [PATCH] adding templates for podlabels and additional environments into log router daemonset.yaml Signed-off-by: RadOctocode --- charts/log-router/templates/daemonset.yaml | 6 ++++++ charts/log-router/values.yaml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/charts/log-router/templates/daemonset.yaml b/charts/log-router/templates/daemonset.yaml index a3a9e5e..d33e2ae 100755 --- a/charts/log-router/templates/daemonset.yaml +++ b/charts/log-router/templates/daemonset.yaml @@ -22,6 +22,9 @@ spec: labels: app: {{ template "fluentd-router.name" . }} release: {{ .Release.Name }} + {{- if .Values.podLabels}} + {{- toYaml .Values.podLabels | nindent 8}} + {{- end}} annotations: checksum/fluentd-extraenv: {{ toYaml .Values.fluentd.extraEnv | sha256sum }} checksum/reloader-extraenv: {{ toYaml .Values.reloader.extraEnv | sha256sum }} @@ -56,6 +59,9 @@ spec: name: {{ template "fluentd-router.fullname" $root }} key: fluentd.{{ $key }} {{- end }} + {{- if .Values.fluentd.extraEnv}} + {{- toYaml .Values.fluentd.extraEnv| nindent 10}} + {{- end}} imagePullPolicy: {{ .Values.image.pullPolicy }} {{- if .Values.prometheusEnabled }} ports: diff --git a/charts/log-router/values.yaml b/charts/log-router/values.yaml index d67e8ed..98c1b67 100755 --- a/charts/log-router/values.yaml +++ b/charts/log-router/values.yaml @@ -5,6 +5,8 @@ # This is a YAML-formatted file. # Declare variables to be passed into your templates. +podLabels: [] + rbac: # rbac.create -- If `true`, create and use RBAC resources. create: false