forked from argoproj/argocd-example-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogressive-sync.yaml
More file actions
59 lines (59 loc) · 1.64 KB
/
Copy pathprogressive-sync.yaml
File metadata and controls
59 lines (59 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: progressive-sync
namespace: argocd
spec:
generators:
- matrix:
generators:
- list:
elements:
- env: dev
- env: qa
- env: prod
- list:
elements:
- region: us-east
- region: us-west
strategy:
type: RollingSync
deletionOrder: Reverse
rollingSync:
steps:
- matchExpressions:
- key: env
operator: In
values: [dev]
# maxUpdate: 100% (implicit default - all dev apps sync simultaneously)
- matchExpressions:
- key: env
operator: In
values: [qa]
maxUpdate: 0 # Manual gate - requires manual sync via CLI or UI
- matchExpressions:
- key: env
operator: In
values: [prod]
maxUpdate: 10% # Gradual rollout - with 2 apps, syncs 1 at a time
template:
metadata:
name: 'appset-progressive-{{env}}-{{region}}'
labels:
env: '{{env}}'
region: '{{region}}'
spec:
project: default
source:
repoURL: https://github.com/argoproj/argocd-example-apps
targetRevision: HEAD
path: lightweight/app-a
destination:
server: https://kubernetes.default.svc
namespace: 'appset-progressive-{{env}}-{{region}}'
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
enabled: false
# NOTE: automated sync is disabled - RollingSync manages sync operations