🌳
pt0/deployF/defaultKanikoCfgF.mts
5import type { AppCfg } from './k8sF/ctxF/appCfgCtxF.mts'
7export const applyDefaultKanikoCfg = (appCfg: AppCfg): AppCfg => {
8 const kanAllKlusters = {allKlusters: {[kanKlusterCfg.cluster_name]: kanKlusterCfg}} as const
9 if (hetzn1Kan && !appCfg.gitsshHost && !appCfg.git_repo_name && appCfg.kanikoLocalContext === false) {
10 const kanCfg = isOcWeb ? {
11 ...hetzn1Kan,
12 gitsshHost: process.env.GITSSH_HOST || hetzn1Kan.gitsshHost,
13 gitsshRepoPath: process.env.GITSSH_REPO || hetzn1Kan.gitsshRepoPath,
14 } : hetzn1Kan
15 mutateAppCfg(appCfg, kanCfg, kanAllKlusters)
16 return appCfg
17 }
18 mutateAppCfg(appCfg, kanAllKlusters)
19 return appCfg