app-definition/env-sets/dev/applicationSet.yaml
2025-07-28 12:51:01 +03:00

35 lines
924 B
YAML

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: dev-microservices
namespace: argocd
spec:
generators:
- git:
repoURL: https://git.dvirlabs.com/dvirlabs/app-definition.git
revision: HEAD
files:
- path: env-sets/dev/services/*/service.yaml
template:
metadata:
name: '{{ path.basename }}-dev'
spec:
project: sandbox
destination:
server: https://kubernetes.default.svc
namespace: dev
sources:
- repoURL: https://git.dvirlabs.com/dvirlabs/app-provision.git
targetRevision: HEAD
path: nginx-message
helm:
valueFiles:
- '$values/{{ .path.path }}/service.yaml'
- repoURL: https://git.dvirlabs.com/dvirlabs/app-definition.git
targetRevision: HEAD
ref: values
syncPolicy:
automated:
prune: true
selfHeal: true