-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathapplication-openstack-helm.yaml
More file actions
63 lines (63 loc) · 1.81 KB
/
Copy pathapplication-openstack-helm.yaml
File metadata and controls
63 lines (63 loc) · 1.81 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
60
61
62
63
{{- range $appName := list
"keystone"
"glance"
"cinder"
"ironic"
"neutron"
"placement"
"nova"
"octavia"
"horizon"
"skyline"
}}
{{- if eq (include "understack.isEnabled" (list $.Values.site $appName)) "true" }}
{{- $app := get $.Values.site $appName }}
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ printf "%s-%s" $.Release.Name $appName }}
finalizers:
- resources-finalizer.argocd.argoproj.io
{{/*
{{- with $app.wave }}
annotations:
argocd.argoproj.io/sync-wave: {{ quote . }}
{{- end }}
*/}}
spec:
destination:
namespace: {{ $.Values.site.openstack.namespace }}
server: {{ $.Values.cluster_server }}
project: understack
sources:
- repoURL: {{ $.Values.site.openstack.repoUrl }}
targetRevision: {{ $app.chartVersion }}
chart: {{ $appName }}
helm:
ignoreMissingValueFiles: true
releaseName: {{ $appName }}
valueFiles:
- $understack/components/images-openstack.yaml
- $understack/components/{{ $appName }}/values.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/secret-openstack.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/images-openstack.yaml
- $deploy/{{ include "understack.deploy_path" $ }}/{{ $appName }}/values.yaml
- path: components/{{ $appName }}/
ref: understack
repoURL: {{ include "understack.understack_url" $ }}
targetRevision: {{ include "understack.understack_ref" $ }}
- path: {{ include "understack.deploy_path" $ }}/{{ $appName }}
ref: deploy
repoURL: {{ include "understack.deploy_url" $ }}
targetRevision: {{ include "understack.deploy_ref" $ }}
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- ServerSideApply=false
- RespectIgnoreDifferences=true
- ApplyOutOfSyncOnly=true
{{- end }}
{{- end }}