29 lines
688 B
YAML
29 lines
688 B
YAML
{{- range $app_name, $app_attr := .Values.gitea_applications -}}
|
|
---
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: {{ $app_name }}
|
|
namespace: argocd
|
|
finalizers:
|
|
- resources-finalizer.argocd.argoproj.io
|
|
{{- with $app_attr.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: https://gitea.arcodange.lab/arcodange-org/{{ $app_name }}
|
|
targetRevision: HEAD
|
|
path: chart
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: {{ $app_name }}
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true
|
|
{{ end }} |