From 350a1496453f3ac23fc05f21c3eae05b15b15ae7 Mon Sep 17 00:00:00 2001 From: rblundon Date: Sun, 27 Jul 2025 20:10:21 -0500 Subject: [PATCH] change to list generator --- .../openshift-lightspeed-operator-appset.yaml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/cluster/openshift-lightspeed-operator-appset.yaml b/cluster/openshift-lightspeed-operator-appset.yaml index 22d9364..394ecaf 100644 --- a/cluster/openshift-lightspeed-operator-appset.yaml +++ b/cluster/openshift-lightspeed-operator-appset.yaml @@ -10,13 +10,17 @@ spec: goTemplate: true goTemplateOptions: ["missingkey=error"] generators: - - clusters: - selector: - matchLabels: - name: "internal" + - list: + elements: + - cluster: cluster1 + url: https://api.cluster1.chx.osecloud.com:6443 + # - clusters: + # selector: + # matchLabels: + # name: "internal" template: metadata: - name: '{{.name}}-openshift-lightspeed' + name: '{{.cluster}}-openshift-lightspeed' annotations: argocd.argoproj.io/sync-wave: "2" spec: @@ -24,9 +28,9 @@ spec: source: repoURL: https://github.com/rblundon/homelab.git targetRevision: HEAD - path: cluster/openshift-lightspeed-operator/overlays/{{.name}} + path: cluster/openshift-lightspeed-operator/overlays/{{.cluster}} destination: - name: '{{.name}}' + name: '{{.cluster}}' namespace: openshift-lightspeed syncPolicy: automated: