From 2b5d3ef50526e67269f7e13e83a9962ede8ede11 Mon Sep 17 00:00:00 2001 From: Codex Date: Wed, 15 Jul 2026 16:25:54 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A3=B0=E6=98=8E=20HWLAB=20production?= =?UTF-8?q?=20=E6=8E=A7=E5=88=B6=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/hwlab-node-control-plane.yaml | 51 ++++++++++++++++++++++++---- 1 file changed, 45 insertions(+), 6 deletions(-) diff --git a/config/hwlab-node-control-plane.yaml b/config/hwlab-node-control-plane.yaml index 39ccbd02..d04d2d6e 100644 --- a/config/hwlab-node-control-plane.yaml +++ b/config/hwlab-node-control-plane.yaml @@ -853,7 +853,7 @@ targets: source: repository: pikasTech/HWLAB branch: v0.3 - sourceAuthority: + sourceAuthority: &nc01-v03-source-authority mode: giteaSnapshot resolver: gitea-mirror giteaMirrorRepoKey: hwlab-nc01-v03 @@ -867,7 +867,7 @@ targets: gitops: branch: v0.3-gitops path: deploy/gitops/node/nc01/runtime-v03 - gitMirror: + gitMirror: &nc01-v03-git-mirror namespace: devops-infra serviceReadName: git-mirror-http serviceWriteName: git-mirror-write @@ -897,7 +897,7 @@ targets: tokenSourceRef: /root/.unidesk/.env/gh_token.txt tokenSourceKey: GH_TOKEN tekton: - install: + install: &nc01-v03-tekton-install enabled: true sourceKind: url version: pipeline-v1.12.0-triggers-v0.34.0 @@ -923,7 +923,7 @@ targets: pipelineName: hwlab-nc01-v03-ci-image-publish serviceAccountName: hwlab-nc01-v03-tekton-runner pipelineRunPrefix: hwlab-nc01-v03-ci-poll - gitWorkspaceSecret: + gitWorkspaceSecret: &nc01-v03-git-workspace-secret name: hwlab-git-ssh namespace: hwlab-ci sourceRefFrom: gitMirror.githubTransport @@ -937,7 +937,7 @@ targets: namespace: argocd roleName: hwlab-nc01-v03-argo-observer roleBindingName: hwlab-nc01-v03-argo-observer - toolsImage: + toolsImage: &nc01-v03-tools-image output: 127.0.0.1:5000/hwlab/hwlab-ci-node-tools:node22-alpine-bun-v1 imagePullPolicy: Always sourceKind: dockerfile @@ -1018,7 +1018,7 @@ targets: projectName: hwlab-nc01 applicationName: hwlab-node-v03 applicationFile: application-v03.yaml - install: + install: &nc01-v03-argo-install enabled: true sourceKind: url version: v3.4.2 @@ -1062,6 +1062,45 @@ targets: - argocd-repo-server statefulSets: - argocd-application-controller + - id: nc01-production + node: NC01 + lane: production + enabled: true + ciNamespace: hwlab-ci + runtimeNamespace: hwlab-production + source: + repository: pikasTech/HWLAB + branch: release + sourceAuthority: *nc01-v03-source-authority + sourceSnapshot: + stageRefPrefix: refs/unidesk/snapshots/gitea-actions/hwlab-node-runtime/{branch} + missingObjectPolicy: fail-fast + refreshPolicy: gitea-controlled-snapshot + gitops: + branch: release-gitops + path: deploy/gitops/node/nc01/runtime-production + gitMirror: *nc01-v03-git-mirror + tekton: + install: *nc01-v03-tekton-install + pipelineName: hwlab-nc01-production-ci-image-publish + serviceAccountName: hwlab-nc01-production-tekton-runner + pipelineRunPrefix: hwlab-nc01-production-ci-poll + gitWorkspaceSecret: *nc01-v03-git-workspace-secret + runtimeObserverRbac: + namespace: hwlab-production + roleName: hwlab-nc01-production-runtime-observer + roleBindingName: hwlab-nc01-production-runtime-observer + argoObserverRbac: + namespace: argocd + roleName: hwlab-nc01-production-argo-observer + roleBindingName: hwlab-nc01-production-argo-observer + toolsImage: *nc01-v03-tools-image + argo: + namespace: argocd + projectName: hwlab-nc01 + applicationName: hwlab-node-production + applicationFile: application-production.yaml + install: *nc01-v03-argo-install - id: d518-v03 node: D518 lane: v03