feat(argocd-apps): Add rollout strategy for ApplicationSet (#2063)
feat(argocd-apps): add rollout strategy for ApplicationSet Signed-off-by: Khue Doan <mail@khuedoan.com>
This commit is contained in:
parent
be8a4c9729
commit
650a9ec7ef
4 changed files with 66 additions and 3 deletions
|
|
@ -0,0 +1,41 @@
|
|||
# Test applicationsets with Progressive Syncs
|
||||
|
||||
applicationsets:
|
||||
- name: applicationset-progressive-syncs
|
||||
generators:
|
||||
- list:
|
||||
elements:
|
||||
- cluster: engineering-dev
|
||||
url: https://1.2.3.4
|
||||
env: env-dev
|
||||
- cluster: engineering-prod
|
||||
url: https://9.8.7.6/
|
||||
env: env-prod
|
||||
strategy:
|
||||
type: RollingSync
|
||||
rollingSync:
|
||||
steps:
|
||||
- matchExpressions:
|
||||
- key: envLabel
|
||||
operator: In
|
||||
values:
|
||||
- env-dev
|
||||
- matchExpressions:
|
||||
- key: envLabel
|
||||
operator: In
|
||||
values:
|
||||
- env-prod
|
||||
template:
|
||||
metadata:
|
||||
name: '{{.cluster}}-guestbook'
|
||||
labels:
|
||||
envLabel: '{{.env}}'
|
||||
spec:
|
||||
project: my-project
|
||||
source:
|
||||
repoURL: https://github.com/argoproj/argocd-example-apps.git
|
||||
targetRevision: HEAD
|
||||
path: guestbook/{{.cluster}}
|
||||
destination:
|
||||
server: '{{.url}}'
|
||||
namespace: guestbook
|
||||
Loading…
Add table
Add a link
Reference in a new issue