deploy: configure NC01 HWLAB monitor exposure
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user