diff --git a/component/app.jsonnet b/component/app.jsonnet index ffd25217..21bb13f2 100644 --- a/component/app.jsonnet +++ b/component/app.jsonnet @@ -27,6 +27,11 @@ local root_app = argocd.App('root', params.namespace, secrets=false) { source+: { path: 'manifests/apps/', }, + syncPolicy+: { + automated+: { + prune: false, + }, + }, }, }; diff --git a/tests/golden/defaults/argocd/apps/01_rootapp.yaml b/tests/golden/defaults/argocd/apps/01_rootapp.yaml index 094085d2..0f0b2dfb 100644 --- a/tests/golden/defaults/argocd/apps/01_rootapp.yaml +++ b/tests/golden/defaults/argocd/apps/01_rootapp.yaml @@ -16,5 +16,5 @@ spec: targetRevision: HEAD syncPolicy: automated: - prune: true + prune: false selfHeal: true diff --git a/tests/golden/https-catalog/argocd/apps/01_rootapp.yaml b/tests/golden/https-catalog/argocd/apps/01_rootapp.yaml index ba0cad42..161d635e 100644 --- a/tests/golden/https-catalog/argocd/apps/01_rootapp.yaml +++ b/tests/golden/https-catalog/argocd/apps/01_rootapp.yaml @@ -16,5 +16,5 @@ spec: targetRevision: HEAD syncPolicy: automated: - prune: true + prune: false selfHeal: true diff --git a/tests/golden/openshift/argocd/apps/01_rootapp.yaml b/tests/golden/openshift/argocd/apps/01_rootapp.yaml index 094085d2..0f0b2dfb 100644 --- a/tests/golden/openshift/argocd/apps/01_rootapp.yaml +++ b/tests/golden/openshift/argocd/apps/01_rootapp.yaml @@ -16,5 +16,5 @@ spec: targetRevision: HEAD syncPolicy: automated: - prune: true + prune: false selfHeal: true diff --git a/tests/golden/params/argocd/apps/01_rootapp.yaml b/tests/golden/params/argocd/apps/01_rootapp.yaml index 094085d2..0f0b2dfb 100644 --- a/tests/golden/params/argocd/apps/01_rootapp.yaml +++ b/tests/golden/params/argocd/apps/01_rootapp.yaml @@ -16,5 +16,5 @@ spec: targetRevision: HEAD syncPolicy: automated: - prune: true + prune: false selfHeal: true diff --git a/tests/golden/prometheus/argocd/apps/01_rootapp.yaml b/tests/golden/prometheus/argocd/apps/01_rootapp.yaml index 094085d2..0f0b2dfb 100644 --- a/tests/golden/prometheus/argocd/apps/01_rootapp.yaml +++ b/tests/golden/prometheus/argocd/apps/01_rootapp.yaml @@ -16,5 +16,5 @@ spec: targetRevision: HEAD syncPolicy: automated: - prune: true + prune: false selfHeal: true