apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet metadata: name: mixingx-edges namespace: argocd spec: goTemplate: true goTemplateOptions: - missingkey=error generators: - list: elements: - id: demo description: Demo Edge nodeLabel: node2 - id: demo-2 description: Demo Edge 2 nodeLabel: node1 template: metadata: name: 'mixingx-edge-{{ .id }}' spec: project: default sources: - repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git targetRevision: master path: release-charts/mixingx-edge-unit helm: releaseName: 'mixingx-edge-{{ .id }}' valueFiles: - $values/environments/demo/edge-common-values.yaml values: | site: "{{ .id }}" description: "{{ .description }}" {{- if .nodeLabel }} nodeSelector: mixingx.io/edge-node: "{{ .nodeLabel }}" {{- end }} - repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git targetRevision: master ref: values destination: server: https://kubernetes.default.svc namespace: mixingx syncPolicy: syncOptions: - CreateNamespace=true