init
This commit is contained in:
26
argocd/apps/local/vcluster/templates/application.yaml
Normal file
26
argocd/apps/local/vcluster/templates/application.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
{{- range $value := .Values.applications }}
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: {{ $value.name }}
|
||||
namespace: argocd
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
destination:
|
||||
namespace: {{ $value.namespace }}
|
||||
name: {{ $value.cluster }} # Uncomment and use this line
|
||||
# server: https://kubernetes.default.svc # Alternatively, use this line
|
||||
project: default
|
||||
source:
|
||||
path: {{ $value.path }}
|
||||
repoURL: {{ $value.repoURL }}
|
||||
targetRevision: HEAD
|
||||
helm:
|
||||
valueFiles:
|
||||
- vcluster.yaml
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
---
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user