forked from gmodzelewski/quinoa-wind-turbine-manifests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwind-turbine-app.yaml
77 lines (77 loc) · 2.37 KB
/
wind-turbine-app.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
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: wind-turbine-apps
namespace: openshift-gitops
spec:
generators:
- git:
repoURL: "https://github.com/sa-mw-dach/quinoa-wind-turbine-manifests"
revision: main
files:
- path: "stages/**/config.json"
# - list:
# elements:
# - cluster: dev
# url: https://kubernetes.default.svc
# namespace: gitops-demo-dev
# imageTag: "latest"
# followChangesForBranch: "main"
# - cluster: stage
# url: https://kubernetes.default.svc
# namespace: gitops-demo-stage
# imageTag: "Release-1.0.2"
# followChangesForBranch: "Release-1.0" # build when startsWith
# - cluster: prod
# url: https://kubernetes.default.svc
# namespace: gitops-demo-prod
# imageTag: "Release-1.0.0"
# followChangesForBranch: "" # -> empty means don't follow
template:
metadata:
name: 'wind-turbine-{{stage}}-app'
spec:
project: default
source:
repoURL: "https://github.com/sa-mw-dach/quinoa-wind-turbine-manifests"
path: helm
helm:
# valueFiles:
# - values.{{cluster}}.yaml
parameters:
- name: repoUrl
value: 'https://github.com/sa-mw-dach/quinoa-wind-turbine-manifests'
- name: applicationGitUrl
value: 'https://github.com/sa-mw-dach/quinoa-wind-turbine.git'
- name: image
value: 'quay.io/sbergste/quinoa-wind-turbine'
- name: imageTag
value: '{{imageTag}}'
- name: imageDigest
value: '{{imageDigest}}'
- name: followChangesForBranch
value: '{{followChangesForBranch}}'
- name: stage
value: '{{stage}}'
- name: disableSecretsDeployment
value: 'true'
- name: replicas
value: '{{replicas}}'
destination:
server: '{{url}}'
namespace: '{{namespace}}'
syncPolicy:
automated:
selfHeal: true
prune: true
syncOptions:
- CreateNamespace=true
ignoreDifferences:
- group: image.openshift.io
kind: ImageStream
jsonPointers:
- /spec/tags
- group: apps.openshift.io
kind: DeploymentConfig
jsonPointers:
- /spec/template/spec/containers/0/image