From 05be6d2cbcd8ca146ebf728959b541ff48d9383a Mon Sep 17 00:00:00 2001 From: Stavros Foteinopoulos Date: Thu, 10 Dec 2020 16:31:25 +0200 Subject: [PATCH] Apply suggestions from code review Thanks! Co-authored-by: Naseem Signed-off-by: Stavros Foteinopoulos --- charts/fluent-bit/templates/_pod.tpl | 4 +++- charts/fluent-bit/values.yaml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/charts/fluent-bit/templates/_pod.tpl b/charts/fluent-bit/templates/_pod.tpl index 62fbd8aa..bcd1be8e 100644 --- a/charts/fluent-bit/templates/_pod.tpl +++ b/charts/fluent-bit/templates/_pod.tpl @@ -9,8 +9,10 @@ priorityClassName: {{ .Values.priorityClassName }} serviceAccountName: {{ include "fluent-bit.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 2 }} +{{- with .Values.dnsConfig }} dnsConfig: - {{- toYaml .Values.podDnsConfig | nindent 2 }} + {{- toYaml . | nindent 2 }} +{{- end }} containers: - name: {{ .Chart.Name }} securityContext: diff --git a/charts/fluent-bit/values.yaml b/charts/fluent-bit/values.yaml index d97c70df..f7ec7557 100644 --- a/charts/fluent-bit/values.yaml +++ b/charts/fluent-bit/values.yaml @@ -29,7 +29,7 @@ podSecurityPolicy: podSecurityContext: {} # fsGroup: 2000 -podDnsConfig: {} +dnsConfig: {} # nameservers: # - 1.2.3.4 # searches: