Show a list generator example.
BeginnerConceptApplicationSets, App-of-Apps & Multi-Cluster
Answer
spec:
goTemplate: true
generators:
- list:
elements:
- env: dev
cluster: in-cluster
- env: prod
cluster: prod-eu
template:
metadata:
name: "web-{{ .env }}"
spec:
project: web
source:
repoURL: https://github.com/org/cfg.git
targetRevision: main
path: "apps/web/overlays/{{ .env }}"
destination:
name: "{{ .cluster }}"
namespace: web
More on ApplicationSets, App-of-Apps & Multi-Cluster
What problem does an ApplicationSet solve?BeginnerList the ApplicationSet generators.BeginnerHow does the cluster generator work?IntermediateCompare the git directory and git files generators.IntermediateWhat is a matrix generator and what are its limits?IntermediateWhat is the merge generator used for?Advanced