🌳
pt0/deployF/k8sF/kanikoF/validateKanikoBuildConfigAI.mts
5export const validateKanikoBuildConfig = () => {
6 const appCfg = getAppCfg() as Record<string, any>
7 const {kanikoClusterName, cluster_name} = appCfg
8 const kanikoCluster = kanikoClusterName || cluster_name
9 assertDefined(kanikoCluster)
11 const {k8sCloudName} = getCurKlusterCfg(kanikoCluster)
12 assertDefined(k8sCloudName, {kanikoCluster})
14 return {kanikoCluster, k8sCloudName}