fix: remove legacy simulator runtime defaults
This commit is contained in:
@@ -34,11 +34,6 @@ const defaultServiceIds = Object.freeze([
|
||||
"hwlab-agent-worker",
|
||||
"hwlab-device-pod",
|
||||
"hwlab-gateway",
|
||||
"hwlab-gateway-simu",
|
||||
"hwlab-box-simu",
|
||||
"hwlab-patch-panel",
|
||||
"hwlab-router",
|
||||
"hwlab-tunnel-client",
|
||||
"hwlab-edge-proxy",
|
||||
"hwlab-cli",
|
||||
"hwlab-agent-skills"
|
||||
@@ -688,10 +683,6 @@ function transformWorkloads({ workloads, deploy, catalog, source, registryPrefix
|
||||
});
|
||||
}
|
||||
}
|
||||
if (serviceIdForWorkload(item, null) === "hwlab-tunnel-client" && typeof item.spec?.replicas === "number") {
|
||||
item.spec.replicas = 0;
|
||||
}
|
||||
|
||||
const podTemplate = item?.spec?.template;
|
||||
if (!podTemplate?.spec?.containers) continue;
|
||||
const templateServiceId = serviceIdForWorkload(item, podTemplate.spec.containers[0]);
|
||||
@@ -771,12 +762,6 @@ function transformWorkloads({ workloads, deploy, catalog, source, registryPrefix
|
||||
if (serviceId === "hwlab-cli") {
|
||||
upsertEnv(container.env, "HWLAB_CLI_ENDPOINT", runtimeEndpoint);
|
||||
}
|
||||
if (serviceId === "hwlab-tunnel-client") {
|
||||
upsertEnv(container.env, "HWLAB_TUNNEL_MODE", "disabled-g14-gitops");
|
||||
upsertEnv(container.env, "HWLAB_FRP_SERVER_ADDR", "");
|
||||
upsertEnv(container.env, "HWLAB_FRP_PUBLIC_PORT", "0");
|
||||
upsertEnv(container.env, "HWLAB_FRP_WEB_PUBLIC_PORT", "0");
|
||||
}
|
||||
}
|
||||
rewritePodSecretRefs(podTemplate.spec, profile);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user