1import { getCurKlusterCfg } from '../ctxF/klusterCtxF.mts'2import { getAppCfg } from '../ctxF/appCfgCtxF.mts'3import { assertDefined } from '../../../sharedF/assertsF/assertDefinedF.mts'5export const validateKanikoBuildConfig = () => {7 const {kanikoClusterName, cluster_name} = appCfg8 const kanikoCluster = kanikoClusterName || cluster_name9 assertDefined(kanikoCluster)11 const {k8sCloudName} = getCurKlusterCfg(kanikoCluster)12 assertDefined(k8sCloudName, {kanikoCluster})14 return {kanikoCluster, k8sCloudName}15}