@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.
- package/babel-inline.json +11 -0
- package/dist/bundles/catenv/index.js +2 -2
- package/dist/bundles/cli/index.js +1 -1
- package/dist/cli/src/apps/catci/catci.d.ts +1 -1
- package/dist/cli/src/apps/catci/catci.js +23 -20
- package/dist/cli/src/apps/catci/commands/security/auditDocument.d.ts +16 -16
- package/dist/cli/src/apps/catci/commands/security/auditDocument.js +54 -65
- package/dist/cli/src/apps/catci/commands/security/commands.d.ts +1 -1
- package/dist/cli/src/apps/catci/commands/security/commands.js +91 -83
- package/dist/cli/src/apps/catci/commands/security/createSecurityAuditMergeRequest.d.ts +11 -6
- package/dist/cli/src/apps/catci/commands/security/createSecurityAuditMergeRequest.js +43 -43
- package/dist/cli/src/apps/catci/commands/security/evaluateSecurityAudit.d.ts +5 -3
- package/dist/cli/src/apps/catci/commands/security/evaluateSecurityAudit.js +16 -12
- package/dist/cli/src/apps/catenv/catenv.d.ts +2 -2
- package/dist/cli/src/apps/catenv/catenv.js +15 -18
- package/dist/cli/src/apps/catenv/printVariables.d.ts +1 -1
- package/dist/cli/src/apps/catenv/printVariables.js +42 -39
- package/dist/cli/src/apps/catenv/types.d.ts +3 -3
- package/dist/cli/src/apps/catenv/types.js +4 -2
- package/dist/cli/src/apps/catenv/utils.d.ts +9 -6
- package/dist/cli/src/apps/catenv/utils.js +25 -21
- package/dist/cli/src/apps/catenv/verboseBanner.d.ts +1 -1
- package/dist/cli/src/apps/catenv/verboseBanner.js +20 -24
- package/dist/cli/src/apps/catenv/writeDotEnvFiles.d.ts +1 -1
- package/dist/cli/src/apps/catenv/writeDotEnvFiles.js +25 -22
- package/dist/cli/src/apps/catenv/writeEnvDTs.d.ts +1 -1
- package/dist/cli/src/apps/catenv/writeEnvDTs.js +31 -32
- package/dist/cli/src/apps/cli/cli.d.ts +1 -1
- package/dist/cli/src/apps/cli/cli.js +23 -24
- package/dist/cli/src/apps/cli/commands/cloudSQL/commandRestoreDb.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/cloudSQL/commandRestoreDb.js +122 -103
- package/dist/cli/src/apps/cli/commands/cloudSQL/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/cloudSQL/index.js +11 -7
- package/dist/cli/src/apps/cli/commands/general/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/general/index.js +67 -62
- package/dist/cli/src/apps/cli/commands/general/namespaceAutoCompletion.d.ts +2 -2
- package/dist/cli/src/apps/cli/commands/general/namespaceAutoCompletion.js +9 -7
- package/dist/cli/src/apps/cli/commands/general/portForward.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/general/portForward.js +42 -35
- package/dist/cli/src/apps/cli/commands/mongodb/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/mongodb/index.js +13 -9
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoDestroyMember.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoDestroyMember.js +83 -81
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoGetShell.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoGetShell.js +31 -29
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoPortForward.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/mongodb/projectMongoPortForward.js +54 -47
- package/dist/cli/src/apps/cli/commands/mongodb/utils/index.d.ts +6 -6
- package/dist/cli/src/apps/cli/commands/mongodb/utils/index.js +56 -52
- package/dist/cli/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/cloudSql/commandProjectRestoreDb.js +140 -140
- package/dist/cli/src/apps/cli/commands/project/commandCloudSqlProxy.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandCloudSqlProxy.js +106 -107
- package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.js +109 -124
- package/dist/cli/src/apps/cli/commands/project/commandDeletePods.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandDeletePods.js +45 -38
- package/dist/cli/src/apps/cli/commands/project/commandDeleteProject.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandDeleteProject.js +28 -23
- package/dist/cli/src/apps/cli/commands/project/commandEnvVars.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandEnvVars.js +14 -10
- package/dist/cli/src/apps/cli/commands/project/commandGetMyTotalWorktime.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandGetMyTotalWorktime.js +9 -9
- package/dist/cli/src/apps/cli/commands/project/commandGetShell.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandGetShell.js +29 -26
- package/dist/cli/src/apps/cli/commands/project/commandGitlabCi.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandGitlabCi.js +71 -69
- package/dist/cli/src/apps/cli/commands/project/commandListPods.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandListPods.js +15 -12
- package/dist/cli/src/apps/cli/commands/project/commandNamespace.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandNamespace.js +9 -8
- package/dist/cli/src/apps/cli/commands/project/commandOpenEnv.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenEnv.js +20 -14
- package/dist/cli/src/apps/cli/commands/project/commandOpenGit.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenGit.js +7 -7
- package/dist/cli/src/apps/cli/commands/project/commandOpenLogs.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandOpenLogs.js +14 -10
- package/dist/cli/src/apps/cli/commands/project/commandPauseProject.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandPauseProject.js +28 -23
- package/dist/cli/src/apps/cli/commands/project/commandPortForward.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandPortForward.js +80 -63
- package/dist/cli/src/apps/cli/commands/project/commandRenewToken.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandRenewToken.js +7 -7
- package/dist/cli/src/apps/cli/commands/project/commandSecretsClearBackups.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandSecretsClearBackups.js +17 -16
- package/dist/cli/src/apps/cli/commands/project/commandSecurityEvaluate.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandSecurityEvaluate.js +16 -15
- package/dist/cli/src/apps/cli/commands/project/commandSetup.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandSetup.js +9 -8
- package/dist/cli/src/apps/cli/commands/project/commandTriggerCronjob.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/commandTriggerCronjob.js +51 -44
- package/dist/cli/src/apps/cli/commands/project/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/index.js +31 -27
- package/dist/cli/src/apps/cli/commands/project/setup/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/index.js +25 -29
- package/dist/cli/src/apps/cli/commands/project/setup/logSection.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/logSection.js +15 -13
- package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.js +40 -31
- package/dist/cli/src/apps/cli/commands/project/setup/setupAgents.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupAgents.js +137 -130
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.js +42 -47
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.js +15 -13
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.js +70 -69
- package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.js +15 -7
- package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.js +21 -16
- package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.js +33 -27
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.js +35 -30
- package/dist/cli/src/apps/cli/commands/project/utils/showProjectBanner.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/showProjectBanner.js +12 -10
- package/dist/cli/src/apps/cli/commands/theStuffThatReallyMatters/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/theStuffThatReallyMatters/index.js +31 -29
- package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.d.ts +1 -1
- package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.js +18 -14
- package/dist/cli/src/apps/cli/verify/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/verify/index.js +13 -11
- package/dist/cli/src/catci.d.ts +1 -1
- package/dist/cli/src/catci.js +5 -3
- package/dist/cli/src/catenv.d.ts +1 -1
- package/dist/cli/src/catenv.js +20 -14
- package/dist/cli/src/cli.d.ts +1 -1
- package/dist/cli/src/cli.js +9 -5
- package/dist/cli/src/config/getProjectConfig.d.ts +8 -6
- package/dist/cli/src/config/getProjectConfig.js +93 -91
- package/dist/cli/src/config/parseChoice.d.ts +3 -3
- package/dist/cli/src/config/parseChoice.js +11 -6
- package/dist/cli/src/gcloud/artifactsRegistry.d.ts +3 -3
- package/dist/cli/src/gcloud/artifactsRegistry.js +12 -11
- package/dist/cli/src/gcloud/cloudRun/getCloudRunDomainSuffix.d.ts +1 -1
- package/dist/cli/src/gcloud/cloudRun/getCloudRunDomainSuffix.js +23 -22
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.d.ts +1 -1
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.js +19 -12
- package/dist/cli/src/gcloud/cloudSql/copyDb.d.ts +9 -9
- package/dist/cli/src/gcloud/cloudSql/copyDb.js +27 -16
- package/dist/cli/src/gcloud/cloudSql/parseConnectionString.d.ts +1 -1
- package/dist/cli/src/gcloud/cloudSql/parseConnectionString.js +12 -10
- package/dist/cli/src/gcloud/cloudSql/startProxy.d.ts +4 -4
- package/dist/cli/src/gcloud/cloudSql/startProxy.js +55 -39
- package/dist/cli/src/gcloud/enableServices.d.ts +2 -2
- package/dist/cli/src/gcloud/enableServices.js +8 -6
- package/dist/cli/src/gcloud/openDashboard.d.ts +1 -1
- package/dist/cli/src/gcloud/openDashboard.js +17 -13
- package/dist/cli/src/gcloud/serviceAccounts.d.ts +6 -6
- package/dist/cli/src/gcloud/serviceAccounts.js +64 -58
- package/dist/cli/src/git/getGetMainBranch.d.ts +1 -1
- package/dist/cli/src/git/getGetMainBranch.js +9 -5
- package/dist/cli/src/git/gitConfig.d.ts +11 -6
- package/dist/cli/src/git/gitConfig.js +17 -11
- package/dist/cli/src/git/gitProjectInformation.d.ts +6 -6
- package/dist/cli/src/git/gitProjectInformation.js +30 -20
- package/dist/cli/src/git/index.d.ts +1 -1
- package/dist/cli/src/git/index.js +23 -16
- package/dist/cli/src/index.d.ts +1 -1
- package/dist/cli/src/index.js +4 -2
- package/dist/cli/src/k8sApi/index.d.ts +1 -1
- package/dist/cli/src/k8sApi/index.js +14 -12
- package/dist/cli/src/kubernetes/index.d.ts +1 -1
- package/dist/cli/src/kubernetes/index.js +24 -17
- package/dist/cli/src/kubernetes/openKubernetesDashboards.d.ts +1 -1
- package/dist/cli/src/kubernetes/openKubernetesDashboards.js +35 -33
- package/dist/cli/src/kubernetes/portForward.d.ts +1 -1
- package/dist/cli/src/kubernetes/portForward.js +7 -5
- package/dist/cli/src/packageInfos.d.ts +1 -1
- package/dist/cli/src/packageInfos.js +5 -3
- package/dist/cli/src/types/types.d.ts +13 -13
- package/dist/cli/src/types/types.js +4 -2
- package/dist/cli/src/utils/boxWithAscii.d.ts +1 -1
- package/dist/cli/src/utils/boxWithAscii.js +12 -10
- package/dist/cli/src/utils/cluster.d.ts +1 -1
- package/dist/cli/src/utils/cluster.js +8 -6
- package/dist/cli/src/utils/editAsFile.d.ts +1 -1
- package/dist/cli/src/utils/editAsFile.js +25 -17
- package/dist/cli/src/utils/files.d.ts +1 -1
- package/dist/cli/src/utils/files.js +15 -12
- package/dist/cli/src/utils/getEditor.d.ts +2 -2
- package/dist/cli/src/utils/getEditor.js +20 -14
- package/dist/cli/src/utils/gitlab.d.ts +9 -9
- package/dist/cli/src/utils/gitlab.js +188 -166
- package/dist/cli/src/utils/log.d.ts +2 -2
- package/dist/cli/src/utils/log.js +18 -16
- package/dist/cli/src/utils/portForwards.d.ts +5 -5
- package/dist/cli/src/utils/portForwards.js +32 -31
- package/dist/cli/src/utils/preferences.d.ts +1 -1
- package/dist/cli/src/utils/preferences.js +43 -36
- package/dist/cli/src/utils/projects/index.d.ts +1 -1
- package/dist/cli/src/utils/projects/index.js +24 -21
- package/dist/cli/src/utils/promise.d.ts +1 -1
- package/dist/cli/src/utils/promise.js +8 -6
- package/dist/cli/src/utils/shell.d.ts +1 -1
- package/dist/cli/src/utils/shell.js +20 -19
- package/dist/pipeline/src/bash/BashExpression.d.ts +18 -18
- package/dist/pipeline/src/bash/BashExpression.js +44 -45
- package/dist/pipeline/src/bash/bashEscape.d.ts +6 -4
- package/dist/pipeline/src/bash/bashEscape.js +63 -73
- package/dist/pipeline/src/bash/bashExpressionPerPipelineType.d.ts +3 -5
- package/dist/pipeline/src/bash/bashExpressionPerPipelineType.js +7 -6
- package/dist/pipeline/src/bash/bashYaml.d.ts +1 -1
- package/dist/pipeline/src/bash/bashYaml.js +41 -46
- package/dist/pipeline/src/bash/getInjectVarsScript.d.ts +1 -1
- package/dist/pipeline/src/bash/getInjectVarsScript.js +11 -14
- package/dist/pipeline/src/bash/index.d.ts +1 -1
- package/dist/pipeline/src/bash/index.js +23 -16
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.d.ts +1 -1
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js +41 -50
- package/dist/pipeline/src/build/base/constants.d.ts +4 -4
- package/dist/pipeline/src/build/base/constants.js +8 -6
- package/dist/pipeline/src/build/base/createAppBuildJob.d.ts +7 -1
- package/dist/pipeline/src/build/base/createAppBuildJob.js +37 -43
- package/dist/pipeline/src/build/base/createArtifactsConfig.d.ts +1 -1
- package/dist/pipeline/src/build/base/createArtifactsConfig.js +16 -25
- package/dist/pipeline/src/build/base/createBuildJobDefinition.d.ts +3 -3
- package/dist/pipeline/src/build/base/createBuildJobDefinition.js +16 -22
- package/dist/pipeline/src/build/base/index.d.ts +4 -4
- package/dist/pipeline/src/build/base/index.js +15 -34
- package/dist/pipeline/src/build/base/writeBuildInfo.d.ts +1 -1
- package/dist/pipeline/src/build/base/writeBuildInfo.js +7 -7
- package/dist/pipeline/src/build/base/writeDotEnv.d.ts +1 -1
- package/dist/pipeline/src/build/base/writeDotEnv.js +19 -21
- package/dist/pipeline/src/build/cache/createJobCache.d.ts +1 -1
- package/dist/pipeline/src/build/cache/createJobCache.js +47 -49
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.d.ts +1 -1
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.js +16 -23
- package/dist/pipeline/src/build/cache/transformLegacyJobCache.d.ts +1 -1
- package/dist/pipeline/src/build/cache/transformLegacyJobCache.js +14 -12
- package/dist/pipeline/src/build/custom/buildJob.d.ts +1 -1
- package/dist/pipeline/src/build/custom/buildJob.js +16 -16
- package/dist/pipeline/src/build/custom/index.d.ts +1 -1
- package/dist/pipeline/src/build/custom/index.js +7 -5
- package/dist/pipeline/src/build/custom/testJob.d.ts +2 -2
- package/dist/pipeline/src/build/custom/testJob.js +67 -71
- package/dist/pipeline/src/build/docker.d.ts +49 -45
- package/dist/pipeline/src/build/docker.js +104 -129
- package/dist/pipeline/src/build/index.d.ts +13 -17
- package/dist/pipeline/src/build/index.js +80 -73
- package/dist/pipeline/src/build/node/buildJob.d.ts +1 -1
- package/dist/pipeline/src/build/node/buildJob.js +34 -37
- package/dist/pipeline/src/build/node/cache.d.ts +1 -1
- package/dist/pipeline/src/build/node/cache.js +34 -56
- package/dist/pipeline/src/build/node/constants.d.ts +4 -4
- package/dist/pipeline/src/build/node/constants.js +8 -6
- package/dist/pipeline/src/build/node/index.d.ts +1 -1
- package/dist/pipeline/src/build/node/index.js +11 -9
- package/dist/pipeline/src/build/node/meteor.d.ts +1 -1
- package/dist/pipeline/src/build/node/meteor.js +39 -54
- package/dist/pipeline/src/build/node/testJob.d.ts +1 -1
- package/dist/pipeline/src/build/node/testJob.js +71 -93
- package/dist/pipeline/src/build/node/yarn.d.ts +2 -2
- package/dist/pipeline/src/build/node/yarn.js +28 -47
- package/dist/pipeline/src/build/rails/build.d.ts +1 -1
- package/dist/pipeline/src/build/rails/build.js +37 -44
- package/dist/pipeline/src/build/rails/index.d.ts +1 -1
- package/dist/pipeline/src/build/rails/index.js +7 -5
- package/dist/pipeline/src/build/rails/testJob.d.ts +1 -1
- package/dist/pipeline/src/build/rails/testJob.js +71 -101
- package/dist/pipeline/src/build/types.d.ts +294 -294
- package/dist/pipeline/src/build/types.js +10 -10
- package/dist/pipeline/src/catenv/index.d.ts +3 -3
- package/dist/pipeline/src/catenv/index.js +10 -8
- package/dist/pipeline/src/config/configruedEnvs.d.ts +1 -1
- package/dist/pipeline/src/config/configruedEnvs.js +18 -23
- package/dist/pipeline/src/config/index.d.ts +1 -1
- package/dist/pipeline/src/config/index.js +23 -16
- package/dist/pipeline/src/config/readConfig.d.ts +4 -4
- package/dist/pipeline/src/config/readConfig.js +34 -32
- package/dist/pipeline/src/constants.d.ts +1 -1
- package/dist/pipeline/src/constants.js +6 -5
- package/dist/pipeline/src/context/createAllComponentsContext.d.ts +8 -4
- package/dist/pipeline/src/context/createAllComponentsContext.js +22 -16
- package/dist/pipeline/src/context/createComponentContext.d.ts +6 -6
- package/dist/pipeline/src/context/createComponentContext.js +87 -96
- package/dist/pipeline/src/context/createWorkspaceContext.d.ts +15 -8
- package/dist/pipeline/src/context/createWorkspaceContext.js +37 -28
- package/dist/pipeline/src/context/getBuildInfoVariables.d.ts +2 -2
- package/dist/pipeline/src/context/getBuildInfoVariables.js +22 -21
- package/dist/pipeline/src/context/getEnvConfig.d.ts +1 -1
- package/dist/pipeline/src/context/getEnvConfig.js +29 -28
- package/dist/pipeline/src/context/getEnvType.d.ts +2 -2
- package/dist/pipeline/src/context/getEnvType.js +10 -9
- package/dist/pipeline/src/context/getEnvironment.d.ts +1 -1
- package/dist/pipeline/src/context/getEnvironment.js +20 -16
- package/dist/pipeline/src/context/getEnvironmentContext.d.ts +6 -1
- package/dist/pipeline/src/context/getEnvironmentContext.js +35 -28
- package/dist/pipeline/src/context/getEnvironmentVariables.d.ts +11 -11
- package/dist/pipeline/src/context/getEnvironmentVariables.js +102 -95
- package/dist/pipeline/src/context/getLabels.d.ts +7 -7
- package/dist/pipeline/src/context/getLabels.js +26 -25
- package/dist/pipeline/src/context/getReviewSlug.d.ts +1 -1
- package/dist/pipeline/src/context/getReviewSlug.js +12 -10
- package/dist/pipeline/src/context/index.d.ts +1 -1
- package/dist/pipeline/src/context/index.js +23 -16
- package/dist/pipeline/src/context/transformJobOnlyVars.d.ts +3 -3
- package/dist/pipeline/src/context/transformJobOnlyVars.js +21 -21
- package/dist/pipeline/src/context/utils/envVars.d.ts +3 -3
- package/dist/pipeline/src/context/utils/envVars.js +12 -12
- package/dist/pipeline/src/defaults/index.d.ts +1 -1
- package/dist/pipeline/src/defaults/index.js +6 -4
- package/dist/pipeline/src/deploy/base/deploy.d.ts +1 -1
- package/dist/pipeline/src/deploy/base/deploy.js +75 -100
- package/dist/pipeline/src/deploy/base/index.d.ts +4 -4
- package/dist/pipeline/src/deploy/base/index.js +6 -10
- package/dist/pipeline/src/deploy/base/rollback.d.ts +1 -1
- package/dist/pipeline/src/deploy/base/rollback.js +30 -26
- package/dist/pipeline/src/deploy/base/stop.d.ts +1 -1
- package/dist/pipeline/src/deploy/base/stop.js +30 -25
- package/dist/pipeline/src/deploy/base/variables.d.ts +4 -4
- package/dist/pipeline/src/deploy/base/variables.js +8 -6
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.js +55 -67
- package/dist/pipeline/src/deploy/cloudRun/cleanup.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/cleanup.js +16 -17
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.js +44 -41
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.d.ts +4 -4
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js +58 -63
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js +63 -73
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunWorkerPools.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunWorkerPools.js +38 -38
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.d.ts +7 -7
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.js +33 -38
- package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.js +5 -3
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.js +57 -67
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/schedules.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/schedules.js +115 -118
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js +10 -32
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.js +9 -23
- package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.d.ts +3 -3
- package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.js +36 -39
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.js +36 -37
- package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.js +19 -13
- package/dist/pipeline/src/deploy/cloudRun/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/index.js +72 -76
- package/dist/pipeline/src/deploy/cloudRun/utils/cloudRunExecutionUrl.d.ts +9 -5
- package/dist/pipeline/src/deploy/cloudRun/utils/cloudRunExecutionUrl.js +13 -7
- package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.js +13 -17
- package/dist/pipeline/src/deploy/cloudRun/utils/database.d.ts +5 -5
- package/dist/pipeline/src/deploy/cloudRun/utils/database.js +46 -79
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.js +6 -6
- package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.js +7 -9
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.js +6 -4
- package/dist/pipeline/src/deploy/cloudRun/utils/jobName.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/jobName.js +5 -3
- package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.js +6 -4
- package/dist/pipeline/src/deploy/cloudSql/utils.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudSql/utils.js +7 -9
- package/dist/pipeline/src/deploy/custom/deployJob.d.ts +1 -1
- package/dist/pipeline/src/deploy/custom/deployJob.js +30 -34
- package/dist/pipeline/src/deploy/custom/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/custom/index.js +9 -7
- package/dist/pipeline/src/deploy/dockerTag/deployJob.d.ts +1 -1
- package/dist/pipeline/src/deploy/dockerTag/deployJob.js +18 -22
- package/dist/pipeline/src/deploy/dockerTag/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/dockerTag/index.js +9 -7
- package/dist/pipeline/src/deploy/index.d.ts +6 -8
- package/dist/pipeline/src/deploy/index.js +27 -20
- package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.d.ts +5 -3
- package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.js +25 -19
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.d.ts +7 -7
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.js +36 -35
- package/dist/pipeline/src/deploy/kubernetes/deployJob.d.ts +1 -1
- package/dist/pipeline/src/deploy/kubernetes/deployJob.js +46 -61
- package/dist/pipeline/src/deploy/kubernetes/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/kubernetes/index.js +54 -45
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.d.ts +3 -3
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.js +35 -34
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.d.ts +84 -84
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.js +70 -63
- package/dist/pipeline/src/deploy/kubernetes/mongodb.d.ts +28 -28
- package/dist/pipeline/src/deploy/kubernetes/mongodb.js +88 -93
- package/dist/pipeline/src/deploy/types/base.d.ts +27 -27
- package/dist/pipeline/src/deploy/types/base.js +4 -2
- package/dist/pipeline/src/deploy/types/custom.d.ts +25 -25
- package/dist/pipeline/src/deploy/types/custom.js +4 -2
- package/dist/pipeline/src/deploy/types/dockerTag.d.ts +10 -10
- package/dist/pipeline/src/deploy/types/dockerTag.js +4 -2
- package/dist/pipeline/src/deploy/types/executeBase.d.ts +15 -15
- package/dist/pipeline/src/deploy/types/executeBase.js +4 -2
- package/dist/pipeline/src/deploy/types/googleCloudRun.d.ts +435 -435
- package/dist/pipeline/src/deploy/types/googleCloudRun.js +16 -14
- package/dist/pipeline/src/deploy/types/index.d.ts +6 -6
- package/dist/pipeline/src/deploy/types/index.js +27 -21
- package/dist/pipeline/src/deploy/types/kubernetes.d.ts +255 -255
- package/dist/pipeline/src/deploy/types/kubernetes.js +4 -2
- package/dist/pipeline/src/deploy/utils.d.ts +1 -1
- package/dist/pipeline/src/deploy/utils.js +23 -21
- package/dist/pipeline/src/globalScriptFunctions/index.d.ts +6 -6
- package/dist/pipeline/src/globalScriptFunctions/index.js +21 -19
- package/dist/pipeline/src/index.d.ts +1 -1
- package/dist/pipeline/src/index.js +23 -16
- package/dist/pipeline/src/pipeline/agent/createAgentContext.d.ts +19 -19
- package/dist/pipeline/src/pipeline/agent/createAgentContext.js +41 -37
- package/dist/pipeline/src/pipeline/agent/createAgentEventJob.d.ts +1 -1
- package/dist/pipeline/src/pipeline/agent/createAgentEventJob.js +30 -31
- package/dist/pipeline/src/pipeline/agent/createAgentReviewJob.d.ts +1 -1
- package/dist/pipeline/src/pipeline/agent/createAgentReviewJob.js +36 -44
- package/dist/pipeline/src/pipeline/agent/createJobsForAgentContext.d.ts +1 -1
- package/dist/pipeline/src/pipeline/agent/createJobsForAgentContext.js +7 -5
- package/dist/pipeline/src/pipeline/agent/prompts.d.ts +2 -2
- package/dist/pipeline/src/pipeline/agent/prompts.js +32 -14
- package/dist/pipeline/src/pipeline/agent/shared.d.ts +5 -3
- package/dist/pipeline/src/pipeline/agent/shared.js +26 -24
- package/dist/pipeline/src/pipeline/agent/utils.d.ts +1 -1
- package/dist/pipeline/src/pipeline/agent/utils.js +11 -9
- package/dist/pipeline/src/pipeline/createAllJobs.d.ts +17 -13
- package/dist/pipeline/src/pipeline/createAllJobs.js +56 -44
- package/dist/pipeline/src/pipeline/createJobsForComponent.d.ts +1 -1
- package/dist/pipeline/src/pipeline/createJobsForComponent.js +28 -27
- package/dist/pipeline/src/pipeline/createJobsForWorkspace.d.ts +1 -1
- package/dist/pipeline/src/pipeline/createJobsForWorkspace.js +8 -6
- package/dist/pipeline/src/pipeline/createMainPipeline.d.ts +1 -1
- package/dist/pipeline/src/pipeline/createMainPipeline.js +85 -79
- package/dist/pipeline/src/pipeline/generatePipelineFiles.d.ts +1 -1
- package/dist/pipeline/src/pipeline/generatePipelineFiles.js +78 -58
- package/dist/pipeline/src/pipeline/getPipelineStages.d.ts +1 -1
- package/dist/pipeline/src/pipeline/getPipelineStages.js +8 -10
- package/dist/pipeline/src/pipeline/gitlab/cache.d.ts +5 -5
- package/dist/pipeline/src/pipeline/gitlab/cache.js +26 -24
- package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.d.ts +4 -4
- package/dist/pipeline/src/pipeline/gitlab/createGitlabJobs.js +228 -239
- package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.d.ts +7 -2
- package/dist/pipeline/src/pipeline/gitlab/createGitlabPipeline.js +64 -59
- package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.d.ts +34 -34
- package/dist/pipeline/src/pipeline/gitlab/gitlabReleaseJobs.js +37 -47
- package/dist/pipeline/src/pipeline/gitlab/sortGitLabJobDefProps.d.ts +1 -1
- package/dist/pipeline/src/pipeline/gitlab/sortGitLabJobDefProps.js +10 -40
- package/dist/pipeline/src/pipeline/index.d.ts +1 -1
- package/dist/pipeline/src/pipeline/index.js +23 -16
- package/dist/pipeline/src/pipeline/packageManager.d.ts +1 -1
- package/dist/pipeline/src/pipeline/packageManager.js +47 -59
- package/dist/pipeline/src/rules/index.d.ts +1 -1
- package/dist/pipeline/src/rules/index.js +15 -13
- package/dist/pipeline/src/runner/index.d.ts +1 -1
- package/dist/pipeline/src/runner/index.js +6 -4
- package/dist/pipeline/src/types/agent.d.ts +15 -15
- package/dist/pipeline/src/types/agent.js +4 -2
- package/dist/pipeline/src/types/config.d.ts +152 -154
- package/dist/pipeline/src/types/config.js +24 -28
- package/dist/pipeline/src/types/context.d.ts +104 -104
- package/dist/pipeline/src/types/context.js +9 -7
- package/dist/pipeline/src/types/environmentContext.d.ts +25 -25
- package/dist/pipeline/src/types/environmentContext.js +4 -2
- package/dist/pipeline/src/types/gitlab-ci-yml.d.ts +497 -497
- package/dist/pipeline/src/types/gitlab-ci-yml.js +4 -2
- package/dist/pipeline/src/types/gitlab-types.d.ts +15 -15
- package/dist/pipeline/src/types/gitlab-types.js +4 -2
- package/dist/pipeline/src/types/hooks.d.ts +26 -26
- package/dist/pipeline/src/types/hooks.js +4 -2
- package/dist/pipeline/src/types/index.d.ts +1 -1
- package/dist/pipeline/src/types/index.js +23 -16
- package/dist/pipeline/src/types/jobDefinition.d.ts +3 -3
- package/dist/pipeline/src/types/jobDefinition.js +4 -2
- package/dist/pipeline/src/types/jobs.d.ts +93 -93
- package/dist/pipeline/src/types/jobs.js +5 -12
- package/dist/pipeline/src/types/pipeline.d.ts +1 -1
- package/dist/pipeline/src/types/pipeline.js +4 -2
- package/dist/pipeline/src/types/release.d.ts +6 -6
- package/dist/pipeline/src/types/release.js +4 -2
- package/dist/pipeline/src/types/utils.d.ts +1 -3
- package/dist/pipeline/src/types/utils.js +4 -2
- package/dist/pipeline/src/utils/gitlab.d.ts +2 -2
- package/dist/pipeline/src/utils/gitlab.js +12 -15
- package/dist/pipeline/src/utils/index.d.ts +1 -1
- package/dist/pipeline/src/utils/index.js +12 -9
- package/dist/pipeline/src/utils/jsonParse.d.ts +1 -1
- package/dist/pipeline/src/utils/jsonParse.js +11 -10
- package/dist/pipeline/src/utils/measureTime.d.ts +4 -4
- package/dist/pipeline/src/utils/measureTime.js +39 -34
- package/dist/pipeline/src/utils/removeUndefined.d.ts +1 -1
- package/dist/pipeline/src/utils/removeUndefined.js +6 -4
- package/dist/pipeline/src/utils/writeFiles.d.ts +10 -10
- package/dist/pipeline/src/utils/writeFiles.js +53 -59
- package/dist/pipeline/src/variables/VariableValue.d.ts +1 -1
- package/dist/pipeline/src/variables/VariableValue.js +4 -2
- package/dist/pipeline/src/variables/VariableValueContainingReferences.d.ts +12 -12
- package/dist/pipeline/src/variables/VariableValueContainingReferences.js +45 -51
- package/dist/pipeline/src/variables/resolveAllReferences.d.ts +1 -1
- package/dist/pipeline/src/variables/resolveAllReferences.js +17 -18
- package/dist/pipeline/src/variables/resolveAllReferencesOnce.d.ts +2 -2
- package/dist/pipeline/src/variables/resolveAllReferencesOnce.js +14 -17
- package/dist/pipeline/src/variables/resolveReferencesOnce.d.ts +3 -3
- package/dist/pipeline/src/variables/resolveReferencesOnce.js +17 -16
- package/package.json +7 -2
|
@@ -3,278 +3,278 @@ import type { DeployConfigBase } from "./base";
|
|
|
3
3
|
import type { DeployConfigBaseExecute } from "./executeBase";
|
|
4
4
|
export type Gcloudregion = "asia-east1" | "asia-northeast1" | "asia-northeast2" | "europe-north1" | "europe-southwest1" | "europe-west1" | "europe-west4" | "europe-west8" | "europe-west9" | "me-west1" | "us-central1" | "us-east1" | "us-east4" | "us-east5" | "us-south1" | "us-west1" | "asia-east2" | "asia-northeast3" | "asia-southeast1" | "asia-southeast2" | "asia-south1" | "asia-south2" | "australia-southeast1" | "australia-southeast2" | "europe-central2" | "europe-west2" | "europe-west3" | "europe-west6" | "northamerica-northeast1" | "northamerica-northeast2" | "southamerica-east1" | "southamerica-west1" | "us-west2" | "us-west3" | "us-west4";
|
|
5
5
|
export type DeployConfigCloudRunCloudSql = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
6
|
+
type: "unmanaged";
|
|
7
|
+
instanceConnectionName: string;
|
|
8
|
+
/**
|
|
9
|
+
* the database username, defaults to "postgres"
|
|
10
|
+
*/
|
|
11
|
+
dbUser?: string;
|
|
12
|
+
/**
|
|
13
|
+
* the prefix of the database, the full db name is this plus the environment slug prefix plus the componentName
|
|
14
|
+
*
|
|
15
|
+
* defaults to customerName-appName
|
|
16
|
+
*/
|
|
17
|
+
dbNamePrefix?: string | false;
|
|
18
|
+
/**
|
|
19
|
+
* the base name of the db, defaults to the componentName
|
|
20
|
+
*/
|
|
21
|
+
dbBaseName?: string;
|
|
22
|
+
/**
|
|
23
|
+
* whether to delete the database if the environment is stopped
|
|
24
|
+
* defaults to true for review envs, to false for every other environment
|
|
25
|
+
*/
|
|
26
|
+
deleteDatabaseOnStop?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* format of the `DATABASE_URL` environment variable
|
|
29
|
+
*
|
|
30
|
+
* the options are:
|
|
31
|
+
* - prisma: adds [required but ignored hostname](https://www.prisma.io/docs/orm/overview/databases/postgresql#connecting-via-sockets):
|
|
32
|
+
* `postgresql://$DB_USER:$DB_PASSWORD@localhost/$DB_NAME?host=/cloudsql/$CLOUD_SQL_INSTANCE_CONNECTION_NAME`
|
|
33
|
+
* - rails: percent-encodes the socket in the host part
|
|
34
|
+
* `postgresql://$DB_USER:$DB_PASSWORD@%2Fcloudsql%2FprojectId%3Aregion%3Ainstancename/$DB_NAME?`
|
|
35
|
+
* - jdbc: for use with Google Cloud SQL Connector for Java
|
|
36
|
+
* `jdbc:postgresql:///$DB_NAME?cloudSqlInstance=$CLOUD_SQL_INSTANCE_CONNECTION_NAME&socketFactory=com.google.cloud.sql.postgres.SocketFactory&user=$DB_USER&password=$DB_PASSWORD`
|
|
37
|
+
*
|
|
38
|
+
* defaults to prisma
|
|
39
|
+
*/
|
|
40
|
+
dbConnectionStringFormat?: "prisma" | "rails" | "jdbc";
|
|
41
|
+
/**
|
|
42
|
+
* controls how variables in the connection string are handled
|
|
43
|
+
*
|
|
44
|
+
* - environment: variables like $DB_USER will be kept as environment variables to be replaced at runtime (default)
|
|
45
|
+
* - embedded: variables will be replaced with their actual values in the connection string
|
|
46
|
+
*
|
|
47
|
+
* @default "environment"
|
|
48
|
+
*/
|
|
49
|
+
dbConnectionStringVariablesMode?: DBVariablesMode;
|
|
50
|
+
/**
|
|
51
|
+
* add additional query params to the database connection string
|
|
52
|
+
*/
|
|
53
|
+
dbAdditionalQueryParams?: Record<string, string | number> & {
|
|
54
|
+
/**
|
|
55
|
+
* set to 0 for prisma in review or dev apps where you reset the db occasionally without restarting any server
|
|
56
|
+
*/
|
|
57
|
+
statement_cache_size?: number;
|
|
58
|
+
};
|
|
59
59
|
};
|
|
60
60
|
type Memory = `${number}${"M" | "G" | "Mi" | "Gi"}`;
|
|
61
61
|
type Cpu = 1 | 2 | 4 | 6 | 8;
|
|
62
62
|
export type DeployConfigCloudRunService = {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
63
|
+
/**
|
|
64
|
+
* command / entrypoint, fallsback to buildConfig.startcommand
|
|
65
|
+
*/
|
|
66
|
+
command?: string | string[];
|
|
67
|
+
/**
|
|
68
|
+
* how many instances to keep around when there are no requests. defaults to 0.
|
|
69
|
+
* Set to 1 for workers
|
|
70
|
+
*/
|
|
71
|
+
minInstances?: number;
|
|
72
|
+
/**
|
|
73
|
+
* maximum amount of instances. Defaults to 100
|
|
74
|
+
*/
|
|
75
|
+
maxInstances?: number;
|
|
76
|
+
/**
|
|
77
|
+
* set to true to allways allocate cpu, e.g. for workers. Careful that this is expensive, unless you get really regularly requests!
|
|
78
|
+
*/
|
|
79
|
+
noCpuThrottling?: true;
|
|
80
|
+
/**
|
|
81
|
+
* whether to allow public access without authentification (defaults to true)
|
|
82
|
+
*/
|
|
83
|
+
allowUnauthenticated?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* whether to expose the service to the internet.
|
|
86
|
+
*
|
|
87
|
+
* The options are:
|
|
88
|
+
* - all: expose to the internet and internal traffic
|
|
89
|
+
* - internal: only expose to internal traffic
|
|
90
|
+
* - internal-and-cloud-load-balancing: expose to internal traffic and cloud load balancing
|
|
91
|
+
*
|
|
92
|
+
* Defaults to "all"
|
|
93
|
+
*/
|
|
94
|
+
ingress?: "all" | "internal" | "internal-and-cloud-load-balancing";
|
|
95
|
+
/**
|
|
96
|
+
* CPU limit.
|
|
97
|
+
*/
|
|
98
|
+
cpu?: Cpu;
|
|
99
|
+
/**
|
|
100
|
+
* memory limit. Defaults to 512MB
|
|
101
|
+
*/
|
|
102
|
+
memory?: Memory;
|
|
103
|
+
/**
|
|
104
|
+
* timeout of the service, defaults to 5 minutes.
|
|
105
|
+
*
|
|
106
|
+
* you can specify something like 10m30s. if its just a number, it will be interpreted as seconds
|
|
107
|
+
*
|
|
108
|
+
* max supported is 60min
|
|
109
|
+
*/
|
|
110
|
+
timeout?: string;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* set the execution environment.
|
|
114
|
+
*
|
|
115
|
+
* see https://cloud.google.com/run/docs/about-execution-environments
|
|
116
|
+
*
|
|
117
|
+
* defaults to gen1 according to gcloud
|
|
118
|
+
*/
|
|
119
|
+
executionEnvironment?: "gen2" | "gen1";
|
|
120
|
+
/**
|
|
121
|
+
* Use http2 end-to-end. See https://cloud.google.com/run/docs/configuring/http2
|
|
122
|
+
*
|
|
123
|
+
* Defaults to false.
|
|
124
|
+
*
|
|
125
|
+
* Your service needs to be able to handle http2 requests.
|
|
126
|
+
* Its recommended to use http2 without tls, since cloud run handles the encryption for you. (so called "h2c" (http2 cleartext))
|
|
127
|
+
*
|
|
128
|
+
*/
|
|
129
|
+
http2?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Number of GPUs to use. Defaults to 0
|
|
132
|
+
*
|
|
133
|
+
* This is a preview feature and not all regions support it.
|
|
134
|
+
*/
|
|
135
|
+
gpu?: number;
|
|
136
|
+
/**
|
|
137
|
+
* gpu type to use. Refer to https://cloud.google.com/run/docs/configuring/services/gpu#gcloud for defaults
|
|
138
|
+
*/
|
|
139
|
+
gpuType?: string;
|
|
140
|
+
/**
|
|
141
|
+
* the image to use. Defaults to the image from the build.
|
|
142
|
+
*
|
|
143
|
+
* If you specify an image, you usually want to disable the build by setting build: false
|
|
144
|
+
*/
|
|
145
|
+
image?: string;
|
|
146
|
+
/**
|
|
147
|
+
* whether to enable session affinity. When enabled, Cloud Run will try to route
|
|
148
|
+
* requests from the same client to the same instance.
|
|
149
|
+
*
|
|
150
|
+
* Passed as `--session-affinity` to gcloud.
|
|
151
|
+
*/
|
|
152
|
+
sessionAffinity?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* args to pass to the command
|
|
155
|
+
*/
|
|
156
|
+
args?: string[];
|
|
157
|
+
/**
|
|
158
|
+
* Configuration of the health check.
|
|
159
|
+
*
|
|
160
|
+
* When set to `true`, startup and liveness probes will be
|
|
161
|
+
* configured to `defaultStartupProbe` and `defaultLivenessProbe`.
|
|
162
|
+
*
|
|
163
|
+
* When not set, default Cloud Run's health check
|
|
164
|
+
* configuration is used (startup TCP probe and no liveness probe).
|
|
165
|
+
*/
|
|
166
|
+
healthCheck?: true | {
|
|
167
|
+
/**
|
|
168
|
+
* Startup probe configuration.
|
|
169
|
+
*/
|
|
170
|
+
startupProbe: DeployConfigCloudRunProbe;
|
|
171
|
+
/**
|
|
172
|
+
* Liveness probe configuration.
|
|
173
|
+
* `false` disables the liveness probe.
|
|
174
|
+
*/
|
|
175
|
+
livenessProbe: false | DeployConfigCloudRunProbe;
|
|
176
|
+
};
|
|
177
177
|
} & DeployConfigCloudRunWithVolumes & DeployConfigCloudRunNetworkConfig;
|
|
178
178
|
export declare const defaultStartupProbe: DeployConfigCloudRunProbe;
|
|
179
179
|
export declare const defaultLivenessProbe: DeployConfigCloudRunProbe;
|
|
180
180
|
export type DeployConfigCloudRunProbe = DeployConfigCloudRunHttp1Probe | DeployConfigCloudRunTcpProbe;
|
|
181
181
|
export type DeployConfigCloudRunProbeShared = {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
182
|
+
/**
|
|
183
|
+
* The period in seconds at which to perform the probe.
|
|
184
|
+
* For example 2 to perform the probe every 2 seconds.
|
|
185
|
+
* Specify a value **from 1 second to 240** seconds.
|
|
186
|
+
*/
|
|
187
|
+
periodSeconds: number;
|
|
188
|
+
/**
|
|
189
|
+
* The number of seconds to wait after the container has started before performing the first probe.
|
|
190
|
+
* Specify a value **from 0 seconds to 240** seconds.
|
|
191
|
+
*/
|
|
192
|
+
initialDelaySeconds: number;
|
|
193
|
+
/**
|
|
194
|
+
* The number of seconds to wait until the probe times out.
|
|
195
|
+
* This value cannot exceed the value specified for `period`.
|
|
196
|
+
* Specify a value **from 1 to 240**.
|
|
197
|
+
*/
|
|
198
|
+
timeoutSeconds: number;
|
|
199
|
+
/**
|
|
200
|
+
* The number of times to retry the probe before shutting down the container.
|
|
201
|
+
*/
|
|
202
|
+
failureThreshold: number;
|
|
203
203
|
};
|
|
204
204
|
export type DeployConfigCloudRunTcpProbe = DeployConfigCloudRunProbeShared & {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
205
|
+
/**
|
|
206
|
+
* Cloud Run makes a TCP connection to open the TCP Socket on the specified port.
|
|
207
|
+
* If Cloud Run is unable to establish a connection, it indicates a failure.
|
|
208
|
+
*/
|
|
209
|
+
type: "tcp";
|
|
210
210
|
};
|
|
211
211
|
export type DeployConfigCloudRunHttp1Probe = DeployConfigCloudRunProbeShared & {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
212
|
+
/**
|
|
213
|
+
* **This will NOT work with http2 enabled services**
|
|
214
|
+
*
|
|
215
|
+
* Cloud Run makes an HTTP GET request to the service health check endpoint (for example, /ready).
|
|
216
|
+
* Any response between 200 and 400 is a success, everything else indicates failure.
|
|
217
|
+
*
|
|
218
|
+
* If a startup probe does not succeed within the specified time (failureThreshold * period), which cannot exceed 240 seconds, the container is shut down.
|
|
219
|
+
*
|
|
220
|
+
* If the HTTP startup probe succeeds within the specified time, and you have enabled liveness probe, the HTTP liveness probe is started.
|
|
221
|
+
*/
|
|
222
|
+
type: "http1";
|
|
223
|
+
/**
|
|
224
|
+
* the route path to check for health status of the service starting with a `/`.
|
|
225
|
+
*/
|
|
226
|
+
path: string;
|
|
227
227
|
};
|
|
228
228
|
export type DeployConfigCloudRunNetworkConfig = {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
229
|
+
network?: string;
|
|
230
|
+
/**
|
|
231
|
+
* vpc subnet to use, see https://cloud.google.com/sdk/gcloud/reference/run/deploy#--subnet
|
|
232
|
+
*/
|
|
233
|
+
subnet?: string;
|
|
234
|
+
/**
|
|
235
|
+
* vpc egress, see https://cloud.google.com/sdk/gcloud/reference/run/deploy#--vpc-egress
|
|
236
|
+
*/
|
|
237
|
+
vpcEgress?: "all-traffic" | "private-ranges-only";
|
|
238
|
+
/**
|
|
239
|
+
* vpc connector
|
|
240
|
+
*/
|
|
241
|
+
vpcConnector?: string;
|
|
242
242
|
};
|
|
243
243
|
export type DeployConfigCloudRunJobBase = {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
244
|
+
/**
|
|
245
|
+
* command
|
|
246
|
+
*/
|
|
247
|
+
command: string | string[];
|
|
248
|
+
/**
|
|
249
|
+
* optional, specify args. Those get overwritten by job executions if specified there
|
|
250
|
+
*/
|
|
251
|
+
args?: string[];
|
|
252
|
+
/**
|
|
253
|
+
* custom image to use. Defaults to the image from the build
|
|
254
|
+
*/
|
|
255
|
+
image?: string;
|
|
256
|
+
/**
|
|
257
|
+
* CPU limit of the job.
|
|
258
|
+
*/
|
|
259
|
+
cpu?: Cpu;
|
|
260
|
+
/**
|
|
261
|
+
* memory limit of the job, defaults to 512Mi
|
|
262
|
+
*/
|
|
263
|
+
memory?: `${number}${"M" | "G" | "Mi" | "Gi"}`;
|
|
264
|
+
/**
|
|
265
|
+
* timeout of job, defaults to 10 minutes
|
|
266
|
+
*
|
|
267
|
+
* you can specify something like 10m30s
|
|
268
|
+
*/
|
|
269
|
+
timeout?: string;
|
|
270
|
+
/**
|
|
271
|
+
* number of tasks that may run concurrently, defaults to 1
|
|
272
|
+
*/
|
|
273
|
+
parallelism?: number;
|
|
274
|
+
/**
|
|
275
|
+
* max number of retries of the job. Defaults to 0
|
|
276
|
+
*/
|
|
277
|
+
maxRetries?: number;
|
|
278
278
|
} & DeployConfigCloudRunWithVolumes & DeployConfigCloudRunNetworkConfig;
|
|
279
279
|
type Minute = string;
|
|
280
280
|
type Hour = string;
|
|
@@ -282,209 +282,209 @@ type DayOfMonth = string;
|
|
|
282
282
|
type DayOfWeek = string;
|
|
283
283
|
type Month = string;
|
|
284
284
|
export type DeployConfigCloudRunJobWithSchedule = DeployConfigCloudRunJobBase & {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
285
|
+
/**
|
|
286
|
+
* @deprecated use `execute` instead
|
|
287
|
+
*/
|
|
288
|
+
when: "schedule";
|
|
289
|
+
/**
|
|
290
|
+
* @deprecated use `run` instead
|
|
291
|
+
*/
|
|
292
|
+
schedule: `${Minute} ${Hour} ${DayOfMonth} ${Month} ${DayOfWeek}`;
|
|
293
|
+
/**
|
|
294
|
+
* Max number of retries of the cloud scheduler.
|
|
295
|
+
* Note: the task itself is never retried.
|
|
296
|
+
*
|
|
297
|
+
* defaults to 0 (no retries)
|
|
298
|
+
*
|
|
299
|
+
* @deprecated use `run` instead
|
|
300
|
+
*/
|
|
301
|
+
maxRetryAttempts?: 0 | 1 | 2 | 3 | 4 | 5;
|
|
302
302
|
};
|
|
303
303
|
export type DeployConfigCloudRunJobNormal = DeployConfigCloudRunJobBase & {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
304
|
+
/**
|
|
305
|
+
* wait for completion of the job on preDeploy and postDeploy
|
|
306
|
+
*
|
|
307
|
+
* has no effect on preStop and postStop (which always wait for completion)
|
|
308
|
+
*
|
|
309
|
+
*
|
|
310
|
+
* @deprecated use `run` instead
|
|
311
|
+
*/
|
|
312
|
+
waitForCompletion?: boolean;
|
|
313
|
+
/**
|
|
314
|
+
* @deprecated use `run` instead
|
|
315
|
+
*/
|
|
316
|
+
when?: "manual" | "preDeploy" | "postDeploy" | "preStop" | "postStop";
|
|
317
317
|
};
|
|
318
318
|
export type DeployConfigCloudRunWithVolumes = {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
319
|
+
/**
|
|
320
|
+
* adds volumes to the service. This is an experimental feature and requires beta gcloud.
|
|
321
|
+
* sets executionEnvironment to gen2 automatically, since that is required
|
|
322
|
+
*/
|
|
323
|
+
volumes?: DeployConfigCloudRunVolumes;
|
|
324
324
|
};
|
|
325
325
|
export type DeployConfigCloudRunJob = DeployConfigCloudRunJobNormal | DeployConfigCloudRunJobWithSchedule;
|
|
326
326
|
export type DeployConfigCloudRunWorkerPool = {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
327
|
+
/**
|
|
328
|
+
* command / entrypoint for the worker pool
|
|
329
|
+
*/
|
|
330
|
+
command: string | string[];
|
|
331
|
+
/**
|
|
332
|
+
* number of instances to run. Defaults to 1.
|
|
333
|
+
* Worker pools do not support autoscaling.
|
|
334
|
+
*/
|
|
335
|
+
instances?: number;
|
|
336
|
+
/**
|
|
337
|
+
* CPU limit. Defaults to 1
|
|
338
|
+
*/
|
|
339
|
+
cpu?: Cpu;
|
|
340
|
+
/**
|
|
341
|
+
* memory limit. Defaults to 512Mi
|
|
342
|
+
*/
|
|
343
|
+
memory?: Memory;
|
|
344
|
+
/**
|
|
345
|
+
* the image to use. Defaults to the image from the build.
|
|
346
|
+
*/
|
|
347
|
+
image?: string;
|
|
348
|
+
/**
|
|
349
|
+
* args to pass to the command
|
|
350
|
+
*/
|
|
351
|
+
args?: string[];
|
|
352
|
+
/**
|
|
353
|
+
* Number of GPUs to use. Defaults to 0
|
|
354
|
+
*
|
|
355
|
+
* This is a preview feature and not all regions support it.
|
|
356
|
+
*/
|
|
357
|
+
gpu?: number;
|
|
358
|
+
/**
|
|
359
|
+
* gpu type to use. Refer to https://cloud.google.com/run/docs/configuring/services/gpu#gcloud for defaults
|
|
360
|
+
*/
|
|
361
|
+
gpuType?: string;
|
|
362
362
|
} & DeployConfigCloudRunWithVolumes & DeployConfigCloudRunNetworkConfig;
|
|
363
363
|
export type DeployConfigCloudRun = Omit<DeployConfigBase, "execute"> & {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
364
|
+
/**
|
|
365
|
+
* cloud run deployment.
|
|
366
|
+
*
|
|
367
|
+
* This will deploy a cloud run service. You can optionally define one-time and scheduled jobs running on cloud run
|
|
368
|
+
*
|
|
369
|
+
* Requires that cloud run is enabled on the project, as well as cloud run api and artifacts registry.
|
|
370
|
+
*/
|
|
371
|
+
type: "google-cloudrun";
|
|
372
|
+
/**
|
|
373
|
+
* the google cloud porject id
|
|
374
|
+
*/
|
|
375
|
+
projectId: string;
|
|
376
|
+
/**
|
|
377
|
+
* the region. Set to europe-west6 for switzerland
|
|
378
|
+
*/
|
|
379
|
+
region: Gcloudregion;
|
|
380
|
+
/**
|
|
381
|
+
* whether to enable the service, defaults to true
|
|
382
|
+
*/
|
|
383
|
+
service?: boolean | DeployConfigCloudRunService;
|
|
384
|
+
/**
|
|
385
|
+
* deploy additional services with different entry points.
|
|
386
|
+
*/
|
|
387
|
+
additionalServices?: {
|
|
388
|
+
[name: string]: DeployConfigCloudRunService | false | null;
|
|
389
|
+
};
|
|
390
|
+
jobs?: {
|
|
391
|
+
[name: string]: DeployConfigCloudRunJob | false | null;
|
|
392
|
+
};
|
|
393
|
+
/**
|
|
394
|
+
* deploy worker pools for continuous background work.
|
|
395
|
+
* Worker pools are cost-effective alternatives to services for background processing.
|
|
396
|
+
* They don't have a load balanced endpoint and don't support autoscaling.
|
|
397
|
+
*/
|
|
398
|
+
workerPools?: {
|
|
399
|
+
[name: string]: DeployConfigCloudRunWorkerPool | false | null;
|
|
400
|
+
};
|
|
401
|
+
/**
|
|
402
|
+
* add cloudSql
|
|
403
|
+
*/
|
|
404
|
+
cloudSql?: DeployConfigCloudRunCloudSql | false;
|
|
405
|
+
/**
|
|
406
|
+
* execute jobs on deploy or execute jobs and http requests on a schedule
|
|
407
|
+
*/
|
|
408
|
+
execute?: Record<string, DeployConfigCloudRunExecute | null>;
|
|
409
|
+
debug?: boolean;
|
|
410
410
|
};
|
|
411
411
|
export type DeployConfigCloudRunVolumes = Record<string, DeployConfigCloudRunVolume>;
|
|
412
412
|
export type DeployConfigCloudRunVolume = {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
413
|
+
type: "cloud-storage";
|
|
414
|
+
bucket: string;
|
|
415
|
+
mountPath: string;
|
|
416
|
+
readonly?: boolean;
|
|
417
417
|
};
|
|
418
418
|
export type DeployConfigCloudRunExecuteJobBase = {
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
419
|
+
/**
|
|
420
|
+
* set to "job" to run a cloud run job
|
|
421
|
+
*/
|
|
422
|
+
type: "job";
|
|
423
|
+
/**
|
|
424
|
+
* the cloud run job to run
|
|
425
|
+
*/
|
|
426
|
+
job: string;
|
|
427
|
+
/**
|
|
428
|
+
* additional args to pass to the job
|
|
429
|
+
*/
|
|
430
|
+
args?: string[];
|
|
431
431
|
};
|
|
432
432
|
type WithSchedule = {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
433
|
+
/**
|
|
434
|
+
* run the job on a schedule
|
|
435
|
+
*/
|
|
436
|
+
when: "schedule";
|
|
437
|
+
/**
|
|
438
|
+
* the cron schedule. See https://crontab.guru/
|
|
439
|
+
*/
|
|
440
|
+
schedule: `${Minute} ${Hour} ${DayOfMonth} ${Month} ${DayOfWeek}`;
|
|
441
|
+
/**
|
|
442
|
+
* Max number of retries of the cloud scheduler.
|
|
443
|
+
* Note: the task itself is never retried.
|
|
444
|
+
*
|
|
445
|
+
* defaults to 0 (no retries)
|
|
446
|
+
*/
|
|
447
|
+
maxRetryAttempts?: 0 | 1 | 2 | 3 | 4 | 5;
|
|
448
448
|
};
|
|
449
449
|
export type DeployConfigCloudRunExecuteJobScheduled = DeployConfigCloudRunExecuteJobBase & WithSchedule;
|
|
450
450
|
export type DeployConfigCloudRunExecuteOnDeploy = DeployConfigCloudRunExecuteJobBase & ({
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
451
|
+
/**
|
|
452
|
+
* run the job before or after the deploy
|
|
453
|
+
*/
|
|
454
|
+
when: "preDeploy" | "postDeploy";
|
|
455
|
+
/**
|
|
456
|
+
* whether to wait for completion of the job
|
|
457
|
+
*/
|
|
458
|
+
waitForCompletion?: boolean;
|
|
459
459
|
} | {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
460
|
+
/**
|
|
461
|
+
* run the job before or after the environment is stopped
|
|
462
|
+
*/
|
|
463
|
+
when: "preStop" | "postStop";
|
|
464
464
|
});
|
|
465
465
|
export type DeployConfigCloudRunExecuteJob = DeployConfigBaseExecute | DeployConfigCloudRunExecuteJobScheduled | DeployConfigCloudRunExecuteOnDeploy;
|
|
466
466
|
export type DeployConfigCloudRunExecuteHttp = {
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
467
|
+
/**
|
|
468
|
+
* set to "http" to run a http request
|
|
469
|
+
*/
|
|
470
|
+
type: "http";
|
|
471
|
+
/**
|
|
472
|
+
* the url to call
|
|
473
|
+
*/
|
|
474
|
+
url: string;
|
|
475
|
+
/**
|
|
476
|
+
* the http-method to use. Defaults to "POST" (as specified by google cloud scheduler)
|
|
477
|
+
*/
|
|
478
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "PURGE";
|
|
479
|
+
/**
|
|
480
|
+
* the body to send
|
|
481
|
+
*/
|
|
482
|
+
body?: string;
|
|
483
|
+
/**
|
|
484
|
+
* the headers to send
|
|
485
|
+
*/
|
|
486
|
+
headers?: Record<string, string>;
|
|
487
487
|
} & WithSchedule;
|
|
488
488
|
export type DeployConfigCloudRunExecute = DeployConfigBaseExecute | DeployConfigCloudRunExecuteJob | DeployConfigCloudRunExecuteHttp;
|
|
489
489
|
export type DeployConfigCloudRunExecuteWithSchedule = Extract<DeployConfigCloudRunExecute, WithSchedule>;
|
|
490
|
-
export {};
|
|
490
|
+
export {};
|