Skip to content

Commit

Permalink
Merge pull request #218 from projectsyn/feat/no-prune-on-autosync
Browse files Browse the repository at this point in the history
Disable pruning for automated sync of root app
  • Loading branch information
simu authored Dec 31, 2024
2 parents 8c31821 + cc35449 commit e8fc70e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions component/app.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ local root_app = argocd.App('root', params.namespace, secrets=false) {
source+: {
path: 'manifests/apps/',
},
syncPolicy+: {
automated+: {
prune: false,
},
},
},
};

Expand Down
2 changes: 1 addition & 1 deletion tests/golden/defaults/argocd/apps/01_rootapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ spec:
targetRevision: HEAD
syncPolicy:
automated:
prune: true
prune: false
selfHeal: true
2 changes: 1 addition & 1 deletion tests/golden/https-catalog/argocd/apps/01_rootapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ spec:
targetRevision: HEAD
syncPolicy:
automated:
prune: true
prune: false
selfHeal: true
2 changes: 1 addition & 1 deletion tests/golden/openshift/argocd/apps/01_rootapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ spec:
targetRevision: HEAD
syncPolicy:
automated:
prune: true
prune: false
selfHeal: true
2 changes: 1 addition & 1 deletion tests/golden/params/argocd/apps/01_rootapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ spec:
targetRevision: HEAD
syncPolicy:
automated:
prune: true
prune: false
selfHeal: true
2 changes: 1 addition & 1 deletion tests/golden/prometheus/argocd/apps/01_rootapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ spec:
targetRevision: HEAD
syncPolicy:
automated:
prune: true
prune: false
selfHeal: true

0 comments on commit e8fc70e

Please sign in to comment.