Skip to content

Commit e37fec6

Browse files
committed
Add an Application manifest to install the cdn helm chart
1 parent b46ff55 commit e37fec6

2 files changed

Lines changed: 46 additions & 1 deletion

File tree

apps/site/understack-cdn.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@ component: understack-cdn
33
sources:
44
- ref: understack
55
path: 'components/understack-cdn'
6+
helm:
7+
valueFiles:
8+
- $understack/components/understack-cdn/values.yaml
9+
- $deploy/{{.name}}/understack-cdn/values.yaml
10+
ignoreMissingValueFiles: true
611
- ref: deploy
7-
path: '{{.name}}/manifests/understack-cdn'
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{{- if eq (include "understack.isEnabled" (list $.Values.site "understack_cdn")) "true" }}
2+
---
3+
apiVersion: argoproj.io/v1alpha1
4+
kind: Application
5+
metadata:
6+
name: {{ printf "%s-%s" $.Release.Name "understack-cdn" }}
7+
finalizers:
8+
- resources-finalizer.argocd.argoproj.io
9+
annotations:
10+
argocd.argoproj.io/compare-options: ServerSideDiff=true,IncludeMutationWebhook=true
11+
spec:
12+
destination:
13+
namespace: understack-cdn
14+
server: {{ $.Values.cluster_server }}
15+
project: understack
16+
sources:
17+
- helm:
18+
ignoreMissingValueFiles: true
19+
valueFiles:
20+
- $understack/components/understack-cdn/values.yaml
21+
- $deploy/{{ include "understack.deploy_path" $ }}/understack-cdn/values.yaml
22+
path: components/understack-cdn
23+
ref: understack
24+
repoURL: {{ include "understack.understack_url" $ }}
25+
targetRevision: {{ include "understack.understack_ref" $ }}
26+
- ref: deploy
27+
repoURL: {{ include "understack.deploy_url" $ }}
28+
targetRevision: {{ include "understack.deploy_ref" $ }}
29+
syncPolicy:
30+
automated:
31+
prune: true
32+
selfHeal: true
33+
managedNamespaceMetadata:
34+
annotations:
35+
argocd.argoproj.io/sync-options: Delete=false
36+
syncOptions:
37+
- CreateNamespace=true
38+
- ServerSideApply=true
39+
- RespectIgnoreDifferences=true
40+
- ApplyOutOfSyncOnly=true
41+
{{- end }}

0 commit comments

Comments
 (0)