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