mirror of
https://github.com/hanzoai/cd.git
synced 2026-10-30 14:56:45 +00:00
The docs and the end-to-end suite pulled their sample applications from the upstream vendor's account; they now come from ours.
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
apiVersion: apps.hanzo.ai/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/hanzocd/example-apps/
|
|
targetRevision: HEAD
|
|
path: helm-guestbook
|
|
helm:
|
|
parameters:
|
|
- name: replicaCount
|
|
value: '{{.values.replicaCount}}'
|
|
destination:
|
|
server: '{{.server}}'
|
|
namespace: '{{.namespace}}'
|