mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
* Add support for missingkey=error in ApplicationSets Signed-off-by: Radon Rosborough <[email protected]> * options for cluster generator too Signed-off-by: Michael Crenshaw <[email protected]> --------- Signed-off-by: Radon Rosborough <[email protected]> Signed-off-by: Michael Crenshaw <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]>
27 lines
691 B
YAML
27 lines
691 B
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: guestbook
|
|
spec:
|
|
goTemplate: true
|
|
goTemplateOptions: ["missingkey=error"]
|
|
generators:
|
|
- list:
|
|
elements:
|
|
- cluster: engineering-dev
|
|
url: https://kubernetes.default.svc
|
|
- cluster: engineering-prod
|
|
url: https://kubernetes.default.svc
|
|
template:
|
|
metadata:
|
|
name: '{{.cluster}}-guestbook'
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: https://github.com/argoproj/argo-cd.git
|
|
targetRevision: HEAD
|
|
path: applicationset/examples/list-generator/guestbook/{{.cluster}}
|
|
destination:
|
|
server: '{{.url}}'
|
|
namespace: guestbook
|