c12s-application-set/deploy/applicationset.yaml

39 lines
811 B
YAML

---
apiVersion: v1
kind: Namespace
metadata:
name: infra
labels:
app: infra
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: le-distrilab
namespace: argocd
spec:
generators:
- list:
elements:
- app: c12s
overlay: prod
# - app: argocd
# overlay: prod
- app: k8s-poc-demo
overlay: prod
- app: k8s-poc-demo
overlay: test
- app: external-svc
overlay: tdc-aren
template:
metadata:
name: '{{app}}-{{overlay}}'
spec:
project: default
source:
repoURL: https://git.distrilab.fr/C12s/c12s-application-set.git
targetRevision: HEAD
path: deploy/{{app}}/{{overlay}}
destination:
server: https://kubernetes.default.svc
namespace: infra