From daa1d9698d1bb03aa8a54e836948034cc4706901 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Mon, 4 Nov 2024 02:06:24 -0800 Subject: [PATCH] Update installer precheck config (#558) Signed-off-by: Tamal Saha Signed-off-by: Rokibul Hasan Co-authored-by: Rokibul Hasan --- charts/ace-installer/templates/precheck/config.yaml | 13 +++++++------ charts/ace-installer/templates/precheck/rbac.yaml | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/charts/ace-installer/templates/precheck/config.yaml b/charts/ace-installer/templates/precheck/config.yaml index b08f0d768..65d2fe6e1 100644 --- a/charts/ace-installer/templates/precheck/config.yaml +++ b/charts/ace-installer/templates/precheck/config.yaml @@ -19,16 +19,17 @@ metadata: "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded stringData: options.yaml: | + version: {{ .Chart.AppVersion }}} {{- with $licenses }} licenses: {{ . | toJson }} {{- end }} - {{- if .Values.registry }} + {{- with .Values.registry }} registry: - {{- .Values.registry | toYaml | nindent 6 }} - {{- if .Values.image }} - image: - {{- .Values.image | toYaml | nindent 8 }} - {{- end }} + {{- . | toYaml | nindent 6 }} + {{- end }} + {{- with .Values.image }} + image: + {{- . | toYaml | nindent 6 }} {{- end }} {{- if .Values.selfManagement }} selfManagement: diff --git a/charts/ace-installer/templates/precheck/rbac.yaml b/charts/ace-installer/templates/precheck/rbac.yaml index 93de8ae29..04ab75cba 100644 --- a/charts/ace-installer/templates/precheck/rbac.yaml +++ b/charts/ace-installer/templates/precheck/rbac.yaml @@ -12,7 +12,7 @@ metadata: "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded rules: - apiGroups: [""] - resources: ["configmaps", "namespaces", "secrets", "services"] + resources: ["configmaps", "namespaces", "secrets", "services", "serviceaccounts"] verbs: [ "get", "list", "watch" ] - apiGroups: ["apps"] resources: ["deployments"]