deploy: configure NC01 HWLAB monitor exposure

This commit is contained in:
root
2026-07-08 05:34:11 +02:00
parent 5dfb78f000
commit a328aa909e
41 changed files with 2522 additions and 110 deletions
+3 -1
View File
@@ -32,6 +32,7 @@ import {
type SshRemoteCommandExecutor,
type SshRemoteCommandStreamHandlers,
} from "./ssh-file-transfer";
import { readHostK8sSshClientToken } from "./host-k8s-config";
interface FrontendSession {
baseUrl: string;
@@ -282,7 +283,8 @@ async function loginFrontend(host: string, config: UniDeskConfig): Promise<Front
function sshClientTokenFromEnv(env: NodeJS.ProcessEnv = process.env): string | null {
const token = env.UNIDESK_SSH_CLIENT_TOKEN?.trim() ?? "";
return token.length > 0 ? token : null;
if (token.length > 0) return token;
return readHostK8sSshClientToken();
}
function scopedSshFrontendSession(host: string, config: UniDeskConfig, token: string): FrontendSession {