-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapplicationSetBranch.yaml
88 lines (87 loc) · 2.34 KB
/
applicationSetBranch.yaml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# apiVersion: argoproj.io/v1alpha1
# kind: ApplicationSet
# metadata:
# name: project-stack-dyn
# namespace: argo-cd
# spec:
# generators:
# - scmProvider:
# cloneProtocol: git
# filters:
# - branchMatch: ^issue/.*
# repositoryMatch: manifests
# gitlab:
# group: "12345678"
# allBranches: true
# includeSubgroups: true
# tokenRef:
# secretName: gitlab-token
# key: token
# template:
# metadata:
# name: "{{branchNormalized}}"
# spec:
# source:
# path: helm/
# repoURL: https://github.com/VitalyEst/applicationSet-test.git
# targetRevision: "{{branch}}"
# helm:
# values: |
# fullnameOverride: "{{branchNormalized}}"
# ingress:
# enabled: true
# annotations: {}
# hosts:
# - host: {{branchNormalized}}.dyn.project.ru
# paths:
# - path: /
# pathType: ImplementationSpecific
# project: project-dyn
# destination:
# namespace: 'argo-app-project-dyn'
# server: https://kubernetes.default.svc
# syncPolicy:
# automated:
# selfHeal: true
# prune: true
# allowEmpty: true
# syncOptions:
# - CreateNamespace=true
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: application-set-branch
namespace: argo-cd
spec:
generators:
- scmProvider:
github:
organization: VitalyEst-org
allBranches: true
cloneProtocol: https
filters:
- repositoryMatch: applicationSet-test
branchMatch: ^issue/.*
template:
metadata:
name: "{{branchNormalized}}"
spec:
project: "default"
source:
repoURL: https://github.com/VitalyEst-org/applicationSet-test.git
targetRevision: '{{ branch }}'
path: applicationSetBranch/chart1
helm:
values: |
fullnameOverride: "{{branchNormalized}}"
destination:
server: https://kubernetes.default.svc
namespace: application-set-branch
syncPolicy:
automated:
selfHeal: true
prune: true
allowEmpty: true
syncOptions:
- CreateNamespace=true