app-definition/env-sets/dev/applicationSet.yaml
2025-07-27 20:35:11 +03:00

33 lines
979 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/*.yaml
# ✅ ADD THIS:
template:
metadata:
name: '{{ printf "dev-%s" (replace (replace (lower .path.basename) "_" "-") "." "-") }}'
spec:
project: default
source:
repoURL: https://git.dvirlabs.com/dvirlabs/app-provision.git
targetRevision: HEAD
chart: ngnix-message
helm:
valueFiles:
- services/{{path.basename}}
destination:
server: https://kubernetes.default.svc
namespace: dev
syncPolicy:
automated:
selfHeal: true
prune: true