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]>
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: ApplicationSet
|
|
metadata:
|
|
name: merge-two-matrixes
|
|
spec:
|
|
goTemplate: true
|
|
goTemplateOptions: ["missingkey=error"]
|
|
generators:
|
|
- merge:
|
|
mergeKeys:
|
|
- server
|
|
- environment
|
|
generators:
|
|
- matrix:
|
|
generators:
|
|
- clusters:
|
|
values:
|
|
replicaCount: '2'
|
|
- list:
|
|
elements:
|
|
- environment: staging
|
|
namespace: guestbook-non-prod
|
|
- environment: prod
|
|
namespace: guestbook
|
|
- list:
|
|
elements:
|
|
- server: https://kubernetes.default.svc
|
|
environment: staging
|
|
values.replicaCount: '1'
|
|
template:
|
|
metadata:
|
|
name: '{{.name}}-guestbook-{{.environment}}'
|
|
spec:
|
|
project: default
|
|
source:
|
|
repoURL: https://github.com/argoproj/argocd-example-apps/
|
|
targetRevision: HEAD
|
|
path: helm-guestbook
|
|
helm:
|
|
parameters:
|
|
- name: replicaCount
|
|
value: '{{.values.replicaCount}}'
|
|
destination:
|
|
server: '{{.server}}'
|
|
namespace: '{{.namespace}}'
|