34 lines
902 B
YAML
34 lines
902 B
YAML
# file: applicationsets/envs-appset.yaml in app-definition.git (optional location)
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: envs-appset
|
|
namespace: argocd
|
|
spec:
|
|
generators:
|
|
- git:
|
|
repoURL: https://git.dvirlabs.com/dvirlabs/app-definition.git
|
|
revision: HEAD
|
|
files:
|
|
- path: env-sets/*/metadata.yaml
|
|
extract:
|
|
env: '{{.env}}'
|
|
namespace: '{{.namespace}}'
|
|
project: '{{.project}}'
|
|
template:
|
|
metadata:
|
|
name: env-{{env}}
|
|
spec:
|
|
project: '{{project}}'
|
|
source:
|
|
repoURL: https://git.dvirlabs.com/dvirlabs/app-definition.git
|
|
targetRevision: HEAD
|
|
path: env-sets/{{env}}
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: '{{namespace}}'
|
|
syncPolicy:
|
|
automated:
|
|
selfHeal: true
|
|
prune: true
|