diff --git a/charts/kubezero/templates/_app.yaml b/charts/kubezero/templates/_app.yaml index 4888b688..06b2b19d 100644 --- a/charts/kubezero/templates/_app.yaml +++ b/charts/kubezero/templates/_app.yaml @@ -32,6 +32,7 @@ spec: server: {{ .root.Values.global.defaultDestination.server }} namespace: {{ default "kube-system" .namespace }} + {{- if or ( not .retain ) .selfheal }} syncPolicy: automated: {{- if not .retain }} @@ -40,4 +41,5 @@ spec: {{- if .selfheal }} selfHeal: true {{- end }} + {{- end }} {{- end }} diff --git a/charts/kubezero/templates/calico.yaml b/charts/kubezero/templates/calico.yaml index 8c3121da..bf5e61c6 100644 --- a/charts/kubezero/templates/calico.yaml +++ b/charts/kubezero/templates/calico.yaml @@ -1,8 +1,3 @@ -# {{ .Values.calico.network }} {{- if .Values.calico.enabled }} -{{- if .Values.calico.values.network }} -{{ template "kubezero-app.app" dict "root" . "name" "calico" "type" "helm" "retain" true }} -{{- else }} -{{ template "kubezero-app.app" dict "root" . "name" "calico" "type" "kustomize" "retain" true }} -{{- end }} +{{ template "kubezero-app.app" dict "root" . "name" "calico" "type" .Values.calico.type "retain" true }} {{- end }} diff --git a/charts/kubezero/values.yaml b/charts/kubezero/values.yaml index 17cf62a3..f0c7c648 100644 --- a/charts/kubezero/values.yaml +++ b/charts/kubezero/values.yaml @@ -17,6 +17,7 @@ platform: aws calico: enabled: true + type: kustomize cert-manager: enabled: true diff --git a/deploy/templates/values.yaml b/deploy/templates/values.yaml index 3b76c4e6..fb0abd81 100644 --- a/deploy/templates/values.yaml +++ b/deploy/templates/values.yaml @@ -5,6 +5,7 @@ kubezero: {{- end }} calico: enabled: {{ .Values.calico.enabled }} + type: {{ .Values.calico.type }} values: migration: {{ .Values.calico.migration }} prometheus: {{ .Values.prometheus.enabled }}