35 lines
987 B
YAML
35 lines
987 B
YAML
# One Argo CD Application per folder in apps/, deployed to a namespace of the
|
|
# same name. Argo detects the folder type: Chart.yaml -> Helm,
|
|
# kustomization.yaml -> Kustomize, otherwise plain manifests.
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: apps
|
|
namespace: argocd
|
|
spec:
|
|
goTemplate: true
|
|
goTemplateOptions: ["missingkey=error"]
|
|
generators:
|
|
- git:
|
|
repoURL: http://10.0.0.14:3000/un-oeil/argocd.git
|
|
revision: main
|
|
directories:
|
|
- path: apps/*
|
|
template:
|
|
metadata:
|
|
name: "{{.path.basename}}"
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: http://10.0.0.14:3000/un-oeil/argocd.git
|
|
targetRevision: main
|
|
path: "{{.path.path}}"
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: "{{.path.basename}}"
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true
|