change to list generator
This commit is contained in:
@@ -10,13 +10,17 @@ spec:
|
|||||||
goTemplate: true
|
goTemplate: true
|
||||||
goTemplateOptions: ["missingkey=error"]
|
goTemplateOptions: ["missingkey=error"]
|
||||||
generators:
|
generators:
|
||||||
- clusters:
|
- list:
|
||||||
selector:
|
elements:
|
||||||
matchLabels:
|
- cluster: cluster1
|
||||||
name: "internal"
|
url: https://api.cluster1.chx.osecloud.com:6443
|
||||||
|
# - clusters:
|
||||||
|
# selector:
|
||||||
|
# matchLabels:
|
||||||
|
# name: "internal"
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: '{{.name}}-openshift-lightspeed'
|
name: '{{.cluster}}-openshift-lightspeed'
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-wave: "2"
|
argocd.argoproj.io/sync-wave: "2"
|
||||||
spec:
|
spec:
|
||||||
@@ -24,9 +28,9 @@ spec:
|
|||||||
source:
|
source:
|
||||||
repoURL: https://github.com/rblundon/homelab.git
|
repoURL: https://github.com/rblundon/homelab.git
|
||||||
targetRevision: HEAD
|
targetRevision: HEAD
|
||||||
path: cluster/openshift-lightspeed-operator/overlays/{{.name}}
|
path: cluster/openshift-lightspeed-operator/overlays/{{.cluster}}
|
||||||
destination:
|
destination:
|
||||||
name: '{{.name}}'
|
name: '{{.cluster}}'
|
||||||
namespace: openshift-lightspeed
|
namespace: openshift-lightspeed
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated:
|
automated:
|
||||||
|
|||||||
Reference in New Issue
Block a user