1import { eptMjsRunner } from '../../../eptMjsRunnerF.mts'2import { homeAssSvcPortNo as portNo } from '../configF.mts'3import { klusterCtx } from '../../../k8sF/ctxF/klusterCtxF.mts'4import { kubeSvcTmpl } from '../../../k8sF/kubeSvcTmplF.mts'5import { genericIngressTmpl } from '../../../k8sF/generic1IngressTmplF.mts'6import { fixHomeAssCfg } from '../syncHomeAssProxyF.mts'7import { resourcesAction } from '../../../k8sF/resourcesActionF.mts'8import { ptAnchorInclude } from '../../../../serverF/libF/ptAnchorIncludeF.mts'9import { tsImportMetaUrl } from '../../../../ptDirF.mts'11const runFilePath = ptAnchorInclude('./run.mts', import.meta.url)13export const k8sHomeAssProxy = async ({name='assproxy', hostname}: {name?: string, hostname: string}) => {14 const kcfg = klusterCtx.getStore()15 // await doSyncHomeAss({hostname}) // broke17 await fixHomeAssCfg()19 await resourcesAction({20 resources: [21 genericIngressTmpl({name, hostname, portNo}),22 kubeSvcTmpl({name, portNo})23 ]24 })25 await eptMjsRunner({26 ...kcfg,27 importMetaUrl: tsImportMetaUrl(import.meta.url),28 nameNoCiBase: name,29 runFilePath,30 })31}