🌳
pt0/deployF/harvF/harvSetupCtxF.mts
4export type HarvKlusterCfg = KlusterCfg & {
5 accessByIp?: string
6 harvVersion?: string
7 nodeHostnames?: string[]
8 nodeHostname?: string
9 ip?: string
12export type HarvSetupCfg = {
13 clusterVip: string
14 harvVersion: string
15 clusterToken: string
16 nodePassword: string
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}`