@catladder/cli 0.0.0-node16-ddfae617 → 0.0.0-perf-cli-reduce-bundle-size-with-tsconfig-optimization-c14723ff
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.
- package/CONTRIBUTING.md +17 -12
- package/README.md +19 -12
- package/bin/catci +3 -0
- package/bin/catci-dev +3 -0
- package/bin/catenv +1 -1
- package/bin/catenv-dev +3 -0
- package/bin/catladder +1 -1
- package/bin/catladder-dev +3 -0
- package/dist/bundles/catci/index.js +71761 -0
- package/dist/bundles/catenv/index.js +48584 -0
- package/dist/bundles/catenv/xdg-open +1066 -0
- package/dist/bundles/cli/clipboard_i686.exe +0 -0
- package/dist/bundles/cli/clipboard_x86_64.exe +0 -0
- package/dist/bundles/cli/exec-child.js +39 -0
- package/dist/bundles/cli/index.js +289355 -0
- package/dist/bundles/cli/xdg-open +1066 -0
- package/dist/bundles/cli/xsel +0 -0
- package/dist/cli/src/apps/catci/catci.d.ts +1 -0
- package/dist/cli/src/apps/catci/catci.js +30 -0
- package/dist/cli/src/apps/catci/catci.js.map +1 -0
- package/dist/cli/src/apps/catci/commands/security/auditDocument.d.ts +19 -0
- package/dist/cli/src/apps/catci/commands/security/auditDocument.js +109 -0
- package/dist/cli/src/apps/catci/commands/security/auditDocument.js.map +1 -0
- package/dist/cli/src/apps/catci/commands/security/commands.d.ts +2 -0
- package/dist/cli/src/apps/catci/commands/security/commands.js +110 -0
- package/dist/cli/src/apps/catci/commands/security/commands.js.map +1 -0
- package/dist/cli/src/apps/catci/commands/security/createSecurityAuditMergeRequest.d.ts +9 -0
- package/dist/cli/src/apps/catci/commands/security/createSecurityAuditMergeRequest.js +52 -0
- package/dist/cli/src/apps/catci/commands/security/createSecurityAuditMergeRequest.js.map +1 -0
- package/dist/cli/src/apps/catci/commands/security/evaluateSecurityAudit.d.ts +5 -0
- package/dist/cli/src/apps/catci/commands/security/evaluateSecurityAudit.js +28 -0
- package/dist/cli/src/apps/catci/commands/security/evaluateSecurityAudit.js.map +1 -0
- package/dist/cli/src/apps/catci/commands/security/topics.json +117 -0
- package/dist/cli/src/apps/catenv/catenv.d.ts +3 -0
- package/dist/cli/src/apps/catenv/catenv.js +22 -0
- package/dist/cli/src/apps/catenv/catenv.js.map +1 -0
- package/dist/cli/src/apps/catenv/printVariables.d.ts +3 -0
- package/dist/cli/src/apps/catenv/printVariables.js +44 -0
- package/dist/cli/src/apps/catenv/printVariables.js.map +1 -0
- package/dist/cli/src/apps/catenv/types.d.ts +5 -0
- package/dist/cli/src/apps/catenv/types.js +3 -0
- package/dist/cli/src/apps/catenv/types.js.map +1 -0
- package/dist/cli/src/apps/catenv/utils.d.ts +12 -0
- package/dist/cli/src/apps/catenv/utils.js +38 -0
- package/dist/cli/src/apps/catenv/utils.js.map +1 -0
- package/dist/cli/src/apps/catenv/writeDotEnvFiles.d.ts +3 -0
- package/dist/cli/src/apps/catenv/writeDotEnvFiles.js +33 -0
- package/dist/cli/src/apps/catenv/writeDotEnvFiles.js.map +1 -0
- package/dist/cli/src/apps/catenv/writeEnvDTs.d.ts +3 -0
- package/dist/cli/src/apps/catenv/writeEnvDTs.js +57 -0
- package/dist/cli/src/apps/catenv/writeEnvDTs.js.map +1 -0
- package/dist/cli/src/apps/cli/cli.js +39 -0
- package/dist/cli/src/apps/cli/cli.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/cloudSQL/commandRestoreDb.d.ts +3 -0
- package/dist/cli/src/apps/cli/commands/cloudSQL/commandRestoreDb.js +111 -0
- package/dist/cli/src/apps/cli/commands/cloudSQL/commandRestoreDb.js.map +1 -0
- package/dist/{apps/cli/commands/theStuffThatReallyMatters → cli/src/apps/cli/commands/cloudSQL}/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/cloudSQL/index.js +10 -0
- package/dist/cli/src/apps/cli/commands/cloudSQL/index.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/general/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/general/index.js +78 -0
- package/dist/cli/src/apps/cli/commands/general/index.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/general/namespaceAutoCompletion.js +11 -0
- package/dist/cli/src/apps/cli/commands/general/namespaceAutoCompletion.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/general/portForward.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/general/portForward.js +40 -0
- package/dist/cli/src/apps/cli/commands/general/portForward.js.map +1 -0
- package/dist/{apps/cli/commands/project → cli/src/apps/cli/commands/mongodb}/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/mongodb/index.js +14 -0
- package/dist/cli/src/apps/cli/commands/mongodb/index.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/mongodb/projectMongoDestroyMember.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoDestroyMember.js +94 -0
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoDestroyMember.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/mongodb/projectMongoGetShell.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoGetShell.js +36 -0
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoGetShell.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/mongodb/projectMongoPortForward.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoPortForward.js +57 -0
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoPortForward.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/mongodb/utils/index.js +70 -0
- package/dist/cli/src/apps/cli/commands/mongodb/utils/index.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.d.ts +3 -0
- package/dist/cli/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.js +126 -0
- package/dist/cli/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandCloudSqlProxy.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandCloudSqlProxy.js +88 -0
- package/dist/cli/src/apps/cli/commands/project/commandCloudSqlProxy.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandConfigSecrets.d.ts +2 -1
- package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.js +155 -0
- package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandDeletePods.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandDeletePods.js +47 -0
- package/dist/cli/src/apps/cli/commands/project/commandDeletePods.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandDeleteProject.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandDeleteProject.js +28 -0
- package/dist/cli/src/apps/cli/commands/project/commandDeleteProject.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandEnvVars.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandEnvVars.js +13 -0
- package/dist/cli/src/apps/cli/commands/project/commandEnvVars.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandGetMyTotalWorktime.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandGetMyTotalWorktime.js +11 -0
- package/dist/cli/src/apps/cli/commands/project/commandGetMyTotalWorktime.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandGetShell.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandGetShell.js +34 -0
- package/dist/cli/src/apps/cli/commands/project/commandGetShell.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandGitlabCi.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandGitlabCi.js +86 -0
- package/dist/cli/src/apps/cli/commands/project/commandGitlabCi.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandListPods.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandListPods.js +19 -0
- package/dist/cli/src/apps/cli/commands/project/commandListPods.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandMigrateHelm3.d.ts +2 -2
- package/dist/cli/src/apps/cli/commands/project/commandMigrateHelm3.js +46 -0
- package/dist/cli/src/apps/cli/commands/project/commandMigrateHelm3.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandNamespace.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandNamespace.js +11 -0
- package/dist/cli/src/apps/cli/commands/project/commandNamespace.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandOpenCostDashboard.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenCostDashboard.js +22 -0
- package/dist/cli/src/apps/cli/commands/project/commandOpenCostDashboard.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandOpenDashboard.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenDashboard.js +22 -0
- package/dist/cli/src/apps/cli/commands/project/commandOpenDashboard.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandOpenEnv.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenEnv.js +20 -0
- package/dist/cli/src/apps/cli/commands/project/commandOpenEnv.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandOpenGit.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenGit.js +9 -0
- package/dist/cli/src/apps/cli/commands/project/commandOpenGit.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandOpenGrafana.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenGrafana.js +22 -0
- package/dist/cli/src/apps/cli/commands/project/commandOpenGrafana.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandOpenGrafanaPod.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenGrafanaPod.js +35 -0
- package/dist/cli/src/apps/cli/commands/project/commandOpenGrafanaPod.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandOpenLogs.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenLogs.js +14 -0
- package/dist/cli/src/apps/cli/commands/project/commandOpenLogs.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandPauseProject.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandPauseProject.js +28 -0
- package/dist/cli/src/apps/cli/commands/project/commandPauseProject.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandPortForward.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandPortForward.js +80 -0
- package/dist/cli/src/apps/cli/commands/project/commandPortForward.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandRenewToken.d.ts +3 -0
- package/dist/cli/src/apps/cli/commands/project/commandRenewToken.js +9 -0
- package/dist/cli/src/apps/cli/commands/project/commandRenewToken.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandSecretsClearBackups.d.ts +5 -0
- package/dist/cli/src/apps/cli/commands/project/commandSecretsClearBackups.js +24 -0
- package/dist/cli/src/apps/cli/commands/project/commandSecretsClearBackups.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/commandSecurityEvaluate.d.ts +3 -0
- package/dist/cli/src/apps/cli/commands/project/commandSecurityEvaluate.js +19 -0
- package/dist/cli/src/apps/cli/commands/project/commandSecurityEvaluate.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandSetup.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandSetup.js +9 -0
- package/dist/cli/src/apps/cli/commands/project/commandSetup.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/commandTriggerCronjob.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandTriggerCronjob.js +56 -0
- package/dist/cli/src/apps/cli/commands/project/commandTriggerCronjob.js.map +1 -0
- package/dist/{apps/cli/commands/mongodb → cli/src/apps/cli/commands/project}/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/index.js +60 -0
- package/dist/cli/src/apps/cli/commands/project/index.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/setup/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/index.js +45 -0
- package/dist/cli/src/apps/cli/commands/project/setup/index.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/setup/setupAccessTokens.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.js +44 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.d.ts +3 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.js +57 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.d.ts +3 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.js +25 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.d.ts +3 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.js +115 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.d.ts +2 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.js +12 -0
- package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.js +23 -0
- package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.js +34 -0
- package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.d.ts +2 -0
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.js +38 -0
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/commands/project/utils/showProjectBanner.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/showProjectBanner.js +14 -0
- package/dist/cli/src/apps/cli/commands/project/utils/showProjectBanner.js.map +1 -0
- package/dist/cli/src/apps/cli/commands/theStuffThatReallyMatters/index.d.ts +3 -0
- package/dist/cli/src/apps/cli/commands/theStuffThatReallyMatters/index.js +35 -0
- package/dist/cli/src/apps/cli/commands/theStuffThatReallyMatters/index.js.map +1 -0
- package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.js +20 -0
- package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.js.map +1 -0
- package/dist/{apps → cli/src/apps}/cli/verify/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/verify/index.js +15 -0
- package/dist/cli/src/apps/cli/verify/index.js.map +1 -0
- package/dist/cli/src/catci.js +5 -0
- package/dist/cli/src/catci.js.map +1 -0
- package/dist/cli/src/catenv.js +19 -0
- package/dist/cli/src/catenv.js.map +1 -0
- package/dist/cli/src/cli.d.ts +1 -0
- package/dist/cli/src/cli.js +8 -0
- package/dist/cli/src/cli.js.map +1 -0
- package/dist/{config → cli/src/config}/constants.d.ts +0 -1
- package/dist/cli/src/config/constants.js +6 -0
- package/dist/cli/src/config/constants.js.map +1 -0
- package/dist/cli/src/config/getProjectConfig.d.ts +22 -0
- package/dist/cli/src/config/getProjectConfig.js +141 -0
- package/dist/cli/src/config/getProjectConfig.js.map +1 -0
- package/dist/cli/src/config/parseChoice.d.ts +4 -0
- package/dist/cli/src/config/parseChoice.js +9 -0
- package/dist/cli/src/config/parseChoice.js.map +1 -0
- package/dist/cli/src/gcloud/artifactsRegistry.d.ts +5 -0
- package/dist/cli/src/gcloud/artifactsRegistry.js +15 -0
- package/dist/cli/src/gcloud/artifactsRegistry.js.map +1 -0
- package/dist/cli/src/gcloud/cloudRun/getCloudRunDomainSuffix.d.ts +2 -0
- package/dist/cli/src/gcloud/cloudRun/getCloudRunDomainSuffix.js +28 -0
- package/dist/cli/src/gcloud/cloudRun/getCloudRunDomainSuffix.js.map +1 -0
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.d.ts +3 -0
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.js +18 -0
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.js.map +1 -0
- package/dist/cli/src/gcloud/cloudSql/copyDb.d.ts +12 -0
- package/dist/cli/src/gcloud/cloudSql/copyDb.js +38 -0
- package/dist/cli/src/gcloud/cloudSql/copyDb.js.map +1 -0
- package/dist/cli/src/gcloud/cloudSql/startProxy.d.ts +10 -0
- package/dist/cli/src/gcloud/cloudSql/startProxy.js +52 -0
- package/dist/cli/src/gcloud/cloudSql/startProxy.js.map +1 -0
- package/dist/cli/src/gcloud/enableServices.d.ts +3 -0
- package/dist/cli/src/gcloud/enableServices.js +11 -0
- package/dist/cli/src/gcloud/enableServices.js.map +1 -0
- package/dist/cli/src/gcloud/openDashboard.d.ts +2 -0
- package/dist/cli/src/gcloud/openDashboard.js +20 -0
- package/dist/cli/src/gcloud/openDashboard.js.map +1 -0
- package/dist/cli/src/gcloud/serviceAccounts.d.ts +12 -0
- package/dist/cli/src/gcloud/serviceAccounts.js +72 -0
- package/dist/cli/src/gcloud/serviceAccounts.js.map +1 -0
- package/dist/cli/src/index.d.ts +1 -0
- package/dist/cli/src/index.js +3 -0
- package/dist/cli/src/index.js.map +1 -0
- package/dist/{k8sApi → cli/src/k8sApi}/index.js +10 -10
- package/dist/cli/src/k8sApi/index.js.map +1 -0
- package/dist/{utils/projects → cli/src/kubernetes}/index.d.ts +0 -5
- package/dist/cli/src/kubernetes/index.js +27 -0
- package/dist/cli/src/kubernetes/index.js.map +1 -0
- package/dist/cli/src/kubernetes/openKubernetesDashboards.d.ts +4 -0
- package/dist/cli/src/kubernetes/openKubernetesDashboards.js +42 -0
- package/dist/cli/src/kubernetes/openKubernetesDashboards.js.map +1 -0
- package/dist/cli/src/kubernetes/portForward.d.ts +1 -0
- package/dist/cli/src/kubernetes/portForward.js +10 -0
- package/dist/cli/src/kubernetes/portForward.js.map +1 -0
- package/dist/cli/src/packageInfos.js +12 -0
- package/dist/cli/src/packageInfos.js.map +1 -0
- package/dist/{types → cli/src/types}/types.d.ts +1 -1
- package/dist/cli/src/types/types.js +3 -0
- package/dist/{types → cli/src/types}/types.js.map +1 -1
- package/dist/cli/src/utils/boxWithAscii.d.ts +1 -0
- package/dist/cli/src/utils/boxWithAscii.js +14 -0
- package/dist/cli/src/utils/boxWithAscii.js.map +1 -0
- package/dist/cli/src/utils/cluster.js +15 -0
- package/dist/cli/src/utils/cluster.js.map +1 -0
- package/dist/cli/src/utils/editAsFile.js +29 -0
- package/dist/cli/src/utils/editAsFile.js.map +1 -0
- package/dist/cli/src/utils/files.d.ts +1 -0
- package/dist/cli/src/utils/files.js +19 -0
- package/dist/cli/src/utils/files.js.map +1 -0
- package/dist/cli/src/utils/getEditor.js +21 -0
- package/dist/cli/src/utils/getEditor.js.map +1 -0
- package/dist/cli/src/utils/gitlab.d.ts +24 -0
- package/dist/cli/src/utils/gitlab.js +206 -0
- package/dist/cli/src/utils/gitlab.js.map +1 -0
- package/dist/{utils → cli/src/utils}/log.js +3 -3
- package/dist/cli/src/utils/log.js.map +1 -0
- package/dist/cli/src/utils/portForwards.d.ts +12 -0
- package/dist/cli/src/utils/portForwards.js +48 -0
- package/dist/cli/src/utils/portForwards.js.map +1 -0
- package/dist/cli/src/utils/preferences/index.js +38 -0
- package/dist/cli/src/utils/preferences/index.js.map +1 -0
- package/dist/cli/src/utils/projects/index.d.ts +5 -0
- package/dist/cli/src/utils/projects/index.js +39 -0
- package/dist/cli/src/utils/projects/index.js.map +1 -0
- package/dist/cli/src/utils/promise.js +11 -0
- package/dist/cli/src/utils/promise.js.map +1 -0
- package/dist/cli/src/utils/shell.js +25 -0
- package/dist/cli/src/utils/shell.js.map +1 -0
- package/dist/pipeline/src/bash/BashExpression.d.ts +40 -0
- package/dist/pipeline/src/bash/BashExpression.js +78 -0
- package/dist/pipeline/src/bash/BashExpression.js.map +1 -0
- package/dist/pipeline/src/bash/bashExpressionPerPipelineType.d.ts +8 -0
- package/dist/pipeline/src/bash/bashExpressionPerPipelineType.js +10 -0
- package/dist/pipeline/src/bash/bashExpressionPerPipelineType.js.map +1 -0
- package/dist/pipeline/src/bash/bashYaml.d.ts +10 -0
- package/dist/pipeline/src/bash/bashYaml.js +47 -0
- package/dist/pipeline/src/bash/bashYaml.js.map +1 -0
- package/dist/pipeline/src/bash/getInjectVarsScript.d.ts +2 -0
- package/dist/pipeline/src/bash/getInjectVarsScript.js +15 -0
- package/dist/pipeline/src/bash/getInjectVarsScript.js.map +1 -0
- package/dist/pipeline/src/bash/replaceAsync.d.ts +2 -0
- package/dist/pipeline/src/bash/replaceAsync.js +37 -0
- package/dist/pipeline/src/bash/replaceAsync.js.map +1 -0
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.d.ts +3 -0
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js +50 -0
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js.map +1 -0
- package/dist/pipeline/src/build/base/constants.d.ts +6 -0
- package/dist/pipeline/src/build/base/constants.js +10 -0
- package/dist/pipeline/src/build/base/constants.js.map +1 -0
- package/dist/pipeline/src/build/base/createAppBuildJob.d.ts +4 -0
- package/dist/pipeline/src/build/base/createAppBuildJob.js +55 -0
- package/dist/pipeline/src/build/base/createAppBuildJob.js.map +1 -0
- package/dist/pipeline/src/build/base/createArtifactsConfig.d.ts +4 -0
- package/dist/pipeline/src/build/base/createArtifactsConfig.js +30 -0
- package/dist/pipeline/src/build/base/createArtifactsConfig.js.map +1 -0
- package/dist/pipeline/src/build/base/index.d.ts +12 -0
- package/dist/pipeline/src/build/base/index.js +48 -0
- package/dist/pipeline/src/build/base/index.js.map +1 -0
- package/dist/pipeline/src/build/base/writeBuildInfo.d.ts +2 -0
- package/dist/pipeline/src/build/base/writeBuildInfo.js +10 -0
- package/dist/pipeline/src/build/base/writeBuildInfo.js.map +1 -0
- package/dist/pipeline/src/build/base/writeDotEnv.d.ts +8 -0
- package/dist/pipeline/src/build/base/writeDotEnv.js +34 -0
- package/dist/pipeline/src/build/base/writeDotEnv.js.map +1 -0
- package/dist/pipeline/src/build/custom/buildJob.d.ts +3 -0
- package/dist/pipeline/src/build/custom/buildJob.js +36 -0
- package/dist/pipeline/src/build/custom/buildJob.js.map +1 -0
- package/dist/pipeline/src/build/custom/index.d.ts +3 -0
- package/dist/pipeline/src/build/custom/index.js +10 -0
- package/dist/pipeline/src/build/custom/index.js.map +1 -0
- package/dist/pipeline/src/build/custom/testJob.d.ts +7 -0
- package/dist/pipeline/src/build/custom/testJob.js +68 -0
- package/dist/pipeline/src/build/custom/testJob.js.map +1 -0
- package/dist/pipeline/src/build/docker.d.ts +66 -0
- package/dist/pipeline/src/build/docker.js +160 -0
- package/dist/pipeline/src/build/docker.js.map +1 -0
- package/dist/pipeline/src/build/index.d.ts +24 -0
- package/dist/pipeline/src/build/index.js +84 -0
- package/dist/pipeline/src/build/index.js.map +1 -0
- package/dist/pipeline/src/build/node/buildJob.d.ts +8 -0
- package/dist/pipeline/src/build/node/buildJob.js +68 -0
- package/dist/pipeline/src/build/node/buildJob.js.map +1 -0
- package/dist/pipeline/src/build/node/cache.d.ts +7 -0
- package/dist/pipeline/src/build/node/cache.js +86 -0
- package/dist/pipeline/src/build/node/cache.js.map +1 -0
- package/dist/pipeline/src/build/node/constants.d.ts +5 -0
- package/dist/pipeline/src/build/node/constants.js +9 -0
- package/dist/pipeline/src/build/node/constants.js.map +1 -0
- package/dist/pipeline/src/build/node/index.d.ts +5 -0
- package/dist/pipeline/src/build/node/index.js +19 -0
- package/dist/pipeline/src/build/node/index.js.map +1 -0
- package/dist/pipeline/src/build/node/meteor.d.ts +3 -0
- package/dist/pipeline/src/build/node/meteor.js +56 -0
- package/dist/pipeline/src/build/node/meteor.js.map +1 -0
- package/dist/pipeline/src/build/node/testJob.d.ts +4 -0
- package/dist/pipeline/src/build/node/testJob.js +92 -0
- package/dist/pipeline/src/build/node/testJob.js.map +1 -0
- package/dist/pipeline/src/build/node/yarn.d.ts +7 -0
- package/dist/pipeline/src/build/node/yarn.js +60 -0
- package/dist/pipeline/src/build/node/yarn.js.map +1 -0
- package/dist/pipeline/src/build/rails/build.d.ts +3 -0
- package/dist/pipeline/src/build/rails/build.js +54 -0
- package/dist/pipeline/src/build/rails/build.js.map +1 -0
- package/dist/pipeline/src/build/rails/index.d.ts +3 -0
- package/dist/pipeline/src/build/rails/index.js +10 -0
- package/dist/pipeline/src/build/rails/index.js.map +1 -0
- package/dist/pipeline/src/build/rails/test.d.ts +3 -0
- package/dist/pipeline/src/build/rails/test.js +89 -0
- package/dist/pipeline/src/build/rails/test.js.map +1 -0
- package/dist/pipeline/src/build/sbom.d.ts +5 -0
- package/dist/pipeline/src/build/sbom.js +42 -0
- package/dist/pipeline/src/build/sbom.js.map +1 -0
- package/dist/pipeline/src/build/types.d.ts +294 -0
- package/dist/pipeline/src/build/types.js +16 -0
- package/dist/pipeline/src/build/types.js.map +1 -0
- package/dist/pipeline/src/config/configruedEnvs.d.ts +4 -0
- package/dist/pipeline/src/config/configruedEnvs.js +35 -0
- package/dist/pipeline/src/config/configruedEnvs.js.map +1 -0
- package/dist/pipeline/src/config/index.d.ts +2 -0
- package/dist/pipeline/src/config/index.js +19 -0
- package/dist/pipeline/src/config/index.js.map +1 -0
- package/dist/pipeline/src/config/readConfig.d.ts +6 -0
- package/dist/pipeline/src/config/readConfig.js +35 -0
- package/dist/pipeline/src/config/readConfig.js.map +1 -0
- package/dist/pipeline/src/constants.d.ts +2 -0
- package/dist/pipeline/src/constants.js +7 -0
- package/dist/pipeline/src/constants.js.map +1 -0
- package/dist/pipeline/src/context/createAllComponentsContext.d.ts +8 -0
- package/dist/pipeline/src/context/createAllComponentsContext.js +21 -0
- package/dist/pipeline/src/context/createAllComponentsContext.js.map +1 -0
- package/dist/pipeline/src/context/createComponentContext.d.ts +11 -0
- package/dist/pipeline/src/context/createComponentContext.js +101 -0
- package/dist/pipeline/src/context/createComponentContext.js.map +1 -0
- package/dist/pipeline/src/context/createWorkspaceContext.d.ts +9 -0
- package/dist/pipeline/src/context/createWorkspaceContext.js +36 -0
- package/dist/pipeline/src/context/createWorkspaceContext.js.map +1 -0
- package/dist/pipeline/src/context/getBuildInfoVariables.d.ts +6 -0
- package/dist/pipeline/src/context/getBuildInfoVariables.js +29 -0
- package/dist/pipeline/src/context/getBuildInfoVariables.js.map +1 -0
- package/dist/pipeline/src/context/getEnvConfig.d.ts +2 -0
- package/dist/pipeline/src/context/getEnvConfig.js +18 -0
- package/dist/pipeline/src/context/getEnvConfig.js.map +1 -0
- package/dist/pipeline/src/context/getEnvType.d.ts +4 -0
- package/dist/pipeline/src/context/getEnvType.js +14 -0
- package/dist/pipeline/src/context/getEnvType.js.map +1 -0
- package/dist/pipeline/src/context/getEnvironment.d.ts +3 -0
- package/dist/pipeline/src/context/getEnvironment.js +22 -0
- package/dist/pipeline/src/context/getEnvironment.js.map +1 -0
- package/dist/pipeline/src/context/getEnvironmentContext.d.ts +3 -0
- package/dist/pipeline/src/context/getEnvironmentContext.js +37 -0
- package/dist/pipeline/src/context/getEnvironmentContext.js.map +1 -0
- package/dist/pipeline/src/context/getEnvironmentVariables.d.ts +27 -0
- package/dist/pipeline/src/context/getEnvironmentVariables.js +120 -0
- package/dist/pipeline/src/context/getEnvironmentVariables.js.map +1 -0
- package/dist/pipeline/src/context/getLabels.d.ts +9 -0
- package/dist/pipeline/src/context/getLabels.js +29 -0
- package/dist/pipeline/src/context/getLabels.js.map +1 -0
- package/dist/pipeline/src/context/getReviewSlug.d.ts +4 -0
- package/dist/pipeline/src/context/getReviewSlug.js +19 -0
- package/dist/pipeline/src/context/getReviewSlug.js.map +1 -0
- package/dist/pipeline/src/context/index.d.ts +3 -0
- package/dist/pipeline/src/context/index.js +20 -0
- package/dist/pipeline/src/context/index.js.map +1 -0
- package/dist/pipeline/src/context/resolveReferences.d.ts +6 -0
- package/dist/pipeline/src/context/resolveReferences.js +65 -0
- package/dist/pipeline/src/context/resolveReferences.js.map +1 -0
- package/dist/pipeline/src/context/transformJobOnlyVars.d.ts +13 -0
- package/dist/pipeline/src/context/transformJobOnlyVars.js +35 -0
- package/dist/pipeline/src/context/transformJobOnlyVars.js.map +1 -0
- package/dist/pipeline/src/context/utils/envVars.d.ts +8 -0
- package/dist/pipeline/src/context/utils/envVars.js +21 -0
- package/dist/pipeline/src/context/utils/envVars.js.map +1 -0
- package/dist/pipeline/src/defaults/index.d.ts +2 -0
- package/dist/pipeline/src/defaults/index.js +8 -0
- package/dist/pipeline/src/defaults/index.js.map +1 -0
- package/dist/pipeline/src/deploy/base/deploy.d.ts +5 -0
- package/dist/pipeline/src/deploy/base/deploy.js +110 -0
- package/dist/pipeline/src/deploy/base/deploy.js.map +1 -0
- package/dist/pipeline/src/deploy/base/index.d.ts +10 -0
- package/dist/pipeline/src/deploy/base/index.js +17 -0
- package/dist/pipeline/src/deploy/base/index.js.map +1 -0
- package/dist/pipeline/src/deploy/base/rollback.d.ts +5 -0
- package/dist/pipeline/src/deploy/base/rollback.js +32 -0
- package/dist/pipeline/src/deploy/base/rollback.js.map +1 -0
- package/dist/pipeline/src/deploy/base/stop.d.ts +5 -0
- package/dist/pipeline/src/deploy/base/stop.js +37 -0
- package/dist/pipeline/src/deploy/base/stop.js.map +1 -0
- package/dist/pipeline/src/deploy/base/variables.d.ts +5 -0
- package/dist/pipeline/src/deploy/base/variables.js +9 -0
- package/dist/pipeline/src/deploy/base/variables.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.d.ts +19 -0
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.js +98 -0
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/cleanup.d.ts +2 -0
- package/dist/pipeline/src/deploy/cloudRun/cleanup.js +20 -0
- package/dist/pipeline/src/deploy/cloudRun/cleanup.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.d.ts +2 -0
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.js +51 -0
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.d.ts +7 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js +138 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.d.ts +4 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js +61 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.d.ts +18 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.js +57 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.d.ts +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.js +5 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.d.ts +2 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js +44 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.d.ts +2 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.js +30 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.d.ts +3 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.js +48 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.d.ts +3 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.js +17 -0
- package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/index.d.ts +4 -0
- package/dist/pipeline/src/deploy/cloudRun/index.js +82 -0
- package/dist/pipeline/src/deploy/cloudRun/index.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.d.ts +13 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.js +30 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/database.d.ts +6 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/database.js +54 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/database.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.d.ts +2 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.js +10 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.d.ts +2 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.js +6 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/jobName.d.ts +2 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/jobName.js +6 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/jobName.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.d.ts +9 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.js +14 -0
- package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.js.map +1 -0
- package/dist/pipeline/src/deploy/cloudSql/utils.d.ts +4 -0
- package/dist/pipeline/src/deploy/cloudSql/utils.js +14 -0
- package/dist/pipeline/src/deploy/cloudSql/utils.js.map +1 -0
- package/dist/pipeline/src/deploy/custom/deployJob.d.ts +3 -0
- package/dist/pipeline/src/deploy/custom/deployJob.js +45 -0
- package/dist/pipeline/src/deploy/custom/deployJob.js.map +1 -0
- package/dist/pipeline/src/deploy/custom/index.d.ts +2 -0
- package/dist/pipeline/src/deploy/custom/index.js +11 -0
- package/dist/pipeline/src/deploy/custom/index.js.map +1 -0
- package/dist/pipeline/src/deploy/dockerTag/deployJob.d.ts +3 -0
- package/dist/pipeline/src/deploy/dockerTag/deployJob.js +29 -0
- package/dist/pipeline/src/deploy/dockerTag/deployJob.js.map +1 -0
- package/dist/pipeline/src/deploy/dockerTag/index.d.ts +2 -0
- package/dist/pipeline/src/deploy/dockerTag/index.js +11 -0
- package/dist/pipeline/src/deploy/dockerTag/index.js.map +1 -0
- package/dist/pipeline/src/deploy/index.d.ts +21 -0
- package/dist/pipeline/src/deploy/index.js +32 -0
- package/dist/pipeline/src/deploy/index.js.map +1 -0
- package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.d.ts +6 -0
- package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.js +23 -0
- package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.js.map +1 -0
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.d.ts +14 -0
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.js +55 -0
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.js.map +1 -0
- package/dist/pipeline/src/deploy/kubernetes/deployJob.d.ts +3 -0
- package/dist/pipeline/src/deploy/kubernetes/deployJob.js +81 -0
- package/dist/pipeline/src/deploy/kubernetes/deployJob.js.map +1 -0
- package/dist/pipeline/src/deploy/kubernetes/index.d.ts +3 -0
- package/dist/pipeline/src/deploy/kubernetes/index.js +56 -0
- package/dist/pipeline/src/deploy/kubernetes/index.js.map +1 -0
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.d.ts +10 -0
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.js +45 -0
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.js.map +1 -0
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.d.ts +90 -0
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.js +75 -0
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.js.map +1 -0
- package/dist/pipeline/src/deploy/kubernetes/mongodb.d.ts +28 -0
- package/dist/pipeline/src/deploy/kubernetes/mongodb.js +104 -0
- package/dist/pipeline/src/deploy/kubernetes/mongodb.js.map +1 -0
- package/dist/pipeline/src/deploy/kubernetes/processSecretsAsFiles.d.ts +85 -0
- package/dist/pipeline/src/deploy/kubernetes/processSecretsAsFiles.js +27 -0
- package/dist/pipeline/src/deploy/kubernetes/processSecretsAsFiles.js.map +1 -0
- package/dist/pipeline/src/deploy/sbom.d.ts +4 -0
- package/dist/pipeline/src/deploy/sbom.js +28 -0
- package/dist/pipeline/src/deploy/sbom.js.map +1 -0
- package/dist/pipeline/src/deploy/types/base.d.ts +36 -0
- package/dist/pipeline/src/deploy/types/base.js +3 -0
- package/dist/pipeline/src/deploy/types/base.js.map +1 -0
- package/dist/pipeline/src/deploy/types/custom.d.ts +33 -0
- package/dist/pipeline/src/deploy/types/custom.js +3 -0
- package/dist/pipeline/src/deploy/types/custom.js.map +1 -0
- package/dist/pipeline/src/deploy/types/dockerTag.d.ts +12 -0
- package/dist/pipeline/src/deploy/types/dockerTag.js +3 -0
- package/dist/pipeline/src/deploy/types/dockerTag.js.map +1 -0
- package/dist/pipeline/src/deploy/types/googleCloudRun.d.ts +208 -0
- package/dist/pipeline/src/deploy/types/googleCloudRun.js +3 -0
- package/dist/pipeline/src/deploy/types/googleCloudRun.js.map +1 -0
- package/dist/pipeline/src/deploy/types/index.d.ts +22 -0
- package/dist/pipeline/src/deploy/types/index.js +26 -0
- package/dist/pipeline/src/deploy/types/index.js.map +1 -0
- package/dist/pipeline/src/deploy/types/kubernetes.d.ts +355 -0
- package/dist/pipeline/src/deploy/types/kubernetes.js +3 -0
- package/dist/pipeline/src/deploy/types/kubernetes.js.map +1 -0
- package/dist/pipeline/src/deploy/utils.d.ts +5 -0
- package/dist/pipeline/src/deploy/utils.js +30 -0
- package/dist/pipeline/src/deploy/utils.js.map +1 -0
- package/dist/pipeline/src/index.d.ts +9 -0
- package/dist/pipeline/src/index.js +26 -0
- package/dist/pipeline/src/index.js.map +1 -0
- package/dist/pipeline/src/packageInfos.d.ts +4 -0
- package/dist/pipeline/src/packageInfos.js +17 -0
- package/dist/pipeline/src/packageInfos.js.map +1 -0
- package/dist/pipeline/src/pipeline/createAllJobs.d.ts +14 -0
- package/dist/pipeline/src/pipeline/createAllJobs.js +45 -0
- package/dist/pipeline/src/pipeline/createAllJobs.js.map +1 -0
- package/dist/pipeline/src/pipeline/createChildPipeline.d.ts +3 -0
- package/dist/pipeline/src/pipeline/createChildPipeline.js +30 -0
- package/dist/pipeline/src/pipeline/createChildPipeline.js.map +1 -0
- package/dist/pipeline/src/pipeline/createJobsForComponent.d.ts +3 -0
- package/dist/pipeline/src/pipeline/createJobsForComponent.js +32 -0
- package/dist/pipeline/src/pipeline/createJobsForComponent.js.map +1 -0
- package/dist/pipeline/src/pipeline/createJobsForWorkspace.d.ts +3 -0
- package/dist/pipeline/src/pipeline/createJobsForWorkspace.js +10 -0
- package/dist/pipeline/src/pipeline/createJobsForWorkspace.js.map +1 -0
- package/dist/pipeline/src/pipeline/createMainPipeline.d.ts +3 -0
- package/dist/pipeline/src/pipeline/createMainPipeline.js +76 -0
- package/dist/pipeline/src/pipeline/createMainPipeline.js.map +1 -0
- package/dist/pipeline/src/pipeline/generatePipelineFiles.d.ts +2 -0
- package/dist/pipeline/src/pipeline/generatePipelineFiles.js +45 -0
- package/dist/pipeline/src/pipeline/generatePipelineFiles.js.map +1 -0
- package/dist/pipeline/src/pipeline/getPipelineStages.d.ts +7 -0
- package/dist/pipeline/src/pipeline/getPipelineStages.js +21 -0
- package/dist/pipeline/src/pipeline/getPipelineStages.js.map +1 -0
- package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.d.ts +11 -0
- package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.js +264 -0
- package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.js.map +1 -0
- package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.d.ts +4 -0
- package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.js +20 -0
- package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.js.map +1 -0
- package/dist/pipeline/src/pipeline/gitlab/getPipelineTriggerForGitlabChildPipeline.d.ts +1 -0
- package/dist/pipeline/src/pipeline/gitlab/getPipelineTriggerForGitlabChildPipeline.js +32 -0
- package/dist/pipeline/src/pipeline/gitlab/getPipelineTriggerForGitlabChildPipeline.js.map +1 -0
- package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.d.ts +35 -0
- package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.js +27 -0
- package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.js.map +1 -0
- package/dist/pipeline/src/pipeline/gitlab/sortGitLabJobDefProps.d.ts +7 -0
- package/dist/pipeline/src/pipeline/gitlab/sortGitLabJobDefProps.js +50 -0
- package/dist/pipeline/src/pipeline/gitlab/sortGitLabJobDefProps.js.map +1 -0
- package/dist/pipeline/src/pipeline/index.d.ts +4 -0
- package/dist/pipeline/src/pipeline/index.js +21 -0
- package/dist/pipeline/src/pipeline/index.js.map +1 -0
- package/dist/pipeline/src/pipeline/packageManager.d.ts +3 -0
- package/dist/pipeline/src/pipeline/packageManager.js +66 -0
- package/dist/pipeline/src/pipeline/packageManager.js.map +1 -0
- package/dist/pipeline/src/pipeline/yarn/yarnUtils.d.ts +5 -0
- package/dist/pipeline/src/pipeline/yarn/yarnUtils.js +51 -0
- package/dist/pipeline/src/pipeline/yarn/yarnUtils.js.map +1 -0
- package/dist/pipeline/src/rules/index.d.ts +11 -0
- package/dist/pipeline/src/rules/index.js +63 -0
- package/dist/pipeline/src/rules/index.js.map +1 -0
- package/dist/pipeline/src/runner/index.d.ts +2 -0
- package/dist/pipeline/src/runner/index.js +7 -0
- package/dist/pipeline/src/runner/index.js.map +1 -0
- package/dist/pipeline/src/types/config.d.ts +183 -0
- package/dist/pipeline/src/types/config.js +45 -0
- package/dist/pipeline/src/types/config.js.map +1 -0
- package/dist/pipeline/src/types/context.d.ts +163 -0
- package/dist/pipeline/src/types/context.js +12 -0
- package/dist/pipeline/src/types/context.js.map +1 -0
- package/dist/pipeline/src/types/environmentContext.d.ts +31 -0
- package/dist/pipeline/src/types/environmentContext.js +3 -0
- package/dist/pipeline/src/types/environmentContext.js.map +1 -0
- package/dist/pipeline/src/types/gitlab-ci-yml.d.ts +769 -0
- package/dist/pipeline/src/types/gitlab-ci-yml.js +8 -0
- package/dist/pipeline/src/types/gitlab-ci-yml.js.map +1 -0
- package/dist/pipeline/src/types/gitlab-types.d.ts +26 -0
- package/dist/pipeline/src/types/gitlab-types.js +3 -0
- package/dist/pipeline/src/types/gitlab-types.js.map +1 -0
- package/dist/pipeline/src/types/index.d.ts +4 -0
- package/dist/pipeline/src/types/index.js +21 -0
- package/dist/pipeline/src/types/index.js.map +1 -0
- package/dist/pipeline/src/types/jobs.d.ts +109 -0
- package/dist/pipeline/src/types/jobs.js +13 -0
- package/dist/pipeline/src/types/jobs.js.map +1 -0
- package/dist/pipeline/src/types/pipeline.d.ts +5 -0
- package/dist/pipeline/src/types/pipeline.js +3 -0
- package/dist/pipeline/src/types/pipeline.js.map +1 -0
- package/dist/pipeline/src/types/utils.d.ts +3 -0
- package/dist/pipeline/src/types/utils.js +3 -0
- package/dist/pipeline/src/types/utils.js.map +1 -0
- package/dist/pipeline/src/utils/gitlab.d.ts +6 -0
- package/dist/pipeline/src/utils/gitlab.js +30 -0
- package/dist/pipeline/src/utils/gitlab.js.map +1 -0
- package/dist/pipeline/src/utils/index.d.ts +3 -0
- package/dist/pipeline/src/utils/index.js +18 -0
- package/dist/pipeline/src/utils/index.js.map +1 -0
- package/dist/pipeline/src/utils/jsonParse.d.ts +1 -0
- package/dist/pipeline/src/utils/jsonParse.js +13 -0
- package/dist/pipeline/src/utils/jsonParse.js.map +1 -0
- package/dist/pipeline/src/utils/removeUndefined.d.ts +1 -0
- package/dist/pipeline/src/utils/removeUndefined.js +6 -0
- package/dist/pipeline/src/utils/removeUndefined.js.map +1 -0
- package/dist/pipeline/src/utils/writeFiles.d.ts +9 -0
- package/dist/pipeline/src/utils/writeFiles.js +44 -0
- package/dist/pipeline/src/utils/writeFiles.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +81 -27
- package/scripts/bundle +6 -0
- package/src/apps/catci/catci.ts +26 -0
- package/src/apps/catci/commands/security/auditDocument.ts +150 -0
- package/src/apps/catci/commands/security/commands.ts +161 -0
- package/src/apps/catci/commands/security/createSecurityAuditMergeRequest.ts +98 -0
- package/src/apps/catci/commands/security/evaluateSecurityAudit.ts +30 -0
- package/src/apps/catci/commands/security/topics.json +117 -0
- package/src/apps/catenv/catenv.ts +16 -54
- package/src/apps/catenv/printVariables.ts +58 -0
- package/src/apps/catenv/types.ts +6 -0
- package/src/apps/catenv/utils.ts +49 -0
- package/src/apps/catenv/writeDotEnvFiles.ts +42 -0
- package/src/apps/catenv/writeEnvDTs.ts +72 -0
- package/src/apps/cli/cli.ts +7 -2
- package/src/apps/cli/commands/cloudSQL/commandRestoreDb.ts +136 -0
- package/src/apps/cli/commands/cloudSQL/index.ts +7 -0
- package/src/apps/cli/commands/general/index.ts +12 -15
- package/src/apps/cli/commands/general/namespaceAutoCompletion.ts +1 -1
- package/src/apps/cli/commands/general/portForward.ts +4 -4
- package/src/apps/cli/commands/mongodb/index.ts +1 -1
- package/src/apps/cli/commands/mongodb/projectMongoDestroyMember.ts +14 -16
- package/src/apps/cli/commands/mongodb/projectMongoGetShell.ts +4 -5
- package/src/apps/cli/commands/mongodb/projectMongoPortForward.ts +24 -7
- package/src/apps/cli/commands/mongodb/utils/index.ts +25 -19
- package/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.ts +175 -0
- package/src/apps/cli/commands/project/commandCloudSqlProxy.ts +95 -55
- package/src/apps/cli/commands/project/commandConfigSecrets.ts +68 -52
- package/src/apps/cli/commands/project/commandDeletePods.ts +4 -6
- package/src/apps/cli/commands/project/commandDeleteProject.ts +2 -2
- package/src/apps/cli/commands/project/commandEnvVars.ts +7 -4
- package/src/apps/cli/commands/project/commandGetMyTotalWorktime.ts +3 -3
- package/src/apps/cli/commands/project/commandGetShell.ts +11 -10
- package/src/apps/cli/commands/project/commandGitlabCi.ts +6 -5
- package/src/apps/cli/commands/project/commandListPods.ts +6 -4
- package/src/apps/cli/commands/project/commandMigrateHelm3.ts +10 -9
- package/src/apps/cli/commands/project/commandNamespace.ts +2 -2
- package/src/apps/cli/commands/project/commandOpenCostDashboard.ts +5 -5
- package/src/apps/cli/commands/project/commandOpenDashboard.ts +12 -32
- package/src/apps/cli/commands/project/commandOpenEnv.ts +2 -2
- package/src/apps/cli/commands/project/commandOpenGit.ts +4 -4
- package/src/apps/cli/commands/project/commandOpenGrafana.ts +5 -5
- package/src/apps/cli/commands/project/commandOpenGrafanaPod.ts +7 -9
- package/src/apps/cli/commands/project/commandOpenLogs.ts +5 -36
- package/src/apps/cli/commands/project/commandPauseProject.ts +2 -2
- package/src/apps/cli/commands/project/commandPortForward.ts +80 -34
- package/src/apps/cli/commands/project/commandRenewToken.ts +12 -0
- package/src/apps/cli/commands/project/commandSecretsClearBackups.ts +26 -0
- package/src/apps/cli/commands/project/commandSecurityEvaluate.ts +26 -0
- package/src/apps/cli/commands/project/commandSetup.ts +2 -2
- package/src/apps/cli/commands/project/commandTriggerCronjob.ts +3 -2
- package/src/apps/cli/commands/project/index.ts +10 -4
- package/src/apps/cli/commands/project/setup/index.ts +4 -2
- package/src/apps/cli/commands/project/setup/setupAccessTokens.ts +54 -56
- package/src/apps/cli/commands/project/setup/setupCloudRun.ts +84 -0
- package/src/apps/cli/commands/project/setup/setupContext.ts +14 -19
- package/src/apps/cli/commands/project/setup/setupKubernetes.ts +92 -33
- package/src/apps/cli/commands/project/setup/setupTopic.ts +17 -0
- package/src/apps/cli/commands/project/utils/autocompletions.ts +1 -1
- package/src/apps/cli/commands/project/utils/ensureCluster.ts +3 -5
- package/src/apps/cli/commands/project/utils/ensureNamespace.ts +9 -20
- package/src/apps/cli/commands/project/utils/showProjectBanner.ts +1 -1
- package/src/apps/cli/commands/theStuffThatReallyMatters/index.ts +2 -2
- package/src/apps/cli/utils/getGoogleAuthUserNumber.ts +1 -1
- package/src/apps/cli/verify/index.ts +2 -18
- package/src/catci.ts +3 -0
- package/src/catenv.ts +16 -3
- package/src/cli.ts +1 -7
- package/src/config/constants.ts +0 -2
- package/src/config/getProjectConfig.ts +86 -56
- package/src/config/parseChoice.ts +4 -0
- package/src/gcloud/artifactsRegistry.ts +16 -0
- package/src/gcloud/cloudRun/getCloudRunDomainSuffix.ts +35 -0
- package/src/gcloud/cloudRun/openCloudRunDashboards.ts +22 -0
- package/src/gcloud/cloudSql/copyDb.ts +57 -0
- package/src/gcloud/cloudSql/startProxy.ts +74 -0
- package/src/gcloud/enableServices.ts +14 -0
- package/src/gcloud/openDashboard.ts +19 -0
- package/src/gcloud/serviceAccounts.ts +120 -0
- package/src/index.ts +1 -0
- package/src/kubernetes/index.ts +27 -0
- package/src/kubernetes/openKubernetesDashboards.ts +52 -0
- package/src/kubernetes/portForward.ts +15 -0
- package/src/packageInfos.ts +7 -1
- package/src/types/child-process-promise.d.ts +37 -1
- package/src/utils/boxWithAscii.ts +9 -0
- package/src/utils/cluster.ts +3 -3
- package/src/utils/editAsFile.ts +6 -5
- package/src/utils/files.ts +0 -9
- package/src/utils/getEditor.ts +4 -2
- package/src/utils/gitlab.ts +171 -44
- package/src/utils/log.ts +1 -1
- package/src/utils/{portForward.ts → portForwards.ts} +27 -22
- package/src/utils/preferences/index.ts +4 -6
- package/src/utils/projects/index.ts +10 -26
- package/src/utils/promise.ts +7 -5
- package/tsconfig.json +7 -3
- package/.nvmrc +0 -1
- package/dist/apps/catenv/catenv.d.ts +0 -2
- package/dist/apps/catenv/catenv.js +0 -135
- package/dist/apps/catenv/catenv.js.map +0 -1
- package/dist/apps/cli/cli.js +0 -81
- package/dist/apps/cli/cli.js.map +0 -1
- package/dist/apps/cli/commands/general/index.js +0 -216
- package/dist/apps/cli/commands/general/index.js.map +0 -1
- package/dist/apps/cli/commands/general/namespaceAutoCompletion.js +0 -56
- package/dist/apps/cli/commands/general/namespaceAutoCompletion.js.map +0 -1
- package/dist/apps/cli/commands/general/portForward.js +0 -97
- package/dist/apps/cli/commands/general/portForward.js.map +0 -1
- package/dist/apps/cli/commands/mongodb/index.js +0 -53
- package/dist/apps/cli/commands/mongodb/index.js.map +0 -1
- package/dist/apps/cli/commands/mongodb/projectMongoDestroyMember.js +0 -190
- package/dist/apps/cli/commands/mongodb/projectMongoDestroyMember.js.map +0 -1
- package/dist/apps/cli/commands/mongodb/projectMongoGetShell.js +0 -96
- package/dist/apps/cli/commands/mongodb/projectMongoGetShell.js.map +0 -1
- package/dist/apps/cli/commands/mongodb/projectMongoPortForward.js +0 -105
- package/dist/apps/cli/commands/mongodb/projectMongoPortForward.js.map +0 -1
- package/dist/apps/cli/commands/mongodb/utils/index.js +0 -167
- package/dist/apps/cli/commands/mongodb/utils/index.js.map +0 -1
- package/dist/apps/cli/commands/project/commandCloudSqlProxy.js +0 -137
- package/dist/apps/cli/commands/project/commandCloudSqlProxy.js.map +0 -1
- package/dist/apps/cli/commands/project/commandConfigSecrets.js +0 -320
- package/dist/apps/cli/commands/project/commandConfigSecrets.js.map +0 -1
- package/dist/apps/cli/commands/project/commandCopyDB.d.ts +0 -3
- package/dist/apps/cli/commands/project/commandCopyDB.js +0 -102
- package/dist/apps/cli/commands/project/commandCopyDB.js.map +0 -1
- package/dist/apps/cli/commands/project/commandDeletePods.js +0 -120
- package/dist/apps/cli/commands/project/commandDeletePods.js.map +0 -1
- package/dist/apps/cli/commands/project/commandDeleteProject.js +0 -97
- package/dist/apps/cli/commands/project/commandDeleteProject.js.map +0 -1
- package/dist/apps/cli/commands/project/commandEnvVars.js +0 -74
- package/dist/apps/cli/commands/project/commandEnvVars.js.map +0 -1
- package/dist/apps/cli/commands/project/commandGetMyTotalWorktime.js +0 -58
- package/dist/apps/cli/commands/project/commandGetMyTotalWorktime.js.map +0 -1
- package/dist/apps/cli/commands/project/commandGetShell.js +0 -92
- package/dist/apps/cli/commands/project/commandGetShell.js.map +0 -1
- package/dist/apps/cli/commands/project/commandGitlabCi.js +0 -185
- package/dist/apps/cli/commands/project/commandGitlabCi.js.map +0 -1
- package/dist/apps/cli/commands/project/commandInitProject.old.d.ts +0 -3
- package/dist/apps/cli/commands/project/commandInitProject.old.js +0 -345
- package/dist/apps/cli/commands/project/commandInitProject.old.js.map +0 -1
- package/dist/apps/cli/commands/project/commandListPods.js +0 -78
- package/dist/apps/cli/commands/project/commandListPods.js.map +0 -1
- package/dist/apps/cli/commands/project/commandMigrateHelm3.js +0 -113
- package/dist/apps/cli/commands/project/commandMigrateHelm3.js.map +0 -1
- package/dist/apps/cli/commands/project/commandNamespace.js +0 -70
- package/dist/apps/cli/commands/project/commandNamespace.js.map +0 -1
- package/dist/apps/cli/commands/project/commandOpenCostDashboard.js +0 -83
- package/dist/apps/cli/commands/project/commandOpenCostDashboard.js.map +0 -1
- package/dist/apps/cli/commands/project/commandOpenDashboard.js +0 -85
- package/dist/apps/cli/commands/project/commandOpenDashboard.js.map +0 -1
- package/dist/apps/cli/commands/project/commandOpenEnv.js +0 -80
- package/dist/apps/cli/commands/project/commandOpenEnv.js.map +0 -1
- package/dist/apps/cli/commands/project/commandOpenGit.js +0 -61
- package/dist/apps/cli/commands/project/commandOpenGit.js.map +0 -1
- package/dist/apps/cli/commands/project/commandOpenGrafana.js +0 -83
- package/dist/apps/cli/commands/project/commandOpenGrafana.js.map +0 -1
- package/dist/apps/cli/commands/project/commandOpenGrafanaPod.js +0 -99
- package/dist/apps/cli/commands/project/commandOpenGrafanaPod.js.map +0 -1
- package/dist/apps/cli/commands/project/commandOpenLogs.js +0 -87
- package/dist/apps/cli/commands/project/commandOpenLogs.js.map +0 -1
- package/dist/apps/cli/commands/project/commandPauseProject.js +0 -97
- package/dist/apps/cli/commands/project/commandPauseProject.js.map +0 -1
- package/dist/apps/cli/commands/project/commandPortForward.js +0 -106
- package/dist/apps/cli/commands/project/commandPortForward.js.map +0 -1
- package/dist/apps/cli/commands/project/commandSetup.js +0 -58
- package/dist/apps/cli/commands/project/commandSetup.js.map +0 -1
- package/dist/apps/cli/commands/project/commandTriggerCronjob.js +0 -144
- package/dist/apps/cli/commands/project/commandTriggerCronjob.js.map +0 -1
- package/dist/apps/cli/commands/project/index.js +0 -94
- package/dist/apps/cli/commands/project/index.js.map +0 -1
- package/dist/apps/cli/commands/project/setup/index.js +0 -103
- package/dist/apps/cli/commands/project/setup/index.js.map +0 -1
- package/dist/apps/cli/commands/project/setup/setupAccessTokens.js +0 -115
- package/dist/apps/cli/commands/project/setup/setupAccessTokens.js.map +0 -1
- package/dist/apps/cli/commands/project/setup/setupContext.d.ts +0 -3
- package/dist/apps/cli/commands/project/setup/setupContext.js +0 -74
- package/dist/apps/cli/commands/project/setup/setupContext.js.map +0 -1
- package/dist/apps/cli/commands/project/setup/setupKubernetes.d.ts +0 -3
- package/dist/apps/cli/commands/project/setup/setupKubernetes.js +0 -132
- package/dist/apps/cli/commands/project/setup/setupKubernetes.js.map +0 -1
- package/dist/apps/cli/commands/project/utils/autocompletions.js +0 -96
- package/dist/apps/cli/commands/project/utils/autocompletions.js.map +0 -1
- package/dist/apps/cli/commands/project/utils/ensureCluster.js +0 -84
- package/dist/apps/cli/commands/project/utils/ensureCluster.js.map +0 -1
- package/dist/apps/cli/commands/project/utils/ensureNamespace.d.ts +0 -2
- package/dist/apps/cli/commands/project/utils/ensureNamespace.js +0 -104
- package/dist/apps/cli/commands/project/utils/ensureNamespace.js.map +0 -1
- package/dist/apps/cli/commands/project/utils/showProjectBanner.js +0 -58
- package/dist/apps/cli/commands/project/utils/showProjectBanner.js.map +0 -1
- package/dist/apps/cli/commands/shared/index.d.ts +0 -3
- package/dist/apps/cli/commands/shared/index.js +0 -70
- package/dist/apps/cli/commands/shared/index.js.map +0 -1
- package/dist/apps/cli/commands/theStuffThatReallyMatters/index.js +0 -101
- package/dist/apps/cli/commands/theStuffThatReallyMatters/index.js.map +0 -1
- package/dist/apps/cli/config/writeConfig.d.ts +0 -5
- package/dist/apps/cli/config/writeConfig.js +0 -106
- package/dist/apps/cli/config/writeConfig.js.map +0 -1
- package/dist/apps/cli/utils/getGoogleAuthUserNumber.js +0 -69
- package/dist/apps/cli/utils/getGoogleAuthUserNumber.js.map +0 -1
- package/dist/apps/cli/verify/index.js +0 -94
- package/dist/apps/cli/verify/index.js.map +0 -1
- package/dist/apps/cli/verify/migration/fromv2.d.ts +0 -4
- package/dist/apps/cli/verify/migration/fromv2.js +0 -347
- package/dist/apps/cli/verify/migration/fromv2.js.map +0 -1
- package/dist/apps/cli/verify/migration/migrateSecrets.d.ts +0 -4
- package/dist/apps/cli/verify/migration/migrateSecrets.js +0 -88
- package/dist/apps/cli/verify/migration/migrateSecrets.js.map +0 -1
- package/dist/apps/cli/verify/migration/oldGitlabCi.d.ts +0 -18
- package/dist/apps/cli/verify/migration/oldGitlabCi.js +0 -30
- package/dist/apps/cli/verify/migration/oldGitlabCi.js.map +0 -1
- package/dist/catenv.js +0 -13
- package/dist/catenv.js.map +0 -1
- package/dist/cli.js +0 -15
- package/dist/cli.js.map +0 -1
- package/dist/config/constants.js +0 -7
- package/dist/config/constants.js.map +0 -1
- package/dist/config/getProjectConfig.d.ts +0 -24
- package/dist/config/getProjectConfig.js +0 -259
- package/dist/config/getProjectConfig.js.map +0 -1
- package/dist/k8sApi/index.js.map +0 -1
- package/dist/packageInfos.js +0 -6
- package/dist/packageInfos.js.map +0 -1
- package/dist/types/types.js +0 -3
- package/dist/utils/cluster.js +0 -73
- package/dist/utils/cluster.js.map +0 -1
- package/dist/utils/editAsFile.js +0 -85
- package/dist/utils/editAsFile.js.map +0 -1
- package/dist/utils/files.d.ts +0 -2
- package/dist/utils/files.js +0 -83
- package/dist/utils/files.js.map +0 -1
- package/dist/utils/getEditor.js +0 -70
- package/dist/utils/getEditor.js.map +0 -1
- package/dist/utils/gitlab.d.ts +0 -22
- package/dist/utils/gitlab.js +0 -278
- package/dist/utils/gitlab.js.map +0 -1
- package/dist/utils/log.js.map +0 -1
- package/dist/utils/passwordstore/index.d.ts +0 -8
- package/dist/utils/passwordstore/index.js +0 -378
- package/dist/utils/passwordstore/index.js.map +0 -1
- package/dist/utils/portForward.d.ts +0 -4
- package/dist/utils/portForward.js +0 -116
- package/dist/utils/portForward.js.map +0 -1
- package/dist/utils/preferences/index.js +0 -119
- package/dist/utils/preferences/index.js.map +0 -1
- package/dist/utils/projects/index.js +0 -153
- package/dist/utils/projects/index.js.map +0 -1
- package/dist/utils/promise.js +0 -62
- package/dist/utils/promise.js.map +0 -1
- package/dist/utils/shell.js +0 -81
- package/dist/utils/shell.js.map +0 -1
- package/src/apps/cli/commands/project/commandCopyDB.ts +0 -91
- package/src/apps/cli/commands/project/commandInitProject.old.ts +0 -290
- package/src/apps/cli/commands/shared/index.ts +0 -36
- package/src/apps/cli/config/writeConfig.ts +0 -71
- package/src/apps/cli/verify/migration/fromv2.ts +0 -264
- package/src/apps/cli/verify/migration/migrateSecrets.ts +0 -37
- package/src/apps/cli/verify/migration/oldGitlabCi.ts +0 -48
- package/src/utils/passwordstore/index.ts +0 -190
- /package/dist/{apps → cli/src/apps}/cli/cli.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/general/namespaceAutoCompletion.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/mongodb/utils/index.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/utils/autocompletions.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/commands/project/utils/ensureCluster.d.ts +0 -0
- /package/dist/{apps → cli/src/apps}/cli/utils/getGoogleAuthUserNumber.d.ts +0 -0
- /package/dist/{catenv.d.ts → cli/src/catci.d.ts} +0 -0
- /package/dist/{cli.d.ts → cli/src/catenv.d.ts} +0 -0
- /package/dist/{k8sApi → cli/src/k8sApi}/index.d.ts +0 -0
- /package/dist/{packageInfos.d.ts → cli/src/packageInfos.d.ts} +0 -0
- /package/dist/{utils → cli/src/utils}/cluster.d.ts +0 -0
- /package/dist/{utils → cli/src/utils}/editAsFile.d.ts +0 -0
- /package/dist/{utils → cli/src/utils}/getEditor.d.ts +0 -0
- /package/dist/{utils → cli/src/utils}/log.d.ts +0 -0
- /package/dist/{utils → cli/src/utils}/preferences/index.d.ts +0 -0
- /package/dist/{utils → cli/src/utils}/promise.d.ts +0 -0
- /package/dist/{utils → cli/src/utils}/shell.d.ts +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import open from "open";
|
|
2
|
-
import Vorpal from "vorpal";
|
|
2
|
+
import type Vorpal from "vorpal";
|
|
3
3
|
import {
|
|
4
4
|
GRAFANA_PROXY_LOCAL_PORT,
|
|
5
5
|
GRAFANA_PROXY_TARGET_PORT,
|
|
6
6
|
} from "../../../../config/constants";
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { startKubePortForward } from "../../../../kubernetes/portForward";
|
|
9
9
|
|
|
10
10
|
import { getProjectNamespace } from "../../../../utils/projects";
|
|
11
11
|
|
|
@@ -15,18 +15,18 @@ export default async (vorpal: Vorpal) =>
|
|
|
15
15
|
vorpal
|
|
16
16
|
.command(
|
|
17
17
|
"project-check-costs <envComponent>",
|
|
18
|
-
"Shows you how much you're spending"
|
|
18
|
+
"Shows you how much you're spending",
|
|
19
19
|
)
|
|
20
20
|
.autocomplete(await envAndComponents())
|
|
21
21
|
.action(async function ({ envComponent }) {
|
|
22
22
|
await ensureCluster.call(this, envComponent);
|
|
23
23
|
const namespace = await getProjectNamespace(envComponent);
|
|
24
24
|
const url = `http://localhost:${GRAFANA_PROXY_LOCAL_PORT}/namespace.html?name=${namespace}`;
|
|
25
|
-
await
|
|
25
|
+
await startKubePortForward(
|
|
26
26
|
"deployment/kubecost-cost-analyzer",
|
|
27
27
|
GRAFANA_PROXY_LOCAL_PORT,
|
|
28
28
|
GRAFANA_PROXY_TARGET_PORT,
|
|
29
|
-
"kubecost"
|
|
29
|
+
"kubecost",
|
|
30
30
|
);
|
|
31
31
|
open(url);
|
|
32
32
|
});
|
|
@@ -1,48 +1,28 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { isOfDeployType } from "@catladder/pipeline";
|
|
2
|
+
import type Vorpal from "vorpal";
|
|
2
3
|
import {
|
|
3
4
|
getPipelineContextByChoice,
|
|
4
5
|
parseChoice,
|
|
5
6
|
} from "../../../../config/getProjectConfig";
|
|
6
|
-
import {
|
|
7
|
-
import { openGoogleCloudKubernetesDashboard } from "
|
|
7
|
+
import { openGoogleCloudRunDashboard } from "../../../../gcloud/cloudRun/openCloudRunDashboards";
|
|
8
|
+
import { openGoogleCloudKubernetesDashboard } from "../../../../kubernetes/openKubernetesDashboards";
|
|
9
|
+
|
|
8
10
|
import { envAndComponents } from "./utils/autocompletions";
|
|
11
|
+
|
|
9
12
|
export default async (vorpal: Vorpal) =>
|
|
10
13
|
vorpal
|
|
11
14
|
.command(
|
|
12
15
|
"project-open-dashboard <envComponent>",
|
|
13
|
-
"open
|
|
16
|
+
"open an apps dashboard (kubernetes or cloudrun)",
|
|
14
17
|
)
|
|
15
18
|
.autocomplete(await envAndComponents())
|
|
16
19
|
.action(async function ({ envComponent }) {
|
|
17
20
|
const { env, componentName } = parseChoice(envComponent);
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
if (
|
|
24
|
-
!componentConfig.deploy ||
|
|
25
|
-
componentConfig.deploy.type !== "kubernetes"
|
|
26
|
-
) {
|
|
27
|
-
throw new Error(
|
|
28
|
-
"only kubernetes deployments are supported at the moment"
|
|
29
|
-
);
|
|
21
|
+
const context = await getPipelineContextByChoice(env, componentName);
|
|
22
|
+
if (isOfDeployType(context.deploy?.config, "kubernetes")) {
|
|
23
|
+
await openGoogleCloudKubernetesDashboard(this, context);
|
|
30
24
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
!componentConfig.deploy.cluster ||
|
|
34
|
-
componentConfig.deploy.cluster.type !== "gcloud"
|
|
35
|
-
) {
|
|
36
|
-
throw new Error("no gcloud custer configured");
|
|
25
|
+
if (isOfDeployType(context.deploy?.config, "google-cloudrun")) {
|
|
26
|
+
await openGoogleCloudRunDashboard(this, context);
|
|
37
27
|
}
|
|
38
|
-
// currently only supports kubernetes
|
|
39
|
-
const namespace = environment.envVars.KUBE_NAMESPACE;
|
|
40
|
-
|
|
41
|
-
const authGoogleNumber = await getGoogleAuthUserNumber.call(this, vorpal);
|
|
42
|
-
|
|
43
|
-
openGoogleCloudKubernetesDashboard(
|
|
44
|
-
componentConfig.deploy.cluster,
|
|
45
|
-
namespace,
|
|
46
|
-
authGoogleNumber
|
|
47
|
-
);
|
|
48
28
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import open from "open";
|
|
2
|
-
import Vorpal from "vorpal";
|
|
2
|
+
import type Vorpal from "vorpal";
|
|
3
3
|
import {
|
|
4
4
|
getEnvironment,
|
|
5
5
|
parseChoice,
|
|
@@ -18,5 +18,5 @@ export default async (vorpal: Vorpal) =>
|
|
|
18
18
|
const environment = await getEnvironment(env, componentName);
|
|
19
19
|
const url = environment.url;
|
|
20
20
|
|
|
21
|
-
open(url);
|
|
21
|
+
open(url.toString());
|
|
22
22
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import Vorpal from "vorpal";
|
|
2
|
-
import {
|
|
1
|
+
import type Vorpal from "vorpal";
|
|
2
|
+
import { exec } from "child-process-promise";
|
|
3
3
|
|
|
4
4
|
export default async (vorpal: Vorpal) =>
|
|
5
5
|
vorpal
|
|
6
6
|
.command(
|
|
7
7
|
"project-open-git",
|
|
8
|
-
"open the repo on gitlab / github in your browser"
|
|
8
|
+
"open the repo on gitlab / github in your browser",
|
|
9
9
|
)
|
|
10
10
|
.action(async () => {
|
|
11
|
-
await
|
|
11
|
+
await exec("npx git-open");
|
|
12
12
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import open from "open";
|
|
2
|
-
import {
|
|
3
|
-
import Vorpal from "vorpal";
|
|
2
|
+
import { startKubePortForward } from "../../../../kubernetes/portForward";
|
|
3
|
+
import type Vorpal from "vorpal";
|
|
4
4
|
import {
|
|
5
5
|
GRAFANA_PROXY_LOCAL_PORT,
|
|
6
6
|
GRAFANA_PROXY_TARGET_PORT,
|
|
@@ -14,18 +14,18 @@ export default async (vorpal: Vorpal) =>
|
|
|
14
14
|
vorpal
|
|
15
15
|
.command(
|
|
16
16
|
"project-open-grafana <envComponent>",
|
|
17
|
-
"open Grafana dashboard for your namespace"
|
|
17
|
+
"open Grafana dashboard for your namespace",
|
|
18
18
|
)
|
|
19
19
|
.autocomplete(await envAndComponents())
|
|
20
20
|
.action(async function ({ envComponent }) {
|
|
21
21
|
await ensureCluster.call(this, envComponent);
|
|
22
22
|
const namespace = await getProjectNamespace(envComponent);
|
|
23
23
|
const url = `http://localhost:${GRAFANA_PROXY_LOCAL_PORT}/grafana/d/at-cost-analysis-namespace2/namespace-utilization-metrics?var-namespace=${namespace}`;
|
|
24
|
-
await
|
|
24
|
+
await startKubePortForward(
|
|
25
25
|
"deployment/kubecost-cost-analyzer",
|
|
26
26
|
GRAFANA_PROXY_LOCAL_PORT,
|
|
27
27
|
GRAFANA_PROXY_TARGET_PORT,
|
|
28
|
-
"kubecost"
|
|
28
|
+
"kubecost",
|
|
29
29
|
);
|
|
30
30
|
open(url);
|
|
31
31
|
});
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import open from "open";
|
|
2
|
-
import Vorpal from "vorpal";
|
|
2
|
+
import type Vorpal from "vorpal";
|
|
3
3
|
import {
|
|
4
4
|
GRAFANA_PROXY_LOCAL_PORT,
|
|
5
5
|
GRAFANA_PROXY_TARGET_PORT,
|
|
6
6
|
} from "../../../../config/constants";
|
|
7
|
+
import { getProjectPodNames } from "../../../../kubernetes";
|
|
7
8
|
import { logError } from "../../../../utils/log";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
getProjectNamespace,
|
|
11
|
-
getProjectPodNames,
|
|
12
|
-
} from "../../../../utils/projects";
|
|
9
|
+
import { startKubePortForward } from "../../../../kubernetes/portForward";
|
|
10
|
+
import { getProjectNamespace } from "../../../../utils/projects";
|
|
13
11
|
import { envAndComponents } from "./utils/autocompletions";
|
|
14
12
|
import ensureCluster from "./utils/ensureCluster";
|
|
15
13
|
|
|
@@ -17,7 +15,7 @@ export default async (vorpal: Vorpal) =>
|
|
|
17
15
|
vorpal
|
|
18
16
|
.command(
|
|
19
17
|
"project-open-grafana-pod <envComponent>",
|
|
20
|
-
"open Grafana dashboard for a specific pod"
|
|
18
|
+
"open Grafana dashboard for a specific pod",
|
|
21
19
|
)
|
|
22
20
|
.autocomplete(await envAndComponents())
|
|
23
21
|
.action(async function ({ envComponent }) {
|
|
@@ -35,11 +33,11 @@ export default async (vorpal: Vorpal) =>
|
|
|
35
33
|
});
|
|
36
34
|
const namespace = await getProjectNamespace(envComponent);
|
|
37
35
|
const url = `http://localhost:${GRAFANA_PROXY_LOCAL_PORT}/grafana/d/at-cost-analysis-pod/pod-cost-and-utilization-metrics?var-namespace=${namespace}&var-pod=${podName}`;
|
|
38
|
-
await
|
|
36
|
+
await startKubePortForward(
|
|
39
37
|
"deployment/kubecost-cost-analyzer",
|
|
40
38
|
GRAFANA_PROXY_LOCAL_PORT,
|
|
41
39
|
GRAFANA_PROXY_TARGET_PORT,
|
|
42
|
-
"kubecost"
|
|
40
|
+
"kubecost",
|
|
43
41
|
);
|
|
44
42
|
open(url);
|
|
45
43
|
});
|
|
@@ -1,52 +1,21 @@
|
|
|
1
|
-
import Vorpal from "vorpal";
|
|
1
|
+
import type Vorpal from "vorpal";
|
|
2
2
|
import {
|
|
3
3
|
getPipelineContextByChoice,
|
|
4
4
|
parseChoice,
|
|
5
5
|
} from "../../../../config/getProjectConfig";
|
|
6
|
-
import {
|
|
7
|
-
import { getProjectNamespace } from "../../../../utils/projects";
|
|
8
|
-
import { getGoogleAuthUserNumber } from "../../utils/getGoogleAuthUserNumber";
|
|
9
|
-
import { openGoogleCloudLogs } from "../shared";
|
|
6
|
+
import { openGoogleCloudLogs } from "../../../../kubernetes/openKubernetesDashboards";
|
|
10
7
|
import { envAndComponents } from "./utils/autocompletions";
|
|
11
|
-
import ensureCluster from "./utils/ensureCluster";
|
|
12
8
|
|
|
13
9
|
export default async (vorpal: Vorpal) =>
|
|
14
10
|
vorpal
|
|
15
11
|
.command(
|
|
16
12
|
"project-open-logs <envComponent>",
|
|
17
|
-
"open google cloud logs (stackdriver logs)"
|
|
13
|
+
"open google cloud logs (stackdriver logs)",
|
|
18
14
|
)
|
|
19
15
|
.autocomplete(await envAndComponents())
|
|
20
16
|
.action(async function ({ envComponent }) {
|
|
21
17
|
const { env, componentName } = parseChoice(envComponent);
|
|
22
|
-
const
|
|
23
|
-
env,
|
|
24
|
-
componentName
|
|
25
|
-
);
|
|
18
|
+
const context = await getPipelineContextByChoice(env, componentName);
|
|
26
19
|
|
|
27
|
-
|
|
28
|
-
!componentConfig.deploy ||
|
|
29
|
-
componentConfig.deploy.type !== "kubernetes"
|
|
30
|
-
) {
|
|
31
|
-
throw new Error(
|
|
32
|
-
"only kubernetes deployments are supported at the moment"
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
if (
|
|
37
|
-
!componentConfig.deploy.cluster ||
|
|
38
|
-
componentConfig.deploy.cluster.type !== "gcloud"
|
|
39
|
-
) {
|
|
40
|
-
throw new Error("no gcloud custer configured");
|
|
41
|
-
}
|
|
42
|
-
// currently only supports kubernetes
|
|
43
|
-
const namespace = environment.envVars.KUBE_NAMESPACE;
|
|
44
|
-
|
|
45
|
-
const authGoogleNumber = await getGoogleAuthUserNumber.call(this, vorpal);
|
|
46
|
-
|
|
47
|
-
await openGoogleCloudLogs(
|
|
48
|
-
componentConfig.deploy.cluster,
|
|
49
|
-
namespace,
|
|
50
|
-
authGoogleNumber
|
|
51
|
-
);
|
|
20
|
+
await openGoogleCloudLogs(this, context);
|
|
52
21
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Vorpal from "vorpal";
|
|
1
|
+
import type Vorpal from "vorpal";
|
|
2
2
|
import { exec } from "child-process-promise";
|
|
3
3
|
import { getProjectNamespace } from "../../../../utils/projects";
|
|
4
4
|
import { envAndComponents } from "./utils/autocompletions";
|
|
@@ -7,7 +7,7 @@ export default async (vorpal: Vorpal) =>
|
|
|
7
7
|
vorpal
|
|
8
8
|
.command(
|
|
9
9
|
"project-pause <envComponent>",
|
|
10
|
-
"halts all running pods (scales to 0)"
|
|
10
|
+
"halts all running pods (scales to 0)",
|
|
11
11
|
)
|
|
12
12
|
.autocomplete(await envAndComponents())
|
|
13
13
|
.action(async function ({ envComponent }) {
|
|
@@ -1,45 +1,91 @@
|
|
|
1
|
-
import Vorpal from "vorpal";
|
|
1
|
+
import type Vorpal from "vorpal";
|
|
2
|
+
import { getProjectPodNames } from "../../../../kubernetes";
|
|
2
3
|
import { logError } from "../../../../utils/log";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
getProjectNamespace,
|
|
6
|
-
getProjectPodNames,
|
|
7
|
-
} from "../../../../utils/projects";
|
|
4
|
+
import { startKubePortForward } from "../../../../kubernetes/portForward";
|
|
5
|
+
import { getProjectNamespace } from "../../../../utils/projects";
|
|
8
6
|
import { envAndComponents } from "./utils/autocompletions";
|
|
9
7
|
import ensureCluster from "./utils/ensureCluster";
|
|
8
|
+
import type { CommandInstance } from "vorpal";
|
|
9
|
+
import { parseChoice } from "../../../../config/parseChoice";
|
|
10
|
+
import { getPipelineContextByChoice } from "../../../../config/getProjectConfig";
|
|
11
|
+
import type { ComponentContext } from "@catladder/pipeline";
|
|
12
|
+
import { isOfDeployType } from "@catladder/pipeline";
|
|
13
|
+
import { startPortForwardCommand } from "../../../../utils/portForwards";
|
|
14
|
+
import open from "open";
|
|
15
|
+
const kubePortForward = async (cmd: CommandInstance, envComponent: string) => {
|
|
16
|
+
await ensureCluster.call(cmd, envComponent);
|
|
17
|
+
const namespace = await getProjectNamespace(envComponent);
|
|
18
|
+
const podNames = await getProjectPodNames(envComponent);
|
|
19
|
+
if (podNames.length === 0) {
|
|
20
|
+
logError(cmd, "sorry, no pods found");
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const { podName } = await cmd.prompt({
|
|
24
|
+
type: "list",
|
|
25
|
+
name: "podName",
|
|
26
|
+
choices: podNames,
|
|
27
|
+
message: "Which pod? 🤔",
|
|
28
|
+
});
|
|
10
29
|
|
|
30
|
+
const { localPort } = await cmd.prompt({
|
|
31
|
+
type: "number",
|
|
32
|
+
name: "localPort",
|
|
33
|
+
|
|
34
|
+
message: "Local port: ",
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
const { remotePort } = await cmd.prompt({
|
|
38
|
+
type: "number",
|
|
39
|
+
name: "remotePort",
|
|
40
|
+
|
|
41
|
+
message: "Remote port: ",
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
return startKubePortForward(podName, localPort, remotePort, namespace);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const cloudRunPortForward = async (
|
|
48
|
+
cmd: CommandInstance,
|
|
49
|
+
context: ComponentContext,
|
|
50
|
+
) => {
|
|
51
|
+
if (!isOfDeployType(context.deploy?.config, "google-cloudrun")) {
|
|
52
|
+
throw new Error("not cloud run");
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const { fullName } = context.environment;
|
|
56
|
+
let serviceName: string = fullName.toString();
|
|
57
|
+
if (context.environment.envType === "review") {
|
|
58
|
+
const { mr } = await cmd.prompt({
|
|
59
|
+
type: "number",
|
|
60
|
+
name: "mr",
|
|
61
|
+
|
|
62
|
+
message: "Which mr 🤔 ",
|
|
63
|
+
});
|
|
64
|
+
// poor mans solution
|
|
65
|
+
serviceName = serviceName
|
|
66
|
+
.toString()
|
|
67
|
+
.replace("-review-", "-review-mr" + mr + "-");
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const { projectId, region } = context.deploy.config;
|
|
71
|
+
|
|
72
|
+
const command = `gcloud beta run services proxy ${serviceName} --project ${projectId} --region ${region}`;
|
|
73
|
+
|
|
74
|
+
await startPortForwardCommand(`cloudRun/${serviceName}`, command);
|
|
75
|
+
open("http://localhost:8080");
|
|
76
|
+
};
|
|
11
77
|
export default async (vorpal: Vorpal) =>
|
|
12
78
|
vorpal
|
|
13
79
|
.command("project-port-forward <envComponent>", "start port-forwarding")
|
|
14
80
|
.autocomplete(await envAndComponents())
|
|
15
81
|
.action(async function ({ envComponent }) {
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
const podNames = await getProjectPodNames(envComponent);
|
|
19
|
-
if (podNames.length === 0) {
|
|
20
|
-
logError(this, "sorry, no pods found");
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
const { podName } = await this.prompt({
|
|
24
|
-
type: "list",
|
|
25
|
-
name: "podName",
|
|
26
|
-
choices: podNames,
|
|
27
|
-
message: "Which pod? 🤔",
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
const { localPort } = await this.prompt({
|
|
31
|
-
type: "number",
|
|
32
|
-
name: "localPort",
|
|
33
|
-
|
|
34
|
-
message: "Local port: ",
|
|
35
|
-
});
|
|
82
|
+
const { env, componentName } = parseChoice(envComponent);
|
|
83
|
+
const context = await getPipelineContextByChoice(env, componentName);
|
|
36
84
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return startPortForward(podName, localPort, remotePort, namespace);
|
|
85
|
+
if (isOfDeployType(context.deploy?.config, "kubernetes")) {
|
|
86
|
+
await kubePortForward(this, envComponent);
|
|
87
|
+
}
|
|
88
|
+
if (isOfDeployType(context.deploy?.config, "google-cloudrun")) {
|
|
89
|
+
await cloudRunPortForward(this, context);
|
|
90
|
+
}
|
|
45
91
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type Vorpal from "vorpal";
|
|
2
|
+
import { setupAccessTokens } from "./setup/setupAccessTokens";
|
|
3
|
+
|
|
4
|
+
export default async (vorpal: Vorpal) =>
|
|
5
|
+
vorpal
|
|
6
|
+
.command(
|
|
7
|
+
"project-renew-token",
|
|
8
|
+
"Configures the project access token for semantic release.",
|
|
9
|
+
)
|
|
10
|
+
.action(async function () {
|
|
11
|
+
await setupAccessTokens(this);
|
|
12
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type Vorpal from "vorpal";
|
|
2
|
+
import type { CommandInstance } from "vorpal";
|
|
3
|
+
import { clearBackups } from "../../../../utils/gitlab";
|
|
4
|
+
import { allEnvsAndAllComponents } from "./utils/autocompletions";
|
|
5
|
+
|
|
6
|
+
export const projectSecretsClearBackups = async (
|
|
7
|
+
vorpal: CommandInstance,
|
|
8
|
+
keep = 3,
|
|
9
|
+
) => {
|
|
10
|
+
await clearBackups(vorpal, keep);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default async (vorpal: Vorpal) => {
|
|
14
|
+
vorpal
|
|
15
|
+
.command("project-secrets-clear-backups", "clears all backups")
|
|
16
|
+
.autocomplete(await allEnvsAndAllComponents())
|
|
17
|
+
.action(async function () {
|
|
18
|
+
const { keep } = await this.prompt({
|
|
19
|
+
type: "number",
|
|
20
|
+
name: "keep",
|
|
21
|
+
default: 1,
|
|
22
|
+
message: "How many backups should we keep? 🤔",
|
|
23
|
+
});
|
|
24
|
+
return await projectSecretsClearBackups(this, keep);
|
|
25
|
+
});
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type Vorpal from "vorpal";
|
|
2
|
+
import {
|
|
3
|
+
evaluateSecurityAudit,
|
|
4
|
+
makeSecurityAuditOverview,
|
|
5
|
+
} from "../../../catci/commands/security/evaluateSecurityAudit";
|
|
6
|
+
import { getGitRoot } from "../../../../utils/projects";
|
|
7
|
+
|
|
8
|
+
export default async (vorpal: Vorpal) => {
|
|
9
|
+
vorpal
|
|
10
|
+
.command(
|
|
11
|
+
"project-security-evaluate",
|
|
12
|
+
"evaluate project's security audit document",
|
|
13
|
+
)
|
|
14
|
+
.action(async function () {
|
|
15
|
+
const gitRoot = await getGitRoot();
|
|
16
|
+
const result = await evaluateSecurityAudit({ path: gitRoot });
|
|
17
|
+
if (result.isErr()) {
|
|
18
|
+
console.error(
|
|
19
|
+
"Could not evaluate security audit document:",
|
|
20
|
+
result.error,
|
|
21
|
+
);
|
|
22
|
+
} else {
|
|
23
|
+
console.log(makeSecurityAuditOverview(result.value));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import Vorpal from "vorpal";
|
|
1
|
+
import type Vorpal from "vorpal";
|
|
2
2
|
import { setupProject } from "./setup";
|
|
3
3
|
|
|
4
4
|
export default async (vorpal: Vorpal) =>
|
|
5
5
|
vorpal
|
|
6
6
|
.command(
|
|
7
7
|
"project-setup",
|
|
8
|
-
"Initializes all environments and creates requires resources, service accounts, etc."
|
|
8
|
+
"Initializes all environments and creates requires resources, service accounts, etc.",
|
|
9
9
|
)
|
|
10
10
|
.action(async function () {
|
|
11
11
|
await setupProject(this);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { V1ObjectMeta } from "@kubernetes/client-node";
|
|
2
|
+
import { V1Job } from "@kubernetes/client-node";
|
|
2
3
|
|
|
3
|
-
import Vorpal from "vorpal";
|
|
4
|
+
import type Vorpal from "vorpal";
|
|
4
5
|
import { getk8sApiBatch, getk8sApiBatchBeta } from "../../../../k8sApi";
|
|
5
6
|
import { logError } from "../../../../utils/log";
|
|
6
7
|
import { namespaceAutoCompletion } from "../general/namespaceAutoCompletion";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Vorpal from "vorpal";
|
|
1
|
+
import type Vorpal from "vorpal";
|
|
2
2
|
import commandCloudSqlProxy from "./commandCloudSqlProxy";
|
|
3
3
|
import commandConfigSecrets from "./commandConfigSecrets";
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
import commandDeletePods from "./commandDeletePods";
|
|
6
6
|
import commandDeleteProject from "./commandDeleteProject";
|
|
7
7
|
import commandEnvVars from "./commandEnvVars";
|
|
@@ -9,7 +9,7 @@ import commandGetMyTotalWorktime from "./commandGetMyTotalWorktime";
|
|
|
9
9
|
import commandGetShell from "./commandGetShell";
|
|
10
10
|
import commandGitlabCi from "./commandGitlabCi";
|
|
11
11
|
import commandSetup from "./commandSetup";
|
|
12
|
-
|
|
12
|
+
import commandRenewToken from "./commandRenewToken";
|
|
13
13
|
import commandListPods from "./commandListPods";
|
|
14
14
|
import commandMigrateHelm3 from "./commandMigrateHelm3";
|
|
15
15
|
import commandNamespace from "./commandNamespace";
|
|
@@ -24,9 +24,13 @@ import commandPortForward from "./commandPortForward";
|
|
|
24
24
|
import commandTriggerCronjob from "./commandTriggerCronjob";
|
|
25
25
|
|
|
26
26
|
import commandOpenGrafanaPod from "./commandOpenGrafanaPod";
|
|
27
|
+
import commandSecretsClearBackups from "./commandSecretsClearBackups";
|
|
28
|
+
import commandProjectRestoreDb from "./cloudSql/commandProjectRestoreDb";
|
|
29
|
+
import commandSecurityEvaluate from "./commandSecurityEvaluate";
|
|
27
30
|
|
|
28
31
|
export default async (vorpal: Vorpal) => {
|
|
29
32
|
commandSetup(vorpal);
|
|
33
|
+
commandRenewToken(vorpal);
|
|
30
34
|
|
|
31
35
|
commandEnvVars(vorpal);
|
|
32
36
|
|
|
@@ -44,12 +48,13 @@ export default async (vorpal: Vorpal) => {
|
|
|
44
48
|
commandOpenGrafana(vorpal);
|
|
45
49
|
commandOpenGrafanaPod(vorpal);
|
|
46
50
|
commandCloudSqlProxy(vorpal);
|
|
51
|
+
commandProjectRestoreDb(vorpal);
|
|
47
52
|
commandOpenGit(vorpal);
|
|
48
53
|
commandOpenEnv(vorpal);
|
|
49
54
|
commandTriggerCronjob(vorpal);
|
|
50
55
|
commandConfigSecrets(vorpal);
|
|
56
|
+
commandSecretsClearBackups(vorpal);
|
|
51
57
|
commandDeletePods(vorpal);
|
|
52
|
-
commandCopyDB(vorpal);
|
|
53
58
|
|
|
54
59
|
commandGetShell(vorpal);
|
|
55
60
|
commandPortForward(vorpal);
|
|
@@ -58,4 +63,5 @@ export default async (vorpal: Vorpal) => {
|
|
|
58
63
|
|
|
59
64
|
commandGetMyTotalWorktime(vorpal);
|
|
60
65
|
commandMigrateHelm3(vorpal);
|
|
66
|
+
commandSecurityEvaluate(vorpal);
|
|
61
67
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { CommandInstance } from "vorpal";
|
|
1
|
+
import type { CommandInstance } from "vorpal";
|
|
2
2
|
import { getAllPipelineContexts } from "../../../../../config/getProjectConfig";
|
|
3
3
|
import { projectConfigSecrets } from "../commandConfigSecrets";
|
|
4
4
|
import { setupAccessTokens } from "./setupAccessTokens";
|
|
5
5
|
import { setupContext } from "./setupContext";
|
|
6
|
+
import { setupTopic } from "./setupTopic";
|
|
6
7
|
|
|
7
8
|
export const setupProject = async (instance: CommandInstance) => {
|
|
8
9
|
const allContext = await getAllPipelineContexts();
|
|
@@ -11,6 +12,7 @@ export const setupProject = async (instance: CommandInstance) => {
|
|
|
11
12
|
await setupContext(instance, context);
|
|
12
13
|
}
|
|
13
14
|
await setupAccessTokens(instance);
|
|
15
|
+
await setupTopic(instance);
|
|
14
16
|
instance.log("");
|
|
15
17
|
const { configSecrets } = await instance.prompt({
|
|
16
18
|
default: true,
|
|
@@ -23,7 +25,7 @@ export const setupProject = async (instance: CommandInstance) => {
|
|
|
23
25
|
await projectConfigSecrets(instance);
|
|
24
26
|
} else {
|
|
25
27
|
instance.log(
|
|
26
|
-
"👆 don't forget to config secret using `project-config-secrets`"
|
|
28
|
+
"👆 don't forget to config secret using `project-config-secrets`",
|
|
27
29
|
);
|
|
28
30
|
}
|
|
29
31
|
instance.log("");
|