diff --git a/config/helm/aws-node-termination-handler/templates/daemonset.linux.yaml b/config/helm/aws-node-termination-handler/templates/daemonset.linux.yaml index 893c3b80..1e250e70 100644 --- a/config/helm/aws-node-termination-handler/templates/daemonset.linux.yaml +++ b/config/helm/aws-node-termination-handler/templates/daemonset.linux.yaml @@ -46,9 +46,9 @@ spec: {{- end }} hostNetwork: {{ .Values.useHostNetwork }} dnsPolicy: {{ default .Values.linuxDnsPolicy .Values.dnsPolicy }} - {{- if .Values.dnsConfig }} + {{- with .Values.dnsConfig }} dnsConfig: - {{- toYaml . | nindent 10 }} + {{- toYaml . | nindent 8 }} {{- end }} containers: - name: aws-node-termination-handler diff --git a/config/helm/aws-node-termination-handler/templates/daemonset.windows.yaml b/config/helm/aws-node-termination-handler/templates/daemonset.windows.yaml index 815b86f9..f4e2935e 100644 --- a/config/helm/aws-node-termination-handler/templates/daemonset.windows.yaml +++ b/config/helm/aws-node-termination-handler/templates/daemonset.windows.yaml @@ -46,9 +46,9 @@ spec: {{- end }} hostNetwork: false dnsPolicy: {{ default .Values.windowsDnsPolicy .Values.dnsPolicy }} - {{- if .Values.dnsConfig }} + {{- with .Values.dnsConfig }} dnsConfig: - {{- toYaml . | nindent 10 }} + {{- toYaml . | nindent 8 }} {{- end }} containers: - name: aws-node-termination-handler diff --git a/config/helm/aws-node-termination-handler/templates/deployment.yaml b/config/helm/aws-node-termination-handler/templates/deployment.yaml index 76ec1052..0fdd2961 100644 --- a/config/helm/aws-node-termination-handler/templates/deployment.yaml +++ b/config/helm/aws-node-termination-handler/templates/deployment.yaml @@ -43,9 +43,9 @@ spec: {{- with .Values.terminationGracePeriodSeconds }} terminationGracePeriodSeconds: {{ . }} {{- end }} - {{- if .Values.dnsConfig }} + {{- with .Values.dnsConfig }} dnsConfig: - {{- toYaml . | nindent 10 }} + {{- toYaml . | nindent 8 }} {{- end }} containers: - name: aws-node-termination-handler