From de2787ce3d3974c08c5bf6ef66c379da014fe741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Wed, 6 Apr 2022 13:34:41 +0200 Subject: [PATCH] Add support for dnsPolicy to the Helm chart --- charts/kubelet-csr-approver/Chart.yaml | 4 ++-- charts/kubelet-csr-approver/templates/deployment.yaml | 3 +++ charts/kubelet-csr-approver/values.yaml | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/charts/kubelet-csr-approver/Chart.yaml b/charts/kubelet-csr-approver/Chart.yaml index 4a8dfe7..1d2aa36 100644 --- a/charts/kubelet-csr-approver/Chart.yaml +++ b/charts/kubelet-csr-approver/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: kubelet-csr-approver description: Kubelet CSR Approver type: application -version: v0.2.0 -appVersion: v0.2.0 +version: v0.2.1 +appVersion: v0.2.1 maintainers: - name: clementnuss - name: treydock diff --git a/charts/kubelet-csr-approver/templates/deployment.yaml b/charts/kubelet-csr-approver/templates/deployment.yaml index e4b8029..e817cc4 100644 --- a/charts/kubelet-csr-approver/templates/deployment.yaml +++ b/charts/kubelet-csr-approver/templates/deployment.yaml @@ -18,6 +18,9 @@ spec: labels: {{- include "kubelet-csr-approver.selectorLabels" . | nindent 8 }} spec: + {{- if .Values.dnsPolicy }} + dnsPolicy: {{ .Values.dnsPolicy | quote }} + {{- end }} {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} diff --git a/charts/kubelet-csr-approver/values.yaml b/charts/kubelet-csr-approver/values.yaml index 5c6432f..f9e45f7 100644 --- a/charts/kubelet-csr-approver/values.yaml +++ b/charts/kubelet-csr-approver/values.yaml @@ -77,3 +77,5 @@ rbac: env: [] # - name: FOO # value: bar + +dnsPolicy: ""