From 38db93e67f74ca56dd84da64170be7521cab06db Mon Sep 17 00:00:00 2001 From: Ido Heyvi Date: Sun, 24 Nov 2024 10:35:33 +0200 Subject: [PATCH] chore: Fixing pre-delete-webhook template for missing imagePullSecrets Signed-off-by: Ido Heyvi --- .../templates/pre-delete-webooks.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deployment/network-operator/charts/sriov-network-operator/templates/pre-delete-webooks.yaml b/deployment/network-operator/charts/sriov-network-operator/templates/pre-delete-webooks.yaml index 8fc7fa06..bbf52738 100644 --- a/deployment/network-operator/charts/sriov-network-operator/templates/pre-delete-webooks.yaml +++ b/deployment/network-operator/charts/sriov-network-operator/templates/pre-delete-webooks.yaml @@ -14,6 +14,12 @@ spec: template: spec: serviceAccountName: {{ include "sriov-network-operator.fullname" . }} + {{- if .Values.imagePullSecrets }} + imagePullSecrets: + {{- range .Values.imagePullSecrets }} + - name: {{ . }} + {{- end }} + {{- end }} containers: - name: cleanup image: {{ .Values.images.operator }}