From a7d8e6982003d5448218b2652c2aabc1e35c7623 Mon Sep 17 00:00:00 2001 From: Aditya Purandare Date: Wed, 11 Oct 2023 03:42:22 +0530 Subject: [PATCH] helm: ability to specify `dnsConfig` (#1260) * Update values.yaml * Update deployment.yaml * Update cronjob.yaml * fix indentation issue in helm chart --- charts/descheduler/templates/cronjob.yaml | 4 ++++ charts/descheduler/templates/deployment.yaml | 4 ++++ charts/descheduler/values.yaml | 2 ++ 3 files changed, 10 insertions(+) diff --git a/charts/descheduler/templates/cronjob.yaml b/charts/descheduler/templates/cronjob.yaml index a2d488bfc..6a7a6b662 100644 --- a/charts/descheduler/templates/cronjob.yaml +++ b/charts/descheduler/templates/cronjob.yaml @@ -51,6 +51,10 @@ spec: affinity: {{- toYaml . | nindent 12 }} {{- end }} + {{- if .Values.dnsConfig }} + dnsConfig: + {{- .Values.dnsConfig | toYaml | nindent 12 }} + {{- end }} {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 12 }} diff --git a/charts/descheduler/templates/deployment.yaml b/charts/descheduler/templates/deployment.yaml index 89a33ee18..a00ab7bc6 100644 --- a/charts/descheduler/templates/deployment.yaml +++ b/charts/descheduler/templates/deployment.yaml @@ -31,6 +31,10 @@ spec: {{- .Values.podAnnotations | toYaml | nindent 8 }} {{- end }} spec: + {{- if .Values.dnsConfig }} + dnsConfig: + {{- .Values.dnsConfig | toYaml | nindent 8 }} + {{- end }} {{- if .Values.priorityClassName }} priorityClassName: {{ .Values.priorityClassName }} {{- end }} diff --git a/charts/descheduler/values.yaml b/charts/descheduler/values.yaml index abc6f5053..0500c3462 100644 --- a/charts/descheduler/values.yaml +++ b/charts/descheduler/values.yaml @@ -172,6 +172,8 @@ podAnnotations: {} podLabels: {} +dnsConfig: {} + livenessProbe: failureThreshold: 3 httpGet: