app-definition/env-sets/dev/applicationSet.yaml
2025-07-28 13:38:41 +03:00

35 lines
980 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.dirname | basename }}-dev' # svc-1-dev, svc-2-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}}' # ✅ FIXED HERE
- repoURL: https://git.dvirlabs.com/dvirlabs/app-definition.git
targetRevision: HEAD
ref: values
syncPolicy:
automated:
prune: true
selfHeal: true