feat(gitops): split environments and image version

This commit is contained in:
ximenchuifeng committed 2026-07-06 11:06:52 +08:00
1 parent b70b40ba74
commit 0c46951446
23 files changed
+273 -33

No files matched your search

+49
View File
@@ -0,0 +1,49 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: mixingx-dev-agents
namespace: argocd
spec:
goTemplate: true
goTemplateOptions:
- missingkey=error
generators:
- matrix:
generators:
- git:
repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
revision: master
files:
- path: environments/dev/agents.yaml
- list:
elementsYaml: '{{ .agents | toJson }}'
template:
metadata:
name: 'mixingx-dev-agent-{{ .id }}'
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-agent-unit
helm:
releaseName: 'mixingx-dev-agent-{{ .id }}'
valueFiles:
- $values/environments/dev/image-version.yaml
- $values/environments/dev/agent-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-dev
syncPolicy:
syncOptions:
- CreateNamespace=true
+49
View File
@@ -0,0 +1,49 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: mixingx-dev-edges
namespace: argocd
spec:
goTemplate: true
goTemplateOptions:
- missingkey=error
generators:
- matrix:
generators:
- git:
repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
revision: master
files:
- path: environments/dev/edges.yaml
- list:
elementsYaml: '{{ .edges | toJson }}'
template:
metadata:
name: 'mixingx-dev-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-dev-edge-{{ .id }}'
valueFiles:
- $values/environments/dev/image-version.yaml
- $values/environments/dev/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-dev
syncPolicy:
syncOptions:
- CreateNamespace=true
+25
View File
@@ -0,0 +1,25 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: mixingx-dev-platform
namespace: argocd
spec:
project: default
sources:
- repoURL: https://gitee.com/mixing-tech/mixingx.hub.chart.git
targetRevision: master
path: release-charts/mixingx-platform
helm:
releaseName: mixingx-dev-platform
valueFiles:
- $values/environments/dev/image-version.yaml
- $values/environments/dev/platform-values.yaml
- repoURL: https://gitee.com/mixing-tech/mixingx.deploy.git
targetRevision: master
ref: values
destination:
server: https://kubernetes.default.svc
namespace: mixingx-dev
syncPolicy:
syncOptions:
- CreateNamespace=true