From d30ca895ec869eb4b21216f6383f9778734f053b Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Fri, 18 Sep 2020 16:18:59 +0100 Subject: [PATCH] Make the kiam annotate namespace job optional --- charts/kubezero-kiam/Chart.yaml | 2 +- charts/kubezero-kiam/templates/sync-ns.yaml | 2 ++ charts/kubezero-kiam/values.yaml | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/kubezero-kiam/Chart.yaml b/charts/kubezero-kiam/Chart.yaml index 812628f2..ba2ddfcb 100644 --- a/charts/kubezero-kiam/Chart.yaml +++ b/charts/kubezero-kiam/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: kubezero-kiam description: KubeZero Umbrella Chart for Kiam type: application -version: 0.2.10 +version: 0.2.11 appVersion: 3.6 home: https://kubezero.com icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png diff --git a/charts/kubezero-kiam/templates/sync-ns.yaml b/charts/kubezero-kiam/templates/sync-ns.yaml index cc270a0e..b14d982d 100644 --- a/charts/kubezero-kiam/templates/sync-ns.yaml +++ b/charts/kubezero-kiam/templates/sync-ns.yaml @@ -1,3 +1,4 @@ +{{- if .Values.annotateKubeSystemNameSpace }} apiVersion: v1 kind: ServiceAccount metadata: @@ -63,3 +64,4 @@ spec: tolerations: - effect: NoSchedule key: node-role.kubernetes.io/master +{{- end }} diff --git a/charts/kubezero-kiam/values.yaml b/charts/kubezero-kiam/values.yaml index b96d4f5d..d09c24bc 100644 --- a/charts/kubezero-kiam/values.yaml +++ b/charts/kubezero-kiam/values.yaml @@ -1,3 +1,5 @@ +annotateKubeSystemNameSpace: false + kiam: enabled: true server: