Files
cd/applicationset/examples/merge/merge-clusters-and-list.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

47 lines
1.2 KiB
YAML

apiVersion: apps.hanzo.ai/v1alpha1
kind: ApplicationSet
metadata:
name: merge-clusters-and-list
spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- merge:
mergeKeys:
- server
generators:
- clusters:
values:
kafka: 'true'
redis: 'false'
# For clusters with a specific label, enable Kafka.
- clusters:
selector:
matchLabels:
use-kafka: 'false'
values:
kafka: 'false'
# For a specific cluster, enable Redis.
- list:
elements:
- server: https://some-specific-cluster
values.redis: 'true'
template:
metadata:
name: '{{.name}}'
spec:
project: default
source:
repoURL: https://github.com/hanzocd/example-apps/
targetRevision: HEAD
path: helm-guestbook
helm:
parameters:
- name: kafka
value: '{{.values.kafka}}'
- name: redis
value: '{{.values.redis}}'
destination:
server: '{{.server}}'
namespace: default