You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ensure that Applications generated with RollingSync do not have an automated sync policy, since the AppSet controller will handle triggering the sync operation instead
Copy file name to clipboardExpand all lines: docs/user-guide/auto_sync.md
+10
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,16 @@ spec:
18
18
syncPolicy:
19
19
automated: {}
20
20
```
21
+
Application CRD now also support explicitly setting automated sync to be turn on or off by using `spec.syncPolicy.automated.enable` flag to true or false. When `enable` field is set to true, Automated Sync is active and when set to false controller will skip automated sync even if `prune`, `self-heal` and `allowEmpty` are set.
22
+
```yaml
23
+
spec:
24
+
syncPolicy:
25
+
automated:
26
+
enable: true
27
+
```
28
+
29
+
!!!note
30
+
Setting `spec.syncPolicy.automated.enable` flag to null will be treated as automated sync as enabled. When using `enable` field set to false, fields like `prune`, `self-heal` and `allowEmpty` can be set without enabling them.
21
31
22
32
## Temporarily toggling auto-sync for applications managed by ApplicationSets
0 commit comments