Skip to content

Commit 5b38d08

Browse files
authored
Merge pull request #916 from rackerlabs/ignore-sync-policy
feat: argocd: allow operators to control syncPolicy
2 parents 9c92766 + 9b4f813 commit 5b38d08

8 files changed

+40
-0
lines changed

apps/aio-app-of-apps.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ metadata:
66
spec:
77
syncPolicy:
88
preserveResourcesOnDeletion: true
9+
ignoreApplicationDifferences:
10+
- jsonPointers:
11+
# Allow temporarily disabling auto-sync for troubleshooting
12+
# https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Controlling-Resource-Modification/#allow-temporarily-toggling-auto-sync
13+
- /spec/syncPolicy
914
goTemplate: true
1015
goTemplateOptions: ["missingkey=error"]
1116
generators:

apps/app-of-apps.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ metadata:
66
spec:
77
syncPolicy:
88
preserveResourcesOnDeletion: true
9+
ignoreApplicationDifferences:
10+
- jsonPointers:
11+
# Allow temporarily disabling auto-sync for troubleshooting
12+
# https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Controlling-Resource-Modification/#allow-temporarily-toggling-auto-sync
13+
- /spec/syncPolicy
914
goTemplate: true
1015
goTemplateOptions: ["missingkey=error"]
1116
generators:

apps/appsets/appset-understack-global.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ spec:
88
applicationsSync: create-update
99
# for infrastructure resources we don't want to delete things automatically
1010
preserveResourcesOnDeletion: true
11+
ignoreApplicationDifferences:
12+
- jsonPointers:
13+
# Allow temporarily disabling auto-sync for troubleshooting
14+
# https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Controlling-Resource-Modification/#allow-temporarily-toggling-auto-sync
15+
- /spec/syncPolicy
1116
goTemplate: true
1217
goTemplateOptions: ["missingkey=error"]
1318
generators:

apps/appsets/appset-understack-infra.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ spec:
88
applicationsSync: create-update
99
# for infrastructure resources we don't want to delete things automatically
1010
preserveResourcesOnDeletion: true
11+
ignoreApplicationDifferences:
12+
- jsonPointers:
13+
# Allow temporarily disabling auto-sync for troubleshooting
14+
# https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Controlling-Resource-Modification/#allow-temporarily-toggling-auto-sync
15+
- /spec/syncPolicy
1116
goTemplate: true
1217
goTemplateOptions: ["missingkey=error"]
1318
generators:

apps/appsets/appset-understack-openstack.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ spec:
88
applicationsSync: create-update
99
# for infrastructure resources we don't want to delete things automatically
1010
preserveResourcesOnDeletion: true
11+
ignoreApplicationDifferences:
12+
- jsonPointers:
13+
# Allow temporarily disabling auto-sync for troubleshooting
14+
# https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Controlling-Resource-Modification/#allow-temporarily-toggling-auto-sync
15+
- /spec/syncPolicy
1116
goTemplate: true
1217
goTemplateOptions: ["missingkey=error"]
1318
generators:

apps/appsets/appset-understack-operators.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ spec:
88
applicationsSync: create-update
99
# for infrastructure resources we don't want to delete things automatically
1010
preserveResourcesOnDeletion: true
11+
ignoreApplicationDifferences:
12+
- jsonPointers:
13+
# Allow temporarily disabling auto-sync for troubleshooting
14+
# https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Controlling-Resource-Modification/#allow-temporarily-toggling-auto-sync
15+
- /spec/syncPolicy
1116
goTemplate: true
1217
goTemplateOptions: ["missingkey=error"]
1318
generators:

apps/appsets/appset-understack-site.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ spec:
88
applicationsSync: create-update
99
# for infrastructure resources we don't want to delete things automatically
1010
preserveResourcesOnDeletion: true
11+
ignoreApplicationDifferences:
12+
- jsonPointers:
13+
# Allow temporarily disabling auto-sync for troubleshooting
14+
# https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Controlling-Resource-Modification/#allow-temporarily-toggling-auto-sync
15+
- /spec/syncPolicy
1116
goTemplate: true
1217
goTemplateOptions: ["missingkey=error"]
1318
generators:

apps/appsets/argocd/appset-argocd.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ spec:
66
syncPolicy:
77
applicationsSync: create-update
88
preserveResourcesOnDeletion: true
9+
ignoreApplicationDifferences:
10+
- jsonPointers:
11+
# Allow temporarily disabling auto-sync for troubleshooting
12+
# https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Controlling-Resource-Modification/#allow-temporarily-toggling-auto-sync
13+
- /spec/syncPolicy
914
goTemplate: true
1015
goTemplateOptions: ["missingkey=error"]
1116
generators:

0 commit comments

Comments
 (0)