This commit is contained in:
behrooz razzaghi
2025-03-11 17:37:05 +03:30
parent 41de78f676
commit 587a331bbe
61 changed files with 10907 additions and 2 deletions

View 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 }}