fix: make hwlab cli a short web client

This commit is contained in:
Codex
2026-05-30 12:31:07 +08:00
parent 6edce687ca
commit 395216122a
45 changed files with 767 additions and 3903 deletions
-5
View File
@@ -38,7 +38,6 @@ const defaultServiceIds = Object.freeze([
"hwlab-device-pod",
"hwlab-gateway",
"hwlab-edge-proxy",
"hwlab-cli",
"hwlab-agent-skills"
]);
const v02RuntimeServiceIds = Object.freeze([
@@ -49,7 +48,6 @@ const v02RuntimeServiceIds = Object.freeze([
"hwlab-device-pod",
"hwlab-gateway",
"hwlab-edge-proxy",
"hwlab-cli",
"hwlab-agent-skills"
]);
const v02RemovedServiceIds = new Set([
@@ -865,9 +863,6 @@ function transformWorkloads({ workloads, deploy, catalog, source, registryPrefix
upsertEnv(container.env, "HWLAB_API_BASE_URL", `http://hwlab-cloud-api.${namespace}.svc.cluster.local:6667`);
upsertEnv(container.env, "HWLAB_PUBLIC_ENDPOINT", webEndpoint);
}
if (serviceId === "hwlab-cli") {
upsertEnv(container.env, "HWLAB_CLI_ENDPOINT", runtimeEndpoint);
}
}
rewritePodSecretRefs(podTemplate.spec, profile);
}