Files
cd/applicationset/examples/merge/merge-two-matrixes-fasttemplate.yaml
zeekay 6d8171e8dc Deploy the examples from our own repository
The docs and the end-to-end suite pulled their sample applications from the
upstream vendor's account; they now come from ours.
2026-09-04 23:50:35 -07:00

44 lines
1.2 KiB
YAML

apiVersion: apps.hanzo.ai/v1alpha1
kind: ApplicationSet
metadata:
name: merge-two-matrixes
spec:
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}}'