From 34244ffb1de08a9b3a5aeedce0796c43dc14d60f Mon Sep 17 00:00:00 2001 From: googs1025 Date: Sat, 16 Nov 2024 19:23:05 +0800 Subject: [PATCH] fix: helm INSTALLATION FAILED --- chart/templates/serviceaccount.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chart/templates/serviceaccount.yaml b/chart/templates/serviceaccount.yaml index f2ca8070..5bc8b780 100644 --- a/chart/templates/serviceaccount.yaml +++ b/chart/templates/serviceaccount.yaml @@ -7,5 +7,7 @@ metadata: app.kubernetes.io/created-by: llmaz app.kubernetes.io/part-of: llmaz {{- include "chart.labels" . | nindent 4 }} + {{- if .Values.controllerManager.serviceAccount.annotations }} annotations: - {{- toYaml .Values.controllerManager.serviceAccount.annotations | nindent 4 }} \ No newline at end of file + {{- toYaml .Values.controllerManager.serviceAccount.annotations | nindent 4 }} + {{- end }} \ No newline at end of file