From afccab68e9371ce3b889b6647c8c421e458220c7 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Wed, 8 Jul 2020 16:59:25 +0100 Subject: [PATCH] Disable prune for migration --- charts/kubezero/Chart.yaml | 2 +- charts/kubezero/templates/calico.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/kubezero/Chart.yaml b/charts/kubezero/Chart.yaml index ed1fd984..c9d6df4d 100644 --- a/charts/kubezero/Chart.yaml +++ b/charts/kubezero/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: kubezero description: KubeZero ArgoCD Application - Root App of Apps chart of KubeZero type: application -version: 0.3.3 +version: 0.3.4 home: https://kubezero.com icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png keywords: diff --git a/charts/kubezero/templates/calico.yaml b/charts/kubezero/templates/calico.yaml index 97a04c9c..79f9d8fd 100644 --- a/charts/kubezero/templates/calico.yaml +++ b/charts/kubezero/templates/calico.yaml @@ -1,8 +1,10 @@ {{- if .Values.calico.enabled }} {{ template "kubezero-app.app" dict "root" . "name" "calico" "type" .Values.calico.type "retain" true }} + {{- if not .Values.calico.migration }} syncPolicy: automated: prune: true + {{- end }} ignoreDifferences: - group: apiextensions.k8s.io