app-definition/applicationSet.yaml
2025-07-27 18:22:20 +03:00

34 lines
815 B
YAML

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: net-envs-appset
namespace: argocd
spec:
generators:
- git:
repoURL: https://git.dvirlabs.com/app-definition.git
revision: HEAD
files:
- path: net-envs/*/metadata.yaml
extract:
env: '{{.env}}'
project: '{{.project}}'
namespace: '{{.namespace}}'
template:
metadata:
name: net-env-{{env}}
spec:
project: '{{project}}'
source:
repoURL: https://git.dvirlabs.com/app-definition.git
path: env-sets
directory:
recurse: true
destination:
server: https://kubernetes.default.svc
namespace: '{{namespace}}'
syncPolicy:
automated:
selfHeal: true
prune: true