Skip to content

Commit

Permalink
adding templates for podlabels and additional environments into log r…
Browse files Browse the repository at this point in the history
…outer daemonset.yaml

Signed-off-by: RadOctocode <[email protected]>
  • Loading branch information
RadOctocode committed Mar 12, 2024
1 parent 20e6130 commit 4395f3d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/log-router/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions charts/log-router/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4395f3d

Please sign in to comment.