Make calico migration explicit

This commit is contained in:
Stefan Reimer 2020-07-07 14:28:32 +01:00
parent 301b972787
commit 491398c722
4 changed files with 5 additions and 6 deletions

View File

@ -32,6 +32,7 @@ spec:
server: {{ .root.Values.global.defaultDestination.server }} server: {{ .root.Values.global.defaultDestination.server }}
namespace: {{ default "kube-system" .namespace }} namespace: {{ default "kube-system" .namespace }}
{{- if or ( not .retain ) .selfheal }}
syncPolicy: syncPolicy:
automated: automated:
{{- if not .retain }} {{- if not .retain }}
@ -40,4 +41,5 @@ spec:
{{- if .selfheal }} {{- if .selfheal }}
selfHeal: true selfHeal: true
{{- end }} {{- end }}
{{- end }}
{{- end }} {{- end }}

View File

@ -1,8 +1,3 @@
# {{ .Values.calico.network }}
{{- if .Values.calico.enabled }} {{- if .Values.calico.enabled }}
{{- if .Values.calico.values.network }} {{ template "kubezero-app.app" dict "root" . "name" "calico" "type" .Values.calico.type "retain" true }}
{{ 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 }}
{{- end }} {{- end }}

View File

@ -17,6 +17,7 @@ platform: aws
calico: calico:
enabled: true enabled: true
type: kustomize
cert-manager: cert-manager:
enabled: true enabled: true

View File

@ -5,6 +5,7 @@ kubezero:
{{- end }} {{- end }}
calico: calico:
enabled: {{ .Values.calico.enabled }} enabled: {{ .Values.calico.enabled }}
type: {{ .Values.calico.type }}
values: values:
migration: {{ .Values.calico.migration }} migration: {{ .Values.calico.migration }}
prometheus: {{ .Values.prometheus.enabled }} prometheus: {{ .Values.prometheus.enabled }}