1import { genContext } from '../../serverF/genContextF.mts'2import type { KlusterCfg } from '../k8sF/ctxF/klusterCtxF.mts'4export type HarvKlusterCfg = KlusterCfg & {5 accessByIp?: string6 harvVersion?: string7 nodeHostnames?: string[]8 nodeHostname?: string9 ip?: string10}12export type HarvSetupCfg = {13 clusterVip: string14 harvVersion: string15 clusterToken: string16 nodePassword: string17}19export const harvSetupCtx = genContext<HarvSetupCfg>()21export const harvServerUrl = () => {22 const {clusterVip} = harvSetupCtx.getStore() || {} as Partial<HarvSetupCfg>23 const harvPort = '443'24 return `https://${clusterVip}:${harvPort}`25}