@catladder/cli 3.46.1 → 3.46.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (500) hide show
  1. package/babel-inline.json +11 -0
  2. package/dist/bundles/catenv/index.js +2 -2
  3. package/dist/bundles/cli/index.js +1 -1
  4. package/dist/cli/src/apps/catci/catci.d.ts +1 -1
  5. package/dist/cli/src/apps/catci/catci.js +23 -20
  6. package/dist/cli/src/apps/catci/commands/security/auditDocument.d.ts +16 -16
  7. package/dist/cli/src/apps/catci/commands/security/auditDocument.js +54 -65
  8. package/dist/cli/src/apps/catci/commands/security/commands.d.ts +1 -1
  9. package/dist/cli/src/apps/catci/commands/security/commands.js +91 -83
  10. package/dist/cli/src/apps/catci/commands/security/createSecurityAuditMergeRequest.d.ts +11 -6
  11. package/dist/cli/src/apps/catci/commands/security/createSecurityAuditMergeRequest.js +43 -43
  12. package/dist/cli/src/apps/catci/commands/security/evaluateSecurityAudit.d.ts +5 -3
  13. package/dist/cli/src/apps/catci/commands/security/evaluateSecurityAudit.js +16 -12
  14. package/dist/cli/src/apps/catenv/catenv.d.ts +2 -2
  15. package/dist/cli/src/apps/catenv/catenv.js +15 -18
  16. package/dist/cli/src/apps/catenv/printVariables.d.ts +1 -1
  17. package/dist/cli/src/apps/catenv/printVariables.js +42 -39
  18. package/dist/cli/src/apps/catenv/types.d.ts +3 -3
  19. package/dist/cli/src/apps/catenv/types.js +4 -2
  20. package/dist/cli/src/apps/catenv/utils.d.ts +9 -6
  21. package/dist/cli/src/apps/catenv/utils.js +25 -21
  22. package/dist/cli/src/apps/catenv/verboseBanner.d.ts +1 -1
  23. package/dist/cli/src/apps/catenv/verboseBanner.js +20 -24
  24. package/dist/cli/src/apps/catenv/writeDotEnvFiles.d.ts +1 -1
  25. package/dist/cli/src/apps/catenv/writeDotEnvFiles.js +25 -22
  26. package/dist/cli/src/apps/catenv/writeEnvDTs.d.ts +1 -1
  27. package/dist/cli/src/apps/catenv/writeEnvDTs.js +31 -32
  28. package/dist/cli/src/apps/cli/cli.d.ts +1 -1
  29. package/dist/cli/src/apps/cli/cli.js +23 -24
  30. package/dist/cli/src/apps/cli/commands/cloudSQL/commandRestoreDb.d.ts +1 -1
  31. package/dist/cli/src/apps/cli/commands/cloudSQL/commandRestoreDb.js +122 -103
  32. package/dist/cli/src/apps/cli/commands/cloudSQL/index.d.ts +1 -1
  33. package/dist/cli/src/apps/cli/commands/cloudSQL/index.js +11 -7
  34. package/dist/cli/src/apps/cli/commands/general/index.d.ts +1 -1
  35. package/dist/cli/src/apps/cli/commands/general/index.js +67 -62
  36. package/dist/cli/src/apps/cli/commands/general/namespaceAutoCompletion.d.ts +2 -2
  37. package/dist/cli/src/apps/cli/commands/general/namespaceAutoCompletion.js +9 -7
  38. package/dist/cli/src/apps/cli/commands/general/portForward.d.ts +1 -1
  39. package/dist/cli/src/apps/cli/commands/general/portForward.js +42 -35
  40. package/dist/cli/src/apps/cli/commands/mongodb/index.d.ts +1 -1
  41. package/dist/cli/src/apps/cli/commands/mongodb/index.js +13 -9
  42. package/dist/cli/src/apps/cli/commands/mongodb/projectMongoDestroyMember.d.ts +1 -1
  43. package/dist/cli/src/apps/cli/commands/mongodb/projectMongoDestroyMember.js +83 -81
  44. package/dist/cli/src/apps/cli/commands/mongodb/projectMongoGetShell.d.ts +1 -1
  45. package/dist/cli/src/apps/cli/commands/mongodb/projectMongoGetShell.js +31 -29
  46. package/dist/cli/src/apps/cli/commands/mongodb/projectMongoPortForward.d.ts +1 -1
  47. package/dist/cli/src/apps/cli/commands/mongodb/projectMongoPortForward.js +54 -47
  48. package/dist/cli/src/apps/cli/commands/mongodb/utils/index.d.ts +6 -6
  49. package/dist/cli/src/apps/cli/commands/mongodb/utils/index.js +56 -52
  50. package/dist/cli/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.d.ts +1 -1
  51. package/dist/cli/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.js +140 -140
  52. package/dist/cli/src/apps/cli/commands/project/commandCloudSqlProxy.d.ts +1 -1
  53. package/dist/cli/src/apps/cli/commands/project/commandCloudSqlProxy.js +106 -107
  54. package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.d.ts +1 -1
  55. package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.js +109 -124
  56. package/dist/cli/src/apps/cli/commands/project/commandDeletePods.d.ts +1 -1
  57. package/dist/cli/src/apps/cli/commands/project/commandDeletePods.js +45 -38
  58. package/dist/cli/src/apps/cli/commands/project/commandDeleteProject.d.ts +1 -1
  59. package/dist/cli/src/apps/cli/commands/project/commandDeleteProject.js +28 -23
  60. package/dist/cli/src/apps/cli/commands/project/commandEnvVars.d.ts +1 -1
  61. package/dist/cli/src/apps/cli/commands/project/commandEnvVars.js +14 -10
  62. package/dist/cli/src/apps/cli/commands/project/commandGetMyTotalWorktime.d.ts +1 -1
  63. package/dist/cli/src/apps/cli/commands/project/commandGetMyTotalWorktime.js +9 -9
  64. package/dist/cli/src/apps/cli/commands/project/commandGetShell.d.ts +1 -1
  65. package/dist/cli/src/apps/cli/commands/project/commandGetShell.js +29 -26
  66. package/dist/cli/src/apps/cli/commands/project/commandGitlabCi.d.ts +1 -1
  67. package/dist/cli/src/apps/cli/commands/project/commandGitlabCi.js +71 -69
  68. package/dist/cli/src/apps/cli/commands/project/commandListPods.d.ts +1 -1
  69. package/dist/cli/src/apps/cli/commands/project/commandListPods.js +15 -12
  70. package/dist/cli/src/apps/cli/commands/project/commandNamespace.d.ts +1 -1
  71. package/dist/cli/src/apps/cli/commands/project/commandNamespace.js +9 -8
  72. package/dist/cli/src/apps/cli/commands/project/commandOpenEnv.d.ts +1 -1
  73. package/dist/cli/src/apps/cli/commands/project/commandOpenEnv.js +20 -14
  74. package/dist/cli/src/apps/cli/commands/project/commandOpenGit.d.ts +1 -1
  75. package/dist/cli/src/apps/cli/commands/project/commandOpenGit.js +7 -7
  76. package/dist/cli/src/apps/cli/commands/project/commandOpenLogs.d.ts +1 -1
  77. package/dist/cli/src/apps/cli/commands/project/commandOpenLogs.js +14 -10
  78. package/dist/cli/src/apps/cli/commands/project/commandPauseProject.d.ts +1 -1
  79. package/dist/cli/src/apps/cli/commands/project/commandPauseProject.js +28 -23
  80. package/dist/cli/src/apps/cli/commands/project/commandPortForward.d.ts +1 -1
  81. package/dist/cli/src/apps/cli/commands/project/commandPortForward.js +80 -63
  82. package/dist/cli/src/apps/cli/commands/project/commandRenewToken.d.ts +1 -1
  83. package/dist/cli/src/apps/cli/commands/project/commandRenewToken.js +7 -7
  84. package/dist/cli/src/apps/cli/commands/project/commandSecretsClearBackups.d.ts +1 -1
  85. package/dist/cli/src/apps/cli/commands/project/commandSecretsClearBackups.js +17 -16
  86. package/dist/cli/src/apps/cli/commands/project/commandSecurityEvaluate.d.ts +1 -1
  87. package/dist/cli/src/apps/cli/commands/project/commandSecurityEvaluate.js +16 -15
  88. package/dist/cli/src/apps/cli/commands/project/commandSetup.d.ts +1 -1
  89. package/dist/cli/src/apps/cli/commands/project/commandSetup.js +9 -8
  90. package/dist/cli/src/apps/cli/commands/project/commandTriggerCronjob.d.ts +1 -1
  91. package/dist/cli/src/apps/cli/commands/project/commandTriggerCronjob.js +51 -44
  92. package/dist/cli/src/apps/cli/commands/project/index.d.ts +1 -1
  93. package/dist/cli/src/apps/cli/commands/project/index.js +31 -27
  94. package/dist/cli/src/apps/cli/commands/project/setup/index.d.ts +1 -1
  95. package/dist/cli/src/apps/cli/commands/project/setup/index.js +25 -29
  96. package/dist/cli/src/apps/cli/commands/project/setup/logSection.d.ts +1 -1
  97. package/dist/cli/src/apps/cli/commands/project/setup/logSection.js +15 -13
  98. package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.d.ts +1 -1
  99. package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.js +40 -31
  100. package/dist/cli/src/apps/cli/commands/project/setup/setupAgents.d.ts +1 -1
  101. package/dist/cli/src/apps/cli/commands/project/setup/setupAgents.js +137 -130
  102. package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.d.ts +1 -1
  103. package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.js +42 -47
  104. package/dist/cli/src/apps/cli/commands/project/setup/setupContext.d.ts +1 -1
  105. package/dist/cli/src/apps/cli/commands/project/setup/setupContext.js +15 -13
  106. package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.d.ts +1 -1
  107. package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.js +70 -69
  108. package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.d.ts +1 -1
  109. package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.js +15 -7
  110. package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.d.ts +1 -1
  111. package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.js +21 -16
  112. package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.d.ts +1 -1
  113. package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.js +33 -27
  114. package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.d.ts +1 -1
  115. package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.js +35 -30
  116. package/dist/cli/src/apps/cli/commands/project/utils/showProjectBanner.d.ts +1 -1
  117. package/dist/cli/src/apps/cli/commands/project/utils/showProjectBanner.js +12 -10
  118. package/dist/cli/src/apps/cli/commands/theStuffThatReallyMatters/index.d.ts +1 -1
  119. package/dist/cli/src/apps/cli/commands/theStuffThatReallyMatters/index.js +31 -29
  120. package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.d.ts +1 -1
  121. package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.js +18 -14
  122. package/dist/cli/src/apps/cli/verify/index.d.ts +1 -1
  123. package/dist/cli/src/apps/cli/verify/index.js +13 -11
  124. package/dist/cli/src/catci.d.ts +1 -1
  125. package/dist/cli/src/catci.js +5 -3
  126. package/dist/cli/src/catenv.d.ts +1 -1
  127. package/dist/cli/src/catenv.js +20 -14
  128. package/dist/cli/src/cli.d.ts +1 -1
  129. package/dist/cli/src/cli.js +9 -5
  130. package/dist/cli/src/config/getProjectConfig.d.ts +8 -6
  131. package/dist/cli/src/config/getProjectConfig.js +93 -91
  132. package/dist/cli/src/config/parseChoice.d.ts +3 -3
  133. package/dist/cli/src/config/parseChoice.js +11 -6
  134. package/dist/cli/src/gcloud/artifactsRegistry.d.ts +3 -3
  135. package/dist/cli/src/gcloud/artifactsRegistry.js +12 -11
  136. package/dist/cli/src/gcloud/cloudRun/getCloudRunDomainSuffix.d.ts +1 -1
  137. package/dist/cli/src/gcloud/cloudRun/getCloudRunDomainSuffix.js +23 -22
  138. package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.d.ts +1 -1
  139. package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.js +19 -12
  140. package/dist/cli/src/gcloud/cloudSql/copyDb.d.ts +9 -9
  141. package/dist/cli/src/gcloud/cloudSql/copyDb.js +27 -16
  142. package/dist/cli/src/gcloud/cloudSql/parseConnectionString.d.ts +1 -1
  143. package/dist/cli/src/gcloud/cloudSql/parseConnectionString.js +12 -10
  144. package/dist/cli/src/gcloud/cloudSql/startProxy.d.ts +4 -4
  145. package/dist/cli/src/gcloud/cloudSql/startProxy.js +55 -39
  146. package/dist/cli/src/gcloud/enableServices.d.ts +2 -2
  147. package/dist/cli/src/gcloud/enableServices.js +8 -6
  148. package/dist/cli/src/gcloud/openDashboard.d.ts +1 -1
  149. package/dist/cli/src/gcloud/openDashboard.js +17 -13
  150. package/dist/cli/src/gcloud/serviceAccounts.d.ts +6 -6
  151. package/dist/cli/src/gcloud/serviceAccounts.js +64 -58
  152. package/dist/cli/src/git/getGetMainBranch.d.ts +1 -1
  153. package/dist/cli/src/git/getGetMainBranch.js +9 -5
  154. package/dist/cli/src/git/gitConfig.d.ts +11 -6
  155. package/dist/cli/src/git/gitConfig.js +17 -11
  156. package/dist/cli/src/git/gitProjectInformation.d.ts +6 -6
  157. package/dist/cli/src/git/gitProjectInformation.js +30 -20
  158. package/dist/cli/src/git/index.d.ts +1 -1
  159. package/dist/cli/src/git/index.js +23 -16
  160. package/dist/cli/src/index.d.ts +1 -1
  161. package/dist/cli/src/index.js +4 -2
  162. package/dist/cli/src/k8sApi/index.d.ts +1 -1
  163. package/dist/cli/src/k8sApi/index.js +14 -12
  164. package/dist/cli/src/kubernetes/index.d.ts +1 -1
  165. package/dist/cli/src/kubernetes/index.js +24 -17
  166. package/dist/cli/src/kubernetes/openKubernetesDashboards.d.ts +1 -1
  167. package/dist/cli/src/kubernetes/openKubernetesDashboards.js +35 -33
  168. package/dist/cli/src/kubernetes/portForward.d.ts +1 -1
  169. package/dist/cli/src/kubernetes/portForward.js +7 -5
  170. package/dist/cli/src/packageInfos.d.ts +1 -1
  171. package/dist/cli/src/packageInfos.js +5 -3
  172. package/dist/cli/src/types/types.d.ts +13 -13
  173. package/dist/cli/src/types/types.js +4 -2
  174. package/dist/cli/src/utils/boxWithAscii.d.ts +1 -1
  175. package/dist/cli/src/utils/boxWithAscii.js +12 -10
  176. package/dist/cli/src/utils/cluster.d.ts +1 -1
  177. package/dist/cli/src/utils/cluster.js +8 -6
  178. package/dist/cli/src/utils/editAsFile.d.ts +1 -1
  179. package/dist/cli/src/utils/editAsFile.js +25 -17
  180. package/dist/cli/src/utils/files.d.ts +1 -1
  181. package/dist/cli/src/utils/files.js +15 -12
  182. package/dist/cli/src/utils/getEditor.d.ts +2 -2
  183. package/dist/cli/src/utils/getEditor.js +20 -14
  184. package/dist/cli/src/utils/gitlab.d.ts +9 -9
  185. package/dist/cli/src/utils/gitlab.js +188 -166
  186. package/dist/cli/src/utils/log.d.ts +2 -2
  187. package/dist/cli/src/utils/log.js +18 -16
  188. package/dist/cli/src/utils/portForwards.d.ts +5 -5
  189. package/dist/cli/src/utils/portForwards.js +32 -31
  190. package/dist/cli/src/utils/preferences.d.ts +1 -1
  191. package/dist/cli/src/utils/preferences.js +43 -36
  192. package/dist/cli/src/utils/projects/index.d.ts +1 -1
  193. package/dist/cli/src/utils/projects/index.js +24 -21
  194. package/dist/cli/src/utils/promise.d.ts +1 -1
  195. package/dist/cli/src/utils/promise.js +8 -6
  196. package/dist/cli/src/utils/shell.d.ts +1 -1
  197. package/dist/cli/src/utils/shell.js +20 -19
  198. package/dist/pipeline/src/bash/BashExpression.d.ts +18 -18
  199. package/dist/pipeline/src/bash/BashExpression.js +44 -45
  200. package/dist/pipeline/src/bash/bashEscape.d.ts +6 -4
  201. package/dist/pipeline/src/bash/bashEscape.js +63 -73
  202. package/dist/pipeline/src/bash/bashExpressionPerPipelineType.d.ts +3 -5
  203. package/dist/pipeline/src/bash/bashExpressionPerPipelineType.js +7 -6
  204. package/dist/pipeline/src/bash/bashYaml.d.ts +1 -1
  205. package/dist/pipeline/src/bash/bashYaml.js +41 -46
  206. package/dist/pipeline/src/bash/getInjectVarsScript.d.ts +1 -1
  207. package/dist/pipeline/src/bash/getInjectVarsScript.js +11 -14
  208. package/dist/pipeline/src/bash/index.d.ts +1 -1
  209. package/dist/pipeline/src/bash/index.js +23 -16
  210. package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.d.ts +1 -1
  211. package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js +41 -50
  212. package/dist/pipeline/src/build/base/constants.d.ts +4 -4
  213. package/dist/pipeline/src/build/base/constants.js +8 -6
  214. package/dist/pipeline/src/build/base/createAppBuildJob.d.ts +7 -1
  215. package/dist/pipeline/src/build/base/createAppBuildJob.js +37 -43
  216. package/dist/pipeline/src/build/base/createArtifactsConfig.d.ts +1 -1
  217. package/dist/pipeline/src/build/base/createArtifactsConfig.js +16 -25
  218. package/dist/pipeline/src/build/base/createBuildJobDefinition.d.ts +3 -3
  219. package/dist/pipeline/src/build/base/createBuildJobDefinition.js +16 -22
  220. package/dist/pipeline/src/build/base/index.d.ts +4 -4
  221. package/dist/pipeline/src/build/base/index.js +15 -34
  222. package/dist/pipeline/src/build/base/writeBuildInfo.d.ts +1 -1
  223. package/dist/pipeline/src/build/base/writeBuildInfo.js +7 -7
  224. package/dist/pipeline/src/build/base/writeDotEnv.d.ts +1 -1
  225. package/dist/pipeline/src/build/base/writeDotEnv.js +19 -21
  226. package/dist/pipeline/src/build/cache/createJobCache.d.ts +1 -1
  227. package/dist/pipeline/src/build/cache/createJobCache.js +47 -49
  228. package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.d.ts +1 -1
  229. package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.js +16 -23
  230. package/dist/pipeline/src/build/cache/transformLegacyJobCache.d.ts +1 -1
  231. package/dist/pipeline/src/build/cache/transformLegacyJobCache.js +14 -12
  232. package/dist/pipeline/src/build/custom/buildJob.d.ts +1 -1
  233. package/dist/pipeline/src/build/custom/buildJob.js +16 -16
  234. package/dist/pipeline/src/build/custom/index.d.ts +1 -1
  235. package/dist/pipeline/src/build/custom/index.js +7 -5
  236. package/dist/pipeline/src/build/custom/testJob.d.ts +2 -2
  237. package/dist/pipeline/src/build/custom/testJob.js +67 -71
  238. package/dist/pipeline/src/build/docker.d.ts +49 -45
  239. package/dist/pipeline/src/build/docker.js +104 -129
  240. package/dist/pipeline/src/build/index.d.ts +13 -17
  241. package/dist/pipeline/src/build/index.js +80 -73
  242. package/dist/pipeline/src/build/node/buildJob.d.ts +1 -1
  243. package/dist/pipeline/src/build/node/buildJob.js +34 -37
  244. package/dist/pipeline/src/build/node/cache.d.ts +1 -1
  245. package/dist/pipeline/src/build/node/cache.js +34 -56
  246. package/dist/pipeline/src/build/node/constants.d.ts +4 -4
  247. package/dist/pipeline/src/build/node/constants.js +8 -6
  248. package/dist/pipeline/src/build/node/index.d.ts +1 -1
  249. package/dist/pipeline/src/build/node/index.js +11 -9
  250. package/dist/pipeline/src/build/node/meteor.d.ts +1 -1
  251. package/dist/pipeline/src/build/node/meteor.js +39 -54
  252. package/dist/pipeline/src/build/node/testJob.d.ts +1 -1
  253. package/dist/pipeline/src/build/node/testJob.js +71 -93
  254. package/dist/pipeline/src/build/node/yarn.d.ts +2 -2
  255. package/dist/pipeline/src/build/node/yarn.js +28 -47
  256. package/dist/pipeline/src/build/rails/build.d.ts +1 -1
  257. package/dist/pipeline/src/build/rails/build.js +37 -44
  258. package/dist/pipeline/src/build/rails/index.d.ts +1 -1
  259. package/dist/pipeline/src/build/rails/index.js +7 -5
  260. package/dist/pipeline/src/build/rails/testJob.d.ts +1 -1
  261. package/dist/pipeline/src/build/rails/testJob.js +71 -101
  262. package/dist/pipeline/src/build/types.d.ts +294 -294
  263. package/dist/pipeline/src/build/types.js +10 -10
  264. package/dist/pipeline/src/catenv/index.d.ts +3 -3
  265. package/dist/pipeline/src/catenv/index.js +10 -8
  266. package/dist/pipeline/src/config/configruedEnvs.d.ts +1 -1
  267. package/dist/pipeline/src/config/configruedEnvs.js +18 -23
  268. package/dist/pipeline/src/config/index.d.ts +1 -1
  269. package/dist/pipeline/src/config/index.js +23 -16
  270. package/dist/pipeline/src/config/readConfig.d.ts +4 -4
  271. package/dist/pipeline/src/config/readConfig.js +34 -32
  272. package/dist/pipeline/src/constants.d.ts +1 -1
  273. package/dist/pipeline/src/constants.js +6 -5
  274. package/dist/pipeline/src/context/createAllComponentsContext.d.ts +8 -4
  275. package/dist/pipeline/src/context/createAllComponentsContext.js +22 -16
  276. package/dist/pipeline/src/context/createComponentContext.d.ts +6 -6
  277. package/dist/pipeline/src/context/createComponentContext.js +87 -96
  278. package/dist/pipeline/src/context/createWorkspaceContext.d.ts +15 -8
  279. package/dist/pipeline/src/context/createWorkspaceContext.js +37 -28
  280. package/dist/pipeline/src/context/getBuildInfoVariables.d.ts +2 -2
  281. package/dist/pipeline/src/context/getBuildInfoVariables.js +22 -21
  282. package/dist/pipeline/src/context/getEnvConfig.d.ts +1 -1
  283. package/dist/pipeline/src/context/getEnvConfig.js +29 -28
  284. package/dist/pipeline/src/context/getEnvType.d.ts +2 -2
  285. package/dist/pipeline/src/context/getEnvType.js +10 -9
  286. package/dist/pipeline/src/context/getEnvironment.d.ts +1 -1
  287. package/dist/pipeline/src/context/getEnvironment.js +20 -16
  288. package/dist/pipeline/src/context/getEnvironmentContext.d.ts +6 -1
  289. package/dist/pipeline/src/context/getEnvironmentContext.js +35 -28
  290. package/dist/pipeline/src/context/getEnvironmentVariables.d.ts +11 -11
  291. package/dist/pipeline/src/context/getEnvironmentVariables.js +102 -95
  292. package/dist/pipeline/src/context/getLabels.d.ts +7 -7
  293. package/dist/pipeline/src/context/getLabels.js +26 -25
  294. package/dist/pipeline/src/context/getReviewSlug.d.ts +1 -1
  295. package/dist/pipeline/src/context/getReviewSlug.js +12 -10
  296. package/dist/pipeline/src/context/index.d.ts +1 -1
  297. package/dist/pipeline/src/context/index.js +23 -16
  298. package/dist/pipeline/src/context/transformJobOnlyVars.d.ts +3 -3
  299. package/dist/pipeline/src/context/transformJobOnlyVars.js +21 -21
  300. package/dist/pipeline/src/context/utils/envVars.d.ts +3 -3
  301. package/dist/pipeline/src/context/utils/envVars.js +12 -12
  302. package/dist/pipeline/src/defaults/index.d.ts +1 -1
  303. package/dist/pipeline/src/defaults/index.js +6 -4
  304. package/dist/pipeline/src/deploy/base/deploy.d.ts +1 -1
  305. package/dist/pipeline/src/deploy/base/deploy.js +75 -100
  306. package/dist/pipeline/src/deploy/base/index.d.ts +4 -4
  307. package/dist/pipeline/src/deploy/base/index.js +6 -10
  308. package/dist/pipeline/src/deploy/base/rollback.d.ts +1 -1
  309. package/dist/pipeline/src/deploy/base/rollback.js +30 -26
  310. package/dist/pipeline/src/deploy/base/stop.d.ts +1 -1
  311. package/dist/pipeline/src/deploy/base/stop.js +30 -25
  312. package/dist/pipeline/src/deploy/base/variables.d.ts +4 -4
  313. package/dist/pipeline/src/deploy/base/variables.js +8 -6
  314. package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.d.ts +1 -1
  315. package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.js +55 -67
  316. package/dist/pipeline/src/deploy/cloudRun/cleanup.d.ts +1 -1
  317. package/dist/pipeline/src/deploy/cloudRun/cleanup.js +16 -17
  318. package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.d.ts +1 -1
  319. package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.js +44 -41
  320. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.d.ts +4 -4
  321. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js +58 -63
  322. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.d.ts +1 -1
  323. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js +63 -73
  324. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunWorkerPools.d.ts +1 -1
  325. package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunWorkerPools.js +38 -38
  326. package/dist/pipeline/src/deploy/cloudRun/createJobs/common.d.ts +7 -7
  327. package/dist/pipeline/src/deploy/cloudRun/createJobs/common.js +33 -38
  328. package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.d.ts +1 -1
  329. package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.js +5 -3
  330. package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.d.ts +1 -1
  331. package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.js +57 -67
  332. package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/schedules.d.ts +1 -1
  333. package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/schedules.js +115 -118
  334. package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.d.ts +1 -1
  335. package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js +10 -32
  336. package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.d.ts +1 -1
  337. package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.js +9 -23
  338. package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.d.ts +3 -3
  339. package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.js +36 -39
  340. package/dist/pipeline/src/deploy/cloudRun/createJobs/index.d.ts +1 -1
  341. package/dist/pipeline/src/deploy/cloudRun/createJobs/index.js +36 -37
  342. package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.d.ts +1 -1
  343. package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.js +19 -13
  344. package/dist/pipeline/src/deploy/cloudRun/index.d.ts +1 -1
  345. package/dist/pipeline/src/deploy/cloudRun/index.js +72 -76
  346. package/dist/pipeline/src/deploy/cloudRun/utils/cloudRunExecutionUrl.d.ts +9 -5
  347. package/dist/pipeline/src/deploy/cloudRun/utils/cloudRunExecutionUrl.js +13 -7
  348. package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.d.ts +1 -1
  349. package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.js +13 -17
  350. package/dist/pipeline/src/deploy/cloudRun/utils/database.d.ts +5 -5
  351. package/dist/pipeline/src/deploy/cloudRun/utils/database.js +46 -79
  352. package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.d.ts +1 -1
  353. package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.js +6 -6
  354. package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.d.ts +1 -1
  355. package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.js +7 -9
  356. package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.d.ts +1 -1
  357. package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.js +6 -4
  358. package/dist/pipeline/src/deploy/cloudRun/utils/jobName.d.ts +1 -1
  359. package/dist/pipeline/src/deploy/cloudRun/utils/jobName.js +5 -3
  360. package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.d.ts +1 -1
  361. package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.js +6 -4
  362. package/dist/pipeline/src/deploy/cloudSql/utils.d.ts +1 -1
  363. package/dist/pipeline/src/deploy/cloudSql/utils.js +7 -9
  364. package/dist/pipeline/src/deploy/custom/deployJob.d.ts +1 -1
  365. package/dist/pipeline/src/deploy/custom/deployJob.js +30 -34
  366. package/dist/pipeline/src/deploy/custom/index.d.ts +1 -1
  367. package/dist/pipeline/src/deploy/custom/index.js +9 -7
  368. package/dist/pipeline/src/deploy/dockerTag/deployJob.d.ts +1 -1
  369. package/dist/pipeline/src/deploy/dockerTag/deployJob.js +18 -22
  370. package/dist/pipeline/src/deploy/dockerTag/index.d.ts +1 -1
  371. package/dist/pipeline/src/deploy/dockerTag/index.js +9 -7
  372. package/dist/pipeline/src/deploy/index.d.ts +6 -8
  373. package/dist/pipeline/src/deploy/index.js +27 -20
  374. package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.d.ts +5 -3
  375. package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.js +25 -19
  376. package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.d.ts +7 -7
  377. package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.js +36 -35
  378. package/dist/pipeline/src/deploy/kubernetes/deployJob.d.ts +1 -1
  379. package/dist/pipeline/src/deploy/kubernetes/deployJob.js +46 -61
  380. package/dist/pipeline/src/deploy/kubernetes/index.d.ts +1 -1
  381. package/dist/pipeline/src/deploy/kubernetes/index.js +54 -45
  382. package/dist/pipeline/src/deploy/kubernetes/kubeEnv.d.ts +3 -3
  383. package/dist/pipeline/src/deploy/kubernetes/kubeEnv.js +35 -34
  384. package/dist/pipeline/src/deploy/kubernetes/kubeValues.d.ts +84 -84
  385. package/dist/pipeline/src/deploy/kubernetes/kubeValues.js +70 -63
  386. package/dist/pipeline/src/deploy/kubernetes/mongodb.d.ts +28 -28
  387. package/dist/pipeline/src/deploy/kubernetes/mongodb.js +88 -93
  388. package/dist/pipeline/src/deploy/types/base.d.ts +27 -27
  389. package/dist/pipeline/src/deploy/types/base.js +4 -2
  390. package/dist/pipeline/src/deploy/types/custom.d.ts +25 -25
  391. package/dist/pipeline/src/deploy/types/custom.js +4 -2
  392. package/dist/pipeline/src/deploy/types/dockerTag.d.ts +10 -10
  393. package/dist/pipeline/src/deploy/types/dockerTag.js +4 -2
  394. package/dist/pipeline/src/deploy/types/executeBase.d.ts +15 -15
  395. package/dist/pipeline/src/deploy/types/executeBase.js +4 -2
  396. package/dist/pipeline/src/deploy/types/googleCloudRun.d.ts +435 -435
  397. package/dist/pipeline/src/deploy/types/googleCloudRun.js +16 -14
  398. package/dist/pipeline/src/deploy/types/index.d.ts +6 -6
  399. package/dist/pipeline/src/deploy/types/index.js +27 -21
  400. package/dist/pipeline/src/deploy/types/kubernetes.d.ts +255 -255
  401. package/dist/pipeline/src/deploy/types/kubernetes.js +4 -2
  402. package/dist/pipeline/src/deploy/utils.d.ts +1 -1
  403. package/dist/pipeline/src/deploy/utils.js +23 -21
  404. package/dist/pipeline/src/globalScriptFunctions/index.d.ts +6 -6
  405. package/dist/pipeline/src/globalScriptFunctions/index.js +21 -19
  406. package/dist/pipeline/src/index.d.ts +1 -1
  407. package/dist/pipeline/src/index.js +23 -16
  408. package/dist/pipeline/src/pipeline/agent/createAgentContext.d.ts +19 -19
  409. package/dist/pipeline/src/pipeline/agent/createAgentContext.js +41 -37
  410. package/dist/pipeline/src/pipeline/agent/createAgentEventJob.d.ts +1 -1
  411. package/dist/pipeline/src/pipeline/agent/createAgentEventJob.js +30 -31
  412. package/dist/pipeline/src/pipeline/agent/createAgentReviewJob.d.ts +1 -1
  413. package/dist/pipeline/src/pipeline/agent/createAgentReviewJob.js +36 -44
  414. package/dist/pipeline/src/pipeline/agent/createJobsForAgentContext.d.ts +1 -1
  415. package/dist/pipeline/src/pipeline/agent/createJobsForAgentContext.js +7 -5
  416. package/dist/pipeline/src/pipeline/agent/prompts.d.ts +2 -2
  417. package/dist/pipeline/src/pipeline/agent/prompts.js +32 -14
  418. package/dist/pipeline/src/pipeline/agent/shared.d.ts +5 -3
  419. package/dist/pipeline/src/pipeline/agent/shared.js +26 -24
  420. package/dist/pipeline/src/pipeline/agent/utils.d.ts +1 -1
  421. package/dist/pipeline/src/pipeline/agent/utils.js +11 -9
  422. package/dist/pipeline/src/pipeline/createAllJobs.d.ts +17 -13
  423. package/dist/pipeline/src/pipeline/createAllJobs.js +56 -44
  424. package/dist/pipeline/src/pipeline/createJobsForComponent.d.ts +1 -1
  425. package/dist/pipeline/src/pipeline/createJobsForComponent.js +28 -27
  426. package/dist/pipeline/src/pipeline/createJobsForWorkspace.d.ts +1 -1
  427. package/dist/pipeline/src/pipeline/createJobsForWorkspace.js +8 -6
  428. package/dist/pipeline/src/pipeline/createMainPipeline.d.ts +1 -1
  429. package/dist/pipeline/src/pipeline/createMainPipeline.js +85 -79
  430. package/dist/pipeline/src/pipeline/generatePipelineFiles.d.ts +1 -1
  431. package/dist/pipeline/src/pipeline/generatePipelineFiles.js +78 -58
  432. package/dist/pipeline/src/pipeline/getPipelineStages.d.ts +1 -1
  433. package/dist/pipeline/src/pipeline/getPipelineStages.js +8 -10
  434. package/dist/pipeline/src/pipeline/gitlab/cache.d.ts +5 -5
  435. package/dist/pipeline/src/pipeline/gitlab/cache.js +26 -24
  436. package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.d.ts +4 -4
  437. package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.js +228 -239
  438. package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.d.ts +7 -2
  439. package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.js +64 -59
  440. package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.d.ts +34 -34
  441. package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.js +37 -47
  442. package/dist/pipeline/src/pipeline/gitlab/sortGitLabJobDefProps.d.ts +1 -1
  443. package/dist/pipeline/src/pipeline/gitlab/sortGitLabJobDefProps.js +10 -40
  444. package/dist/pipeline/src/pipeline/index.d.ts +1 -1
  445. package/dist/pipeline/src/pipeline/index.js +23 -16
  446. package/dist/pipeline/src/pipeline/packageManager.d.ts +1 -1
  447. package/dist/pipeline/src/pipeline/packageManager.js +47 -59
  448. package/dist/pipeline/src/rules/index.d.ts +1 -1
  449. package/dist/pipeline/src/rules/index.js +15 -13
  450. package/dist/pipeline/src/runner/index.d.ts +1 -1
  451. package/dist/pipeline/src/runner/index.js +6 -4
  452. package/dist/pipeline/src/types/agent.d.ts +15 -15
  453. package/dist/pipeline/src/types/agent.js +4 -2
  454. package/dist/pipeline/src/types/config.d.ts +152 -154
  455. package/dist/pipeline/src/types/config.js +24 -28
  456. package/dist/pipeline/src/types/context.d.ts +104 -104
  457. package/dist/pipeline/src/types/context.js +9 -7
  458. package/dist/pipeline/src/types/environmentContext.d.ts +25 -25
  459. package/dist/pipeline/src/types/environmentContext.js +4 -2
  460. package/dist/pipeline/src/types/gitlab-ci-yml.d.ts +497 -497
  461. package/dist/pipeline/src/types/gitlab-ci-yml.js +4 -2
  462. package/dist/pipeline/src/types/gitlab-types.d.ts +15 -15
  463. package/dist/pipeline/src/types/gitlab-types.js +4 -2
  464. package/dist/pipeline/src/types/hooks.d.ts +26 -26
  465. package/dist/pipeline/src/types/hooks.js +4 -2
  466. package/dist/pipeline/src/types/index.d.ts +1 -1
  467. package/dist/pipeline/src/types/index.js +23 -16
  468. package/dist/pipeline/src/types/jobDefinition.d.ts +3 -3
  469. package/dist/pipeline/src/types/jobDefinition.js +4 -2
  470. package/dist/pipeline/src/types/jobs.d.ts +93 -93
  471. package/dist/pipeline/src/types/jobs.js +5 -12
  472. package/dist/pipeline/src/types/pipeline.d.ts +1 -1
  473. package/dist/pipeline/src/types/pipeline.js +4 -2
  474. package/dist/pipeline/src/types/release.d.ts +6 -6
  475. package/dist/pipeline/src/types/release.js +4 -2
  476. package/dist/pipeline/src/types/utils.d.ts +1 -3
  477. package/dist/pipeline/src/types/utils.js +4 -2
  478. package/dist/pipeline/src/utils/gitlab.d.ts +2 -2
  479. package/dist/pipeline/src/utils/gitlab.js +12 -15
  480. package/dist/pipeline/src/utils/index.d.ts +1 -1
  481. package/dist/pipeline/src/utils/index.js +12 -9
  482. package/dist/pipeline/src/utils/jsonParse.d.ts +1 -1
  483. package/dist/pipeline/src/utils/jsonParse.js +11 -10
  484. package/dist/pipeline/src/utils/measureTime.d.ts +4 -4
  485. package/dist/pipeline/src/utils/measureTime.js +39 -34
  486. package/dist/pipeline/src/utils/removeUndefined.d.ts +1 -1
  487. package/dist/pipeline/src/utils/removeUndefined.js +6 -4
  488. package/dist/pipeline/src/utils/writeFiles.d.ts +10 -10
  489. package/dist/pipeline/src/utils/writeFiles.js +53 -59
  490. package/dist/pipeline/src/variables/VariableValue.d.ts +1 -1
  491. package/dist/pipeline/src/variables/VariableValue.js +4 -2
  492. package/dist/pipeline/src/variables/VariableValueContainingReferences.d.ts +12 -12
  493. package/dist/pipeline/src/variables/VariableValueContainingReferences.js +45 -51
  494. package/dist/pipeline/src/variables/resolveAllReferences.d.ts +1 -1
  495. package/dist/pipeline/src/variables/resolveAllReferences.js +17 -18
  496. package/dist/pipeline/src/variables/resolveAllReferencesOnce.d.ts +2 -2
  497. package/dist/pipeline/src/variables/resolveAllReferencesOnce.js +14 -17
  498. package/dist/pipeline/src/variables/resolveReferencesOnce.d.ts +3 -3
  499. package/dist/pipeline/src/variables/resolveReferencesOnce.js +17 -16
  500. package/package.json +7 -2
@@ -1,52 +1,68 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
2
+
3
+ var __importDefault = this && this.__importDefault || function (mod) {
4
+ return mod && mod.__esModule ? mod : {
5
+ "default": mod
6
+ };
4
7
  };
5
- Object.defineProperty(exports, "__esModule", { value: true });
8
+ Object.defineProperty(exports, "__esModule", {
9
+ value: true
10
+ });
6
11
  exports.startCloudSqlProxyInBackground = exports.startCloudSqlProxyInCurrentShell = exports.ERROR_NOT_INSTALLED = void 0;
7
12
  const child_process_promise_1 = require("child-process-promise");
8
13
  const command_exists_promise_1 = __importDefault(require("command-exists-promise"));
9
14
  exports.ERROR_NOT_INSTALLED = "cloud-sql-proxy not installed";
10
- const getProxyCommandSpawnArgs = async ({ localPort, instanceName, }) => {
11
- const commandString = (await (0, command_exists_promise_1.default)("cloud-sql-proxy"))
12
- ? `cloud-sql-proxy --port ${localPort} ${instanceName}`
13
- : (await (0, command_exists_promise_1.default)("cloud_sql_proxy"))
14
- ? `cloud_sql_proxy -instances ${instanceName}=tcp:${localPort}`
15
- : null;
16
- if (!commandString) {
17
- throw new Error(exports.ERROR_NOT_INSTALLED);
18
- }
19
- const [cmd, ...args] = commandString.split(" ");
20
- return { cmd, args };
15
+ const getProxyCommandSpawnArgs = async ({
16
+ localPort,
17
+ instanceName
18
+ }) => {
19
+ const commandString = (await (0, command_exists_promise_1.default)("cloud-sql-proxy")) ? `cloud-sql-proxy --port ${localPort} ${instanceName}` : (await (0, command_exists_promise_1.default)("cloud_sql_proxy")) ? `cloud_sql_proxy -instances ${instanceName}=tcp:${localPort}` : null;
20
+ if (!commandString) {
21
+ throw new Error(exports.ERROR_NOT_INSTALLED);
22
+ }
23
+ const [cmd, ...args] = commandString.split(" ");
24
+ return {
25
+ cmd,
26
+ args
27
+ };
21
28
  };
22
- const startCloudSqlProxyInCurrentShell = async (opts) => {
23
- const { cmd, args } = await getProxyCommandSpawnArgs(opts);
24
- await (0, child_process_promise_1.spawn)(cmd, args, {
25
- stdio: "inherit",
26
- shell: true,
27
- });
29
+ const startCloudSqlProxyInCurrentShell = async opts => {
30
+ const {
31
+ cmd,
32
+ args
33
+ } = await getProxyCommandSpawnArgs(opts);
34
+ await (0, child_process_promise_1.spawn)(cmd, args, {
35
+ stdio: "inherit",
36
+ shell: true
37
+ });
28
38
  };
29
39
  exports.startCloudSqlProxyInCurrentShell = startCloudSqlProxyInCurrentShell;
30
- const startCloudSqlProxyInBackground = async (opts) => {
31
- const { cmd, args } = await getProxyCommandSpawnArgs(opts);
32
- const proxyPromise = (0, child_process_promise_1.spawn)(cmd, args, { shell: "bash" });
33
- // wait until it starts
34
- await (0, child_process_promise_1.spawn)(`echo -n "Waiting for proxy"
40
+ const startCloudSqlProxyInBackground = async opts => {
41
+ const {
42
+ cmd,
43
+ args
44
+ } = await getProxyCommandSpawnArgs(opts);
45
+ const proxyPromise = (0, child_process_promise_1.spawn)(cmd, args, {
46
+ shell: "bash"
47
+ });
48
+ // wait until it starts
49
+ await (0, child_process_promise_1.spawn)(`echo -n "Waiting for proxy"
35
50
  until echo > /dev/tcp/localhost/${opts.localPort}; do
36
51
  sleep 0.2
37
52
  echo -n "."
38
- done 2>/dev/null`, [], { shell: "bash" });
39
- const stop = () => {
40
- proxyPromise.catch(() => {
41
- // ignore
42
- });
43
- proxyPromise.childProcess.kill();
44
- };
45
- // stop if catladder i stopped
46
- process.on("beforeExit", stop);
47
- return {
48
- stop,
49
- };
53
+ done 2>/dev/null`, [], {
54
+ shell: "bash"
55
+ });
56
+ const stop = () => {
57
+ proxyPromise.catch(() => {
58
+ // ignore
59
+ });
60
+ proxyPromise.childProcess.kill();
61
+ };
62
+ // stop if catladder i stopped
63
+ process.on("beforeExit", stop);
64
+ return {
65
+ stop
66
+ };
50
67
  };
51
- exports.startCloudSqlProxyInBackground = startCloudSqlProxyInBackground;
52
- //# sourceMappingURL=startProxy.js.map
68
+ exports.startCloudSqlProxyInBackground = startCloudSqlProxyInBackground;
@@ -1,3 +1,3 @@
1
1
  export declare const enableGCloudServices: (services: string[], config: {
2
- projectId: string;
3
- }) => Promise<void>;
2
+ projectId: string;
3
+ }) => Promise<void>;
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.enableGCloudServices = void 0;
4
7
  const child_process_promise_1 = require("child-process-promise");
5
8
  const enableGCloudServices = async (services, config) => {
6
- for (const service of services) {
7
- await (0, child_process_promise_1.exec)(`gcloud services enable ${service} --project=${config.projectId}`);
8
- }
9
+ for (const service of services) {
10
+ await (0, child_process_promise_1.exec)(`gcloud services enable ${service} --project=${config.projectId}`);
11
+ }
9
12
  };
10
- exports.enableGCloudServices = enableGCloudServices;
11
- //# sourceMappingURL=enableServices.js.map
13
+ exports.enableGCloudServices = enableGCloudServices;
@@ -1,2 +1,2 @@
1
1
  import type { CommandInstance } from "vorpal";
2
- export declare const openGoogleCloudDashboard: (instance: CommandInstance, path: string, params: Record<string, string>) => Promise<void>;
2
+ export declare const openGoogleCloudDashboard: (instance: CommandInstance, path: string, params: Record<string, string>) => Promise<void>;
@@ -1,20 +1,24 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
2
+
3
+ var __importDefault = this && this.__importDefault || function (mod) {
4
+ return mod && mod.__esModule ? mod : {
5
+ "default": mod
6
+ };
4
7
  };
5
- Object.defineProperty(exports, "__esModule", { value: true });
8
+ Object.defineProperty(exports, "__esModule", {
9
+ value: true
10
+ });
6
11
  exports.openGoogleCloudDashboard = void 0;
7
12
  const getGoogleAuthUserNumber_1 = require("../apps/cli/utils/getGoogleAuthUserNumber");
8
13
  const open_1 = __importDefault(require("open"));
9
14
  const openGoogleCloudDashboard = async (instance, path, params) => {
10
- const url = new URL("https://console.cloud.google.com/");
11
- url.pathname = path;
12
- for (const [key, value] of Object.entries(params)) {
13
- url.searchParams.set(key, value);
14
- }
15
- const googleAuthUserNumber = await getGoogleAuthUserNumber_1.getGoogleAuthUserNumber.call(instance);
16
- url.searchParams.set("authuser", googleAuthUserNumber);
17
- (0, open_1.default)(url.toString());
15
+ const url = new URL("https://console.cloud.google.com/");
16
+ url.pathname = path;
17
+ for (const [key, value] of Object.entries(params)) {
18
+ url.searchParams.set(key, value);
19
+ }
20
+ const googleAuthUserNumber = await getGoogleAuthUserNumber_1.getGoogleAuthUserNumber.call(instance);
21
+ url.searchParams.set("authuser", googleAuthUserNumber);
22
+ (0, open_1.default)(url.toString());
18
23
  };
19
- exports.openGoogleCloudDashboard = openGoogleCloudDashboard;
20
- //# sourceMappingURL=openDashboard.js.map
24
+ exports.openGoogleCloudDashboard = openGoogleCloudDashboard;
@@ -2,11 +2,11 @@ import type { ComponentContext } from "../../../pipeline/src/index.js";
2
2
  import type { CommandInstance } from "vorpal";
3
3
  export declare const accountExists: (fullIdentifier: string) => Promise<boolean>;
4
4
  type ServiceAccount = {
5
- projectId: string;
6
- name: string;
7
- displayName: string;
8
- roles: string[];
9
- description: string;
5
+ projectId: string;
6
+ name: string;
7
+ displayName: string;
8
+ roles: string[];
9
+ description: string;
10
10
  };
11
11
  export declare const upsertGcloudServiceAccountAndSaveSecret: (instance: CommandInstance, context: ComponentContext, account: ServiceAccount, secretName: string) => Promise<void>;
12
- export {};
12
+ export {};
@@ -1,72 +1,78 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.upsertGcloudServiceAccountAndSaveSecret = exports.accountExists = void 0;
4
7
  const child_process_promise_1 = require("child-process-promise");
5
8
  const crypto_1 = require("crypto");
6
9
  const gitlab_1 = require("../utils/gitlab");
7
- const accountExists = async (fullIdentifier) => {
8
- try {
9
- await (0, child_process_promise_1.exec)(`gcloud iam service-accounts describe ${fullIdentifier}`);
10
- return true;
11
- }
12
- catch (_a) {
13
- return false;
14
- }
10
+ const accountExists = async fullIdentifier => {
11
+ try {
12
+ await (0, child_process_promise_1.exec)(`gcloud iam service-accounts describe ${fullIdentifier}`);
13
+ return true;
14
+ } catch (_a) {
15
+ return false;
16
+ }
15
17
  };
16
18
  exports.accountExists = accountExists;
17
19
  const upsertGcloudServiceAccount = async (context, account) => {
18
- const { projectId, name, displayName, roles, description } = account;
19
- // name has limit of 30
20
- const namePrefix = `${name}`;
21
- const nameSuffixRaw = `${context.env}-${context.name}`;
22
- const nameMiddleRaw = `${context.fullConfig.customerName}-${context.fullConfig.appName}`;
23
- const MAX_LENGTH = 30;
24
- const NUM_SEPARATORS = 2;
25
- // we want to first hash middle, then suffix
26
- // if for middle we have at least 1 char left, its ok, so we don't hash nameSuffix, otherwise we need to hash that as well
27
- const middleMaxLength = MAX_LENGTH - namePrefix.length - nameSuffixRaw.length - NUM_SEPARATORS;
28
- let nameMiddle;
29
- let nameSuffix;
30
- if (middleMaxLength < 1) {
31
- nameMiddle = hashIfNessecary(nameMiddleRaw, 1);
32
- nameSuffix = hashIfNessecary(nameSuffixRaw, MAX_LENGTH - namePrefix.length - 1 - NUM_SEPARATORS);
33
- }
34
- else {
35
- nameMiddle = hashIfNessecary(nameMiddleRaw, middleMaxLength);
36
- nameSuffix = nameSuffixRaw;
37
- }
38
- const fullName = `${namePrefix}-${nameMiddle}-${nameSuffix}`;
39
- const fullDisplayName = `${context.fullConfig.customerName}-${context.fullConfig.appName} ${context.env}:${context.name} | ${displayName}`;
40
- const fullIdentifier = `${fullName}@${projectId}.iam.gserviceaccount.com`;
41
- const existing = await (0, exports.accountExists)(fullIdentifier);
42
- if (!existing) {
43
- await (0, child_process_promise_1.exec)(`gcloud iam service-accounts create ${fullName} --display-name="${fullDisplayName}" --project="${projectId}" --description="${description}"`);
44
- }
45
- const memberName = `serviceAccount:${fullIdentifier}`;
46
- for (const role of roles) {
47
- await (0, child_process_promise_1.exec)(`gcloud projects add-iam-policy-binding ${projectId} --member=${memberName} --role=${role} --condition=None`);
48
- }
49
- // create key
50
- // delete first all keys
51
- const keys = await (0, child_process_promise_1.exec)(`gcloud iam service-accounts keys list --iam-account=${fullIdentifier} --managed-by=user --format=json`).then((o) => JSON.parse(o.stdout));
52
- for (const key of keys) {
53
- await (0, child_process_promise_1.exec)(`gcloud iam service-accounts keys delete ${key.name} --quiet --iam-account=${fullIdentifier}`);
54
- }
55
- return await (0, child_process_promise_1.exec)(
56
- // on some platforms /dev/stdout is not available without the pipe
57
- `gcloud iam service-accounts keys create /dev/stdout --iam-account=${fullIdentifier} | cat`).then((o) => o.stdout);
20
+ const {
21
+ projectId,
22
+ name,
23
+ displayName,
24
+ roles,
25
+ description
26
+ } = account;
27
+ // name has limit of 30
28
+ const namePrefix = `${name}`;
29
+ const nameSuffixRaw = `${context.env}-${context.name}`;
30
+ const nameMiddleRaw = `${context.fullConfig.customerName}-${context.fullConfig.appName}`;
31
+ const MAX_LENGTH = 30;
32
+ const NUM_SEPARATORS = 2;
33
+ // we want to first hash middle, then suffix
34
+ // if for middle we have at least 1 char left, its ok, so we don't hash nameSuffix, otherwise we need to hash that as well
35
+ const middleMaxLength = MAX_LENGTH - namePrefix.length - nameSuffixRaw.length - NUM_SEPARATORS;
36
+ let nameMiddle;
37
+ let nameSuffix;
38
+ if (middleMaxLength < 1) {
39
+ nameMiddle = hashIfNessecary(nameMiddleRaw, 1);
40
+ nameSuffix = hashIfNessecary(nameSuffixRaw, MAX_LENGTH - namePrefix.length - 1 - NUM_SEPARATORS);
41
+ } else {
42
+ nameMiddle = hashIfNessecary(nameMiddleRaw, middleMaxLength);
43
+ nameSuffix = nameSuffixRaw;
44
+ }
45
+ const fullName = `${namePrefix}-${nameMiddle}-${nameSuffix}`;
46
+ const fullDisplayName = `${context.fullConfig.customerName}-${context.fullConfig.appName} ${context.env}:${context.name} | ${displayName}`;
47
+ const fullIdentifier = `${fullName}@${projectId}.iam.gserviceaccount.com`;
48
+ const existing = await (0, exports.accountExists)(fullIdentifier);
49
+ if (!existing) {
50
+ await (0, child_process_promise_1.exec)(`gcloud iam service-accounts create ${fullName} --display-name="${fullDisplayName}" --project="${projectId}" --description="${description}"`);
51
+ }
52
+ const memberName = `serviceAccount:${fullIdentifier}`;
53
+ for (const role of roles) {
54
+ await (0, child_process_promise_1.exec)(`gcloud projects add-iam-policy-binding ${projectId} --member=${memberName} --role=${role} --condition=None`);
55
+ }
56
+ // create key
57
+ // delete first all keys
58
+ const keys = await (0, child_process_promise_1.exec)(`gcloud iam service-accounts keys list --iam-account=${fullIdentifier} --managed-by=user --format=json`).then(o => JSON.parse(o.stdout));
59
+ for (const key of keys) {
60
+ await (0, child_process_promise_1.exec)(`gcloud iam service-accounts keys delete ${key.name} --quiet --iam-account=${fullIdentifier}`);
61
+ }
62
+ return await (0, child_process_promise_1.exec)(
63
+ // on some platforms /dev/stdout is not available without the pipe
64
+ `gcloud iam service-accounts keys create /dev/stdout --iam-account=${fullIdentifier} | cat`).then(o => o.stdout);
58
65
  };
59
66
  const upsertGcloudServiceAccountAndSaveSecret = async (instance, context, account, secretName) => {
60
- instance.log("upserting service account " + account.name + "...");
61
- const key = await upsertGcloudServiceAccount(context, account);
62
- await (0, gitlab_1.upsertAllVariables)(instance, {
63
- [secretName]: key,
64
- }, context.env, context.name);
65
- instance.log("done!");
67
+ instance.log("upserting service account " + account.name + "...");
68
+ const key = await upsertGcloudServiceAccount(context, account);
69
+ await (0, gitlab_1.upsertAllVariables)(instance, {
70
+ [secretName]: key
71
+ }, context.env, context.name);
72
+ instance.log("done!");
66
73
  };
67
74
  exports.upsertGcloudServiceAccountAndSaveSecret = upsertGcloudServiceAccountAndSaveSecret;
68
75
  const hashIfNessecary = (str, maxLength) => str.length > maxLength ? hash(str, maxLength) : str;
69
76
  const hash = (str, length) => {
70
- return (0, crypto_1.createHmac)("sha256", str).digest("hex").substring(0, length);
71
- };
72
- //# sourceMappingURL=serviceAccounts.js.map
77
+ return (0, crypto_1.createHmac)("sha256", str).digest("hex").substring(0, length);
78
+ };
@@ -1 +1 @@
1
- export declare const getMainBranch: () => Promise<string>;
1
+ export declare const getMainBranch: () => Promise<string>;
@@ -1,10 +1,14 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.getMainBranch = void 0;
4
7
  const child_process_promise_1 = require("child-process-promise");
5
8
  const getMainBranch = async () => {
6
- const { stdout } = await (0, child_process_promise_1.exec)("git rev-parse --abbrev-ref HEAD");
7
- return stdout.trim();
9
+ const {
10
+ stdout
11
+ } = await (0, child_process_promise_1.exec)("git rev-parse --abbrev-ref HEAD");
12
+ return stdout.trim();
8
13
  };
9
- exports.getMainBranch = getMainBranch;
10
- //# sourceMappingURL=getGetMainBranch.js.map
14
+ exports.getMainBranch = getMainBranch;
@@ -1,9 +1,14 @@
1
1
  export type GitLocationScope = "global" | "local" | "system" | "worktree";
2
2
  export type GitConfigOptions = {
3
- location?: GitLocationScope;
4
- comment?: string;
3
+ location?: GitLocationScope;
4
+ comment?: string;
5
5
  };
6
- export declare function gitConfigGet(key: string, { location }?: Pick<GitConfigOptions, "location">): Promise<string>;
7
- export declare const gitConfigSet: (key: string, value: string, { location, comment }?: GitConfigOptions) => Promise<{
8
- stdout: string;
9
- }>;
6
+ export declare function gitConfigGet(key: string, {
7
+ location
8
+ }?: Pick<GitConfigOptions, "location">): Promise<string>;
9
+ export declare const gitConfigSet: (key: string, value: string, {
10
+ location,
11
+ comment
12
+ }?: GitConfigOptions) => Promise<{
13
+ stdout: string;
14
+ }>;
@@ -1,16 +1,22 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.gitConfigSet = exports.gitConfigGet = void 0;
4
7
  const child_process_promise_1 = require("child-process-promise");
5
- const argsJoin = (args) => args.filter(Boolean).join(" ");
6
- async function gitConfigGet(key, { location } = {}) {
7
- const { stdout } = await (0, child_process_promise_1.exec)(`git config --get ${argsJoin([location ? `--${location}` : undefined])} ${key}`);
8
- return stdout.trim();
8
+ const argsJoin = args => args.filter(Boolean).join(" ");
9
+ async function gitConfigGet(key, {
10
+ location
11
+ } = {}) {
12
+ const {
13
+ stdout
14
+ } = await (0, child_process_promise_1.exec)(`git config --get ${argsJoin([location ? `--${location}` : undefined])} ${key}`);
15
+ return stdout.trim();
9
16
  }
10
17
  exports.gitConfigGet = gitConfigGet;
11
- const gitConfigSet = (key, value, { location, comment } = {}) => (0, child_process_promise_1.exec)(`git config --set ${argsJoin([
12
- location ? `--${location}` : undefined,
13
- comment ? `--comment=${comment}` : undefined,
14
- ])} ${key} ${value}`);
15
- exports.gitConfigSet = gitConfigSet;
16
- //# sourceMappingURL=gitConfig.js.map
18
+ const gitConfigSet = (key, value, {
19
+ location,
20
+ comment
21
+ } = {}) => (0, child_process_promise_1.exec)(`git config --set ${argsJoin([location ? `--${location}` : undefined, comment ? `--comment=${comment}` : undefined])} ${key} ${value}`);
22
+ exports.gitConfigSet = gitConfigSet;
@@ -6,11 +6,11 @@ export declare const getProjectRootPath: () => Promise<string>;
6
6
  * Get the git remote hostname and project path from the git config.
7
7
  */
8
8
  export declare const getGitRemoteHostAndPath: () => Promise<{
9
- gitRemoteHost: string;
10
- gitRemotePath: string;
9
+ gitRemoteHost: string;
10
+ gitRemotePath: string;
11
11
  }>;
12
12
  export declare const gitProjectInformation: () => Promise<{
13
- gitRemoteHost: string;
14
- gitRemotePath: string;
15
- projectRootPath: string;
16
- }>;
13
+ gitRemoteHost: string;
14
+ gitRemotePath: string;
15
+ projectRootPath: string;
16
+ }>;
@@ -1,5 +1,8 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.gitProjectInformation = exports.getGitRemoteHostAndPath = exports.getProjectRootPath = void 0;
4
7
  const gitConfig_1 = require("./gitConfig");
5
8
  const child_process_promise_1 = require("child-process-promise");
@@ -7,32 +10,39 @@ const child_process_promise_1 = require("child-process-promise");
7
10
  * Find the absolute path of the current git project root.
8
11
  */
9
12
  const getProjectRootPath = async () => {
10
- const { stdout } = await (0, child_process_promise_1.exec)(`git rev-parse --show-toplevel`);
11
- return stdout.trim();
13
+ const {
14
+ stdout
15
+ } = await (0, child_process_promise_1.exec)(`git rev-parse --show-toplevel`);
16
+ return stdout.trim();
12
17
  };
13
18
  exports.getProjectRootPath = getProjectRootPath;
14
19
  /**
15
20
  * Get the git remote hostname and project path from the git config.
16
21
  */
17
22
  const getGitRemoteHostAndPath = async () => {
18
- var _a;
19
- const remoteUrl = await (0, gitConfig_1.gitConfigGet)("remote.origin.url");
20
- const remoteReg = /(https:\/\/|git@)([^:/]+)[:/]([^.]*)(\.git)?/;
21
- const match = (_a = remoteUrl.match(remoteReg)) !== null && _a !== void 0 ? _a : [];
22
- const [, , gitRemoteHost, gitRemotePath] = match;
23
- if (!(gitRemoteHost === null || gitRemoteHost === void 0 ? void 0 : gitRemoteHost.length) || !(gitRemotePath === null || gitRemotePath === void 0 ? void 0 : gitRemotePath.length)) {
24
- throw new Error(`Failed to parse git remote hostname and path from git configs remote.origin.url! ${remoteUrl}`);
25
- }
26
- return { gitRemoteHost, gitRemotePath };
23
+ var _a;
24
+ const remoteUrl = await (0, gitConfig_1.gitConfigGet)("remote.origin.url");
25
+ const remoteReg = /(https:\/\/|git@)([^:/]+)[:/]([^.]*)(\.git)?/;
26
+ const match = (_a = remoteUrl.match(remoteReg)) !== null && _a !== void 0 ? _a : [];
27
+ const [,, gitRemoteHost, gitRemotePath] = match;
28
+ if (!(gitRemoteHost === null || gitRemoteHost === void 0 ? void 0 : gitRemoteHost.length) || !(gitRemotePath === null || gitRemotePath === void 0 ? void 0 : gitRemotePath.length)) {
29
+ throw new Error(`Failed to parse git remote hostname and path from git configs remote.origin.url! ${remoteUrl}`);
30
+ }
31
+ return {
32
+ gitRemoteHost,
33
+ gitRemotePath
34
+ };
27
35
  };
28
36
  exports.getGitRemoteHostAndPath = getGitRemoteHostAndPath;
29
37
  const gitProjectInformation = async () => {
30
- const [{ gitRemoteHost, gitRemotePath }, projectRootPath] = await Promise.all([(0, exports.getGitRemoteHostAndPath)(), (0, exports.getProjectRootPath)()]);
31
- return {
32
- gitRemoteHost,
33
- gitRemotePath,
34
- projectRootPath,
35
- };
38
+ const [{
39
+ gitRemoteHost,
40
+ gitRemotePath
41
+ }, projectRootPath] = await Promise.all([(0, exports.getGitRemoteHostAndPath)(), (0, exports.getProjectRootPath)()]);
42
+ return {
43
+ gitRemoteHost,
44
+ gitRemotePath,
45
+ projectRootPath
46
+ };
36
47
  };
37
- exports.gitProjectInformation = gitProjectInformation;
38
- //# sourceMappingURL=gitProjectInformation.js.map
48
+ exports.gitProjectInformation = gitProjectInformation;
@@ -1,3 +1,3 @@
1
1
  export * from "./gitConfig";
2
2
  export * from "./gitProjectInformation";
3
- export * from "./getGetMainBranch";
3
+ export * from "./getGetMainBranch";
@@ -1,20 +1,27 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2
+
3
+ var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = {
8
+ enumerable: true,
9
+ get: function () {
10
+ return m[k];
11
+ }
12
+ };
13
+ }
14
+ Object.defineProperty(o, k2, desc);
15
+ } : function (o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ o[k2] = m[k];
18
+ });
19
+ var __exportStar = this && this.__exportStar || function (m, exports) {
20
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
21
  };
16
- Object.defineProperty(exports, "__esModule", { value: true });
22
+ Object.defineProperty(exports, "__esModule", {
23
+ value: true
24
+ });
17
25
  __exportStar(require("./gitConfig"), exports);
18
26
  __exportStar(require("./gitProjectInformation"), exports);
19
- __exportStar(require("./getGetMainBranch"), exports);
20
- //# sourceMappingURL=index.js.map
27
+ __exportStar(require("./getGetMainBranch"), exports);
@@ -1 +1 @@
1
- export type * from "../../pipeline/src/index.js";
1
+ export type * from "../../pipeline/src/index.js";
@@ -1,3 +1,5 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=index.js.map
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -5,4 +5,4 @@ import { CoreV1Api, BatchV1Api, BatchV1beta1Api } from "@kubernetes/client-node"
5
5
  */
6
6
  export declare const getk8sApi: () => CoreV1Api;
7
7
  export declare const getk8sApiBatch: () => BatchV1Api;
8
- export declare const getk8sApiBatchBeta: () => BatchV1beta1Api;
8
+ export declare const getk8sApiBatchBeta: () => BatchV1beta1Api;
@@ -1,29 +1,31 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.getk8sApiBatchBeta = exports.getk8sApiBatch = exports.getk8sApi = void 0;
4
7
  const client_node_1 = require("@kubernetes/client-node");
5
8
  const getKubeConfig = () => {
6
- const kc = new client_node_1.KubeConfig();
7
- kc.loadFromDefault();
8
- return kc;
9
+ const kc = new client_node_1.KubeConfig();
10
+ kc.loadFromDefault();
11
+ return kc;
9
12
  };
10
13
  /**
11
14
  * get kubernetes client. avoid reusing the instance when context get changed
12
15
  * @returns kuberenetes client
13
16
  */
14
17
  const getk8sApi = () => {
15
- const kc = getKubeConfig();
16
- return kc.makeApiClient(client_node_1.CoreV1Api);
18
+ const kc = getKubeConfig();
19
+ return kc.makeApiClient(client_node_1.CoreV1Api);
17
20
  };
18
21
  exports.getk8sApi = getk8sApi;
19
22
  const getk8sApiBatch = () => {
20
- const kc = getKubeConfig();
21
- return kc.makeApiClient(client_node_1.BatchV1Api);
23
+ const kc = getKubeConfig();
24
+ return kc.makeApiClient(client_node_1.BatchV1Api);
22
25
  };
23
26
  exports.getk8sApiBatch = getk8sApiBatch;
24
27
  const getk8sApiBatchBeta = () => {
25
- const kc = getKubeConfig();
26
- return kc.makeApiClient(client_node_1.BatchV1beta1Api);
28
+ const kc = getKubeConfig();
29
+ return kc.makeApiClient(client_node_1.BatchV1beta1Api);
27
30
  };
28
- exports.getk8sApiBatchBeta = getk8sApiBatchBeta;
29
- //# sourceMappingURL=index.js.map
31
+ exports.getk8sApiBatchBeta = getk8sApiBatchBeta;
@@ -1,3 +1,3 @@
1
1
  export declare const getProjectPods: (envComponent: string) => Promise<import("@kubernetes/client-node").V1Pod[]>;
2
2
  export declare const getProjectPvcs: (envComponent: string) => Promise<import("@kubernetes/client-node").V1PersistentVolumeClaim[]>;
3
- export declare const getProjectPodNames: (envComponent: string) => Promise<string[]>;
3
+ export declare const getProjectPodNames: (envComponent: string) => Promise<string[]>;