1import { getEnvConf } from "../../../../serverF/envConfF.mts"2import { getInCluster } from "../../../../serverF/getReqEnvConfItemF.mts"3import { enterKlusterCtxs, type KlusterCfg } from "../../../k8sF/ctxF/klusterCtxF.mts"4import { k3sExtIpSyncCore } from './k3sExtIpSyncCoreAI.mts'5import { betLog } from "../../../../sharedF/betterConsLogF.mts"6import { actionCtx } from "../../../ctxF/actionCtxF.mts"8const envConf = getEnvConf()9const cluster_name = getInCluster()10const {klustCertsH, cfApiKeySecretName, domainNames} = envConf12enterKlusterCtxs({cluster_name, klustCertsH, cfApiKeySecretName, domainNames} as KlusterCfg)13actionCtx.enterWith({...actionCtx.getStore(), action: 'apply'})16console.log('starting k3sextipsync...')18await k3sExtIpSyncCore()20console.log('k3sextipsync completed successfully')