forked from Kounex/summit-connect-challenge-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.yaml
More file actions
38 lines (37 loc) · 1.21 KB
/
application.yaml
File metadata and controls
38 lines (37 loc) · 1.21 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
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: ${{values.namespace}}-${{values.componentId}}
namespace: janus-argocd
spec:
project: default
destination:
server: https://kubernetes.default.svc
namespace: ${{values.namespace}}
source:
repoURL: ${{values.sourceRepository}}
path: ./helm/summit-connect-challenge
targetRevision: ${{values.defaultBranch}}
# adding those helm values here allows the helm
# chart to be somewhere different and it doesn't
# have to be deployed in each repo with backstage
helm:
values: |
app:
name: ${{values.componentId}}
namespace: ${{values.namespace}}
clusterId: ${{values.clusterId}}
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
- RespectIgnoreDifferences=true
- ApplyOutOfSyncOnly=true
retry:
backoff:
duration: 5s # the amount to back off. Default unit is seconds, but could also be a duration (e.g. "2m", "1h")
factor: 2 # a factor to multiply the base duration after each failed retry
maxDuration: 10m # the maximum amount of time allowed for the backoff strategy