From 4df22ab769c53f6a5a118f4e3cb20917e6f6a00f Mon Sep 17 00:00:00 2001 From: nielsc Date: Mon, 8 Jul 2024 17:48:39 +0200 Subject: [PATCH] Add support for image pull secrets in the helm chart. --- charts/aks-node-termination-handler/Chart.yaml | 2 +- .../aks-node-termination-handler/templates/daemonset.yaml | 6 ++++++ charts/aks-node-termination-handler/values.yaml | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/aks-node-termination-handler/Chart.yaml b/charts/aks-node-termination-handler/Chart.yaml index ed55e29..bb97262 100644 --- a/charts/aks-node-termination-handler/Chart.yaml +++ b/charts/aks-node-termination-handler/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 icon: https://helm.sh/img/helm.svg name: aks-node-termination-handler -version: 1.1.5 +version: 1.1.6 description: Gracefully handle Azure Virtual Machines shutdown within Kubernetes maintainers: - name: maksim-paskal # Maksim Paskal diff --git a/charts/aks-node-termination-handler/templates/daemonset.yaml b/charts/aks-node-termination-handler/templates/daemonset.yaml index aa3adbd..a6ea8eb 100644 --- a/charts/aks-node-termination-handler/templates/daemonset.yaml +++ b/charts/aks-node-termination-handler/templates/daemonset.yaml @@ -48,6 +48,12 @@ spec: {{ if .Values.extraVolumes }} {{ toYaml .Values.extraVolumes | indent 6 }} {{ end }} + {{- if .Values.imagePullSecrets }} + imagePullSecrets: + {{- range .Values.imagePullSecrets }} + - name: {{ . }} + {{- end }} + {{- end }} containers: - name: aks-node-termination-handler resources: diff --git a/charts/aks-node-termination-handler/values.yaml b/charts/aks-node-termination-handler/values.yaml index 3260c0c..4b0a298 100644 --- a/charts/aks-node-termination-handler/values.yaml +++ b/charts/aks-node-termination-handler/values.yaml @@ -1,5 +1,6 @@ image: paskalmaksim/aks-node-termination-handler:latest imagePullPolicy: Always +imagePullSecrets: [] args: [] env: []