@catladder/cli 0.0.0-main-d4af38d9 → 0.0.0-main-6b263a90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/apps/cli/commands/project/setup/setupCloudRun.d.ts +3 -0
  2. package/dist/apps/cli/commands/project/setup/setupCloudRun.js +92 -0
  3. package/dist/apps/cli/commands/project/setup/setupCloudRun.js.map +1 -0
  4. package/dist/apps/cli/commands/project/setup/setupContext.js +12 -5
  5. package/dist/apps/cli/commands/project/setup/setupContext.js.map +1 -1
  6. package/dist/apps/cli/commands/shared/index.js.map +1 -1
  7. package/dist/bundles/catenv/index.js +317 -32
  8. package/dist/bundles/cli/index.js +868 -116
  9. package/dist/gcloud/artifactsRegistry.d.ts +5 -0
  10. package/dist/gcloud/artifactsRegistry.js +59 -0
  11. package/dist/gcloud/artifactsRegistry.js.map +1 -0
  12. package/dist/gcloud/cloudRun/getCloudRunDomainSuffix.d.ts +2 -0
  13. package/dist/gcloud/cloudRun/getCloudRunDomainSuffix.js +67 -0
  14. package/dist/gcloud/cloudRun/getCloudRunDomainSuffix.js.map +1 -0
  15. package/dist/gcloud/enableServices.d.ts +3 -0
  16. package/dist/gcloud/enableServices.js +63 -0
  17. package/dist/gcloud/enableServices.js.map +1 -0
  18. package/dist/gcloud/serviceAccounts.d.ts +12 -0
  19. package/dist/gcloud/serviceAccounts.js +144 -0
  20. package/dist/gcloud/serviceAccounts.js.map +1 -0
  21. package/dist/tsconfig.tsbuildinfo +1 -1
  22. package/dist/utils/gitlab.js +1 -1
  23. package/dist/utils/gitlab.js.map +1 -1
  24. package/package.json +2 -2
  25. package/src/apps/cli/commands/project/setup/setupCloudRun.ts +69 -0
  26. package/src/apps/cli/commands/project/setup/setupContext.ts +4 -1
  27. package/src/apps/cli/commands/shared/index.ts +0 -4
  28. package/src/gcloud/artifactsRegistry.ts +16 -0
  29. package/src/gcloud/cloudRun/getCloudRunDomainSuffix.ts +34 -0
  30. package/src/gcloud/enableServices.ts +14 -0
  31. package/src/gcloud/serviceAccounts.ts +101 -0
  32. package/src/utils/gitlab.ts +2 -2
@@ -0,0 +1,3 @@
1
+ import type { Context } from "@catladder/pipeline";
2
+ import type { CommandInstance } from "vorpal";
3
+ export declare const setupCloudRun: (instance: CommandInstance, context: Context) => Promise<void>;
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (_) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ exports.__esModule = true;
39
+ exports.setupCloudRun = void 0;
40
+ var pipeline_1 = require("@catladder/pipeline");
41
+ var artifactsRegistry_1 = require("../../../../../gcloud/artifactsRegistry");
42
+ var getCloudRunDomainSuffix_1 = require("../../../../../gcloud/cloudRun/getCloudRunDomainSuffix");
43
+ var enableServices_1 = require("../../../../../gcloud/enableServices");
44
+ var serviceAccounts_1 = require("../../../../../gcloud/serviceAccounts");
45
+ var gitlab_1 = require("../../../../../utils/gitlab");
46
+ var setupCloudRun = function (instance, context) { return __awaiter(void 0, void 0, void 0, function () {
47
+ var config, suffix;
48
+ var _a;
49
+ return __generator(this, function (_b) {
50
+ switch (_b.label) {
51
+ case 0:
52
+ if (!(0, pipeline_1.isOfDeployType)(context.componentConfig.deploy, "google-cloudrun")) {
53
+ throw new Error("deploy config is not of type 'google-cloudrun'");
54
+ }
55
+ config = context.componentConfig.deploy;
56
+ // enable services
57
+ instance.log("enable required servies...");
58
+ return [4 /*yield*/, (0, enableServices_1.enableGCloudServices)(["run.googleapis.com", "artifactregistry.googleapis.com"], config)];
59
+ case 1:
60
+ _b.sent();
61
+ return [4 /*yield*/, (0, artifactsRegistry_1.upsertGcloudArtifactsRegistry)(config)];
62
+ case 2:
63
+ _b.sent();
64
+ return [4 /*yield*/, (0, serviceAccounts_1.upsertGcloudServiceAccountAndSaveSecret)(instance, context, {
65
+ projectId: config.projectId,
66
+ displayName: "Catladder gcloud deploy",
67
+ description: "This service account deploys to google cloud",
68
+ name: "cl-d",
69
+ // TODO: run.admin is a bit much, would be better to follow https://stackoverflow.com/questions/55788714/deploying-to-cloud-run-with-a-custom-service-account-failed-with-iam-serviceacco
70
+ roles: [
71
+ "roles/artifactregistry.repoAdmin",
72
+ "roles/run.admin",
73
+ "roles/iam.serviceAccountUser",
74
+ ]
75
+ }, pipeline_1.GCLOUD_DEPLOY_CREDENTIALS_KEY)];
76
+ case 3:
77
+ _b.sent();
78
+ return [4 /*yield*/, (0, getCloudRunDomainSuffix_1.getCloudRunDomainSuffix)(config)];
79
+ case 4:
80
+ suffix = _b.sent();
81
+ instance.log("domain suffix: " + suffix);
82
+ return [4 /*yield*/, (0, gitlab_1.upsertAllVariables)(instance, (_a = {},
83
+ _a[pipeline_1.GCLOUD_RUN_CANONICAL_HOST_SUFFIX] = suffix,
84
+ _a), context.environment.shortName, context.componentName)];
85
+ case 5:
86
+ _b.sent();
87
+ return [2 /*return*/];
88
+ }
89
+ });
90
+ }); };
91
+ exports.setupCloudRun = setupCloudRun;
92
+ //# sourceMappingURL=setupCloudRun.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setupCloudRun.js","sourceRoot":"","sources":["../../../../../../src/apps/cli/commands/project/setup/setupCloudRun.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,gDAI6B;AAG7B,6EAAwF;AACxF,kGAAiG;AACjG,uEAA4E;AAC5E,yEAAgG;AAChG,sDAAiE;AAE1D,IAAM,aAAa,GAAG,UAC3B,QAAyB,EACzB,OAAgB;;;;;;gBAEhB,IAAI,CAAC,IAAA,yBAAc,EAAC,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,iBAAiB,CAAC,EAAE;oBACtE,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;iBACnE;gBAEK,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC;gBAE9C,kBAAkB;gBAElB,QAAQ,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;gBAC3C,qBAAM,IAAA,qCAAoB,EACxB,CAAC,oBAAoB,EAAE,iCAAiC,CAAC,EACzD,MAAM,CACP,EAAA;;gBAHD,SAGC,CAAC;gBAEF,qBAAM,IAAA,iDAA6B,EAAC,MAAM,CAAC,EAAA;;gBAA3C,SAA2C,CAAC;gBAE5C,qBAAM,IAAA,yDAAuC,EAC3C,QAAQ,EACR,OAAO,EACP;wBACE,SAAS,EAAE,MAAM,CAAC,SAAS;wBAC3B,WAAW,EAAE,yBAAyB;wBACtC,WAAW,EAAE,8CAA8C;wBAC3D,IAAI,EAAE,MAAM;wBACZ,yLAAyL;wBACzL,KAAK,EAAE;4BACL,kCAAkC;4BAClC,iBAAiB;4BACjB,8BAA8B;yBAC/B;qBACF,EACD,wCAA6B,CAC9B,EAAA;;gBAhBD,SAgBC,CAAC;gBAOa,qBAAM,IAAA,iDAAuB,EAAC,MAAM,CAAC,EAAA;;gBAA9C,MAAM,GAAG,SAAqC;gBACpD,QAAQ,CAAC,GAAG,CAAC,iBAAiB,GAAG,MAAM,CAAC,CAAC;gBAEzC,qBAAM,IAAA,2BAAkB,EACtB,QAAQ;wBAEN,GAAC,2CAAgC,IAAG,MAAM;6BAE5C,OAAO,CAAC,WAAW,CAAC,SAAS,EAC7B,OAAO,CAAC,aAAa,CACtB,EAAA;;gBAPD,SAOC,CAAC;;;;KACH,CAAC;AAtDW,QAAA,aAAa,iBAsDxB"}
@@ -38,6 +38,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
38
38
  exports.__esModule = true;
39
39
  exports.setupContext = void 0;
40
40
  var pipeline_1 = require("@catladder/pipeline");
41
+ var setupCloudRun_1 = require("./setupCloudRun");
41
42
  var setupCloudSQL_1 = require("./setupCloudSQL");
42
43
  var setupKubernetes_1 = require("./setupKubernetes");
43
44
  var setupContext = function (instance, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -53,19 +54,25 @@ var setupContext = function (instance, context) { return __awaiter(void 0, void
53
54
  context.componentName +
54
55
  "...");
55
56
  instance.log("");
56
- if (!(0, pipeline_1.hasCloudSQL)(context)) return [3 /*break*/, 2];
57
- return [4 /*yield*/, (0, setupCloudSQL_1.setupCloudSQL)(instance, context)];
57
+ if (!(0, pipeline_1.isOfDeployType)(context.componentConfig.deploy, "google-cloudrun")) return [3 /*break*/, 2];
58
+ return [4 /*yield*/, (0, setupCloudRun_1.setupCloudRun)(instance, context)];
58
59
  case 1:
59
60
  _a.sent();
60
61
  _a.label = 2;
61
62
  case 2:
62
- deployConfig = context.componentConfig.deploy;
63
- if (!(0, pipeline_1.isOfDeployType)(deployConfig, "kubernetes")) return [3 /*break*/, 4];
64
- return [4 /*yield*/, (0, setupKubernetes_1.setupKubernetes)(instance, context)];
63
+ if (!(0, pipeline_1.hasCloudSQL)(context)) return [3 /*break*/, 4];
64
+ return [4 /*yield*/, (0, setupCloudSQL_1.setupCloudSQL)(instance, context)];
65
65
  case 3:
66
66
  _a.sent();
67
67
  _a.label = 4;
68
68
  case 4:
69
+ deployConfig = context.componentConfig.deploy;
70
+ if (!(0, pipeline_1.isOfDeployType)(deployConfig, "kubernetes")) return [3 /*break*/, 6];
71
+ return [4 /*yield*/, (0, setupKubernetes_1.setupKubernetes)(instance, context)];
72
+ case 5:
73
+ _a.sent();
74
+ _a.label = 6;
75
+ case 6:
69
76
  instance.log("");
70
77
  instance.log("✅ " +
71
78
  context.environment.shortName +
@@ -1 +1 @@
1
- {"version":3,"file":"setupContext.js","sourceRoot":"","sources":["../../../../../../src/apps/cli/commands/project/setup/setupContext.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,gDAAkE;AAElE,iDAAgD;AAEhD,qDAAoD;AAE7C,IAAM,YAAY,GAAG,UAC1B,QAAyB,EACzB,OAAgB;;;;;gBAEhB,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;gBACjB,QAAQ,CAAC,GAAG,CACV,oFAAoF,CACrF,CAAC;gBAEF,QAAQ,CAAC,GAAG,CACV,mBAAmB;oBACjB,OAAO,CAAC,WAAW,CAAC,SAAS;oBAC7B,GAAG;oBACH,OAAO,CAAC,aAAa;oBACrB,KAAK,CACR,CAAC;gBACF,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;qBACb,IAAA,sBAAW,EAAC,OAAO,CAAC,EAApB,wBAAoB;gBACtB,qBAAM,IAAA,6BAAa,EAAC,QAAQ,EAAE,OAAO,CAAC,EAAA;;gBAAtC,SAAsC,CAAC;;;gBAGnC,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC;qBAChD,IAAA,yBAAc,EAAC,YAAY,EAAE,YAAY,CAAC,EAA1C,wBAA0C;gBAC5C,qBAAM,IAAA,iCAAe,EAAC,QAAQ,EAAE,OAAO,CAAC,EAAA;;gBAAxC,SAAwC,CAAC;;;gBAG3C,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;gBACjB,QAAQ,CAAC,GAAG,CACV,IAAI;oBACF,OAAO,CAAC,WAAW,CAAC,SAAS;oBAC7B,GAAG;oBACH,OAAO,CAAC,aAAa;oBACrB,QAAQ,CACX,CAAC;gBAEF,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;;;;KAClB,CAAC;AApCW,QAAA,YAAY,gBAoCvB"}
1
+ {"version":3,"file":"setupContext.js","sourceRoot":"","sources":["../../../../../../src/apps/cli/commands/project/setup/setupContext.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,gDAAkE;AAElE,iDAAgD;AAChD,iDAAgD;AAChD,qDAAoD;AAE7C,IAAM,YAAY,GAAG,UAC1B,QAAyB,EACzB,OAAgB;;;;;gBAEhB,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;gBACjB,QAAQ,CAAC,GAAG,CACV,oFAAoF,CACrF,CAAC;gBAEF,QAAQ,CAAC,GAAG,CACV,mBAAmB;oBACjB,OAAO,CAAC,WAAW,CAAC,SAAS;oBAC7B,GAAG;oBACH,OAAO,CAAC,aAAa;oBACrB,KAAK,CACR,CAAC;gBACF,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;qBACb,IAAA,yBAAc,EAAC,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,iBAAiB,CAAC,EAAjE,wBAAiE;gBACnE,qBAAM,IAAA,6BAAa,EAAC,QAAQ,EAAE,OAAO,CAAC,EAAA;;gBAAtC,SAAsC,CAAC;;;qBAErC,IAAA,sBAAW,EAAC,OAAO,CAAC,EAApB,wBAAoB;gBACtB,qBAAM,IAAA,6BAAa,EAAC,QAAQ,EAAE,OAAO,CAAC,EAAA;;gBAAtC,SAAsC,CAAC;;;gBAGnC,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC;qBAChD,IAAA,yBAAc,EAAC,YAAY,EAAE,YAAY,CAAC,EAA1C,wBAA0C;gBAC5C,qBAAM,IAAA,iCAAe,EAAC,QAAQ,EAAE,OAAO,CAAC,EAAA;;gBAAxC,SAAwC,CAAC;;;gBAG3C,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;gBACjB,QAAQ,CAAC,GAAG,CACV,IAAI;oBACF,OAAO,CAAC,WAAW,CAAC,SAAS;oBAC7B,GAAG;oBACH,OAAO,CAAC,aAAa;oBACrB,QAAQ,CACX,CAAC;gBAEF,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;;;;KAClB,CAAC;AAvCW,QAAA,YAAY,gBAuCvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/apps/cli/commands/shared/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,8CAAwB;AAEjB,IAAM,mBAAmB,GAAG,UACjC,OAAuC,EACvC,SAAkB,EAClB,oBAAwB;IAAxB,qCAAA,EAAA,wBAAwB;;;;YAElB,QAAQ,GAAG,qCAA8B,OAAO,CAAC,IAAI,SACzD,SAAS,CAAC,CAAC,CAAC,0BAAmB,SAAS,CAAE,CAAC,CAAC,CAAC,EAAE,CAC/C,CAAC;YAEG,GAAG,GAAG,+DACV,OAAO,CAAC,SAAS,SAEjB,QAAQ,CAAC,CAAC,CAAC,oBAAa,kBAAkB,CAAC,QAAQ,CAAC,CAAE,CAAC,CAAC,CAAC,EAAE,uBAChD,oBAAoB,CAAE,CAAC;YACpC,IAAA,iBAAI,EAAC,GAAG,CAAC,CAAC;;;;CACX,CAAC;AAfW,QAAA,mBAAmB,uBAe9B;AAEK,IAAM,kCAAkC,GAAG,UAChD,OAAsC,EACtC,SAAiB,EACjB,oBAAwB;IAAxB,qCAAA,EAAA,wBAAwB;;;;YAMlB,SAAS,GAAG,wCAA4B,OAAO,CAAC,MAAM,cAAI,OAAO,CAAC,IAAI,0BAAY,SAAS,qDAA6C,CAAC;YACzI,GAAG,GAAG,wEAAiE,oBAAoB,sBAC/F,OAAO,CAAC,SAAS,wBACL,kBAAkB,CAAC,SAAS,CAAC,CAAE,CAAC;YAE9C,IAAA,iBAAI,EAAC,GAAG,CAAC,CAAC;;;;CACX,CAAC;AAfW,QAAA,kCAAkC,sCAe7C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/apps/cli/commands/shared/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,8CAAwB;AAEjB,IAAM,mBAAmB,GAAG,UACjC,OAAuC,EACvC,SAAkB,EAClB,oBAAwB;IAAxB,qCAAA,EAAA,wBAAwB;;;;YAElB,QAAQ,GAAG,qCAA8B,OAAO,CAAC,IAAI,SACzD,SAAS,CAAC,CAAC,CAAC,0BAAmB,SAAS,CAAE,CAAC,CAAC,CAAC,EAAE,CAC/C,CAAC;YAEG,GAAG,GAAG,+DACV,OAAO,CAAC,SAAS,SAEjB,QAAQ,CAAC,CAAC,CAAC,oBAAa,kBAAkB,CAAC,QAAQ,CAAC,CAAE,CAAC,CAAC,CAAC,EAAE,uBAChD,oBAAoB,CAAE,CAAC;YACpC,IAAA,iBAAI,EAAC,GAAG,CAAC,CAAC;;;;CACX,CAAC;AAfW,QAAA,mBAAmB,uBAe9B;AAEK,IAAM,kCAAkC,GAAG,UAChD,OAAsC,EACtC,SAAiB,EACjB,oBAAwB;IAAxB,qCAAA,EAAA,wBAAwB;;;;YAElB,SAAS,GAAG,wCAA4B,OAAO,CAAC,MAAM,cAAI,OAAO,CAAC,IAAI,0BAAY,SAAS,qDAA6C,CAAC;YACzI,GAAG,GAAG,wEAAiE,oBAAoB,sBAC/F,OAAO,CAAC,SAAS,wBACL,kBAAkB,CAAC,SAAS,CAAC,CAAE,CAAC;YAE9C,IAAA,iBAAI,EAAC,GAAG,CAAC,CAAC;;;;CACX,CAAC;AAXW,QAAA,kCAAkC,sCAW7C"}
@@ -614,8 +614,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
614
614
  };
615
615
  exports.__esModule = true;
616
616
  exports.upsertAllVariables = exports.getVariableValueByRawName = exports.getAllVariables = exports.getProjectInfo = exports.doGitlabRequest = exports.getGitlabToken = exports.setupGitlabToken = exports.hasGitlabToken = void 0;
617
- var child_process_promise_1 = __nccwpck_require__(5763);
618
617
  var pipeline_1 = __nccwpck_require__(5355);
618
+ var child_process_promise_1 = __nccwpck_require__(5763);
619
619
  var lodash_1 = __nccwpck_require__(3255);
620
620
  var memoizee_1 = __importDefault(__nccwpck_require__(5839));
621
621
  var node_fetch_1 = __importDefault(__nccwpck_require__(6372));
@@ -38817,7 +38817,7 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
38817
38817
  };
38818
38818
 
38819
38819
  exports.__esModule = true;
38820
- exports.createDockerBuildJobDefault = exports.createDockerBuildJobBase = exports.DOCKER_BUILD_JOB_NAME = exports.getDockerBuildVariables = exports.requiresDockerBuild = exports.getDockerImageVariables = void 0;
38820
+ exports.createDockerBuildJobDefault = exports.gitlabDockerLogin = exports.createDockerBuildJobBase = exports.getDockerJobBaseProps = exports.DOCKER_BUILD_JOB_NAME = exports.getDockerBuildVariables = exports.requiresDockerBuild = exports.getDockerImageVariables = void 0;
38821
38821
 
38822
38822
  var lodash_1 = __nccwpck_require__(3255);
38823
38823
 
@@ -38852,6 +38852,10 @@ var requiresDockerBuild = function (context) {
38852
38852
  return true;
38853
38853
  }
38854
38854
 
38855
+ if ((0, deploy_1.isOfDeployType)(deployConfig, "google-cloudrun")) {
38856
+ return true;
38857
+ }
38858
+
38855
38859
  if ((0, deploy_1.isOfDeployType)(deployConfig, "custom") && deployConfig.requiresDocker) {
38856
38860
  return true;
38857
38861
  }
@@ -38879,33 +38883,41 @@ var getDockerBuildVariables = function (context) {
38879
38883
  exports.getDockerBuildVariables = getDockerBuildVariables;
38880
38884
  exports.DOCKER_BUILD_JOB_NAME = "🔨 docker";
38881
38885
 
38882
- var createDockerBuildJobBase = function (context, _a) {
38883
- var script = _a.script,
38884
- variables = _a.variables,
38885
- def = __rest(_a, ["script", "variables"]);
38886
-
38887
- return (0, lodash_1.merge)({
38888
- name: exports.DOCKER_BUILD_JOB_NAME,
38889
- envMode: "jobPerEnv",
38890
- stage: "build",
38886
+ var getDockerJobBaseProps = function (context) {
38887
+ return {
38891
38888
  image: (0, runner_1.getRunnerImage)("docker-build"),
38892
38889
  services: [{
38893
38890
  name: "docker:20-dind",
38894
38891
  command: ["--tls=false"]
38895
38892
  }],
38896
- variables: __assign(__assign({}, (0, exports.getDockerBuildVariables)(context)), variables !== null && variables !== void 0 ? variables : {}),
38893
+ variables: (0, exports.getDockerBuildVariables)(context)
38894
+ };
38895
+ };
38896
+
38897
+ exports.getDockerJobBaseProps = getDockerJobBaseProps;
38898
+
38899
+ var createDockerBuildJobBase = function (context, _a) {
38900
+ var script = _a.script,
38901
+ def = __rest(_a, ["script"]);
38902
+
38903
+ return (0, lodash_1.merge)(__assign(__assign({
38904
+ name: exports.DOCKER_BUILD_JOB_NAME,
38905
+ envMode: "jobPerEnv",
38906
+ stage: "build"
38907
+ }, (0, exports.getDockerJobBaseProps)(context)), {
38897
38908
  script: script || []
38898
- }, def);
38909
+ }), def);
38899
38910
  };
38900
38911
 
38901
38912
  exports.createDockerBuildJobBase = createDockerBuildJobBase;
38913
+ exports.gitlabDockerLogin = "docker login --username gitlab-ci-token --password $CI_JOB_TOKEN $CI_REGISTRY";
38902
38914
 
38903
38915
  var createDockerBuildJobDefault = function (context, _a) {
38904
38916
  var script = _a.script,
38905
38917
  def = __rest(_a, ["script"]);
38906
38918
 
38907
38919
  return (0, exports.createDockerBuildJobBase)(context, __assign({
38908
- script: __spreadArray(__spreadArray([], __read(script || []), false), ["docker login --username gitlab-ci-token --password $CI_JOB_TOKEN $CI_REGISTRY", "docker build --network host --cache-from $DOCKER_CACHE_IMAGE --tag $DOCKER_IMAGE:$DOCKER_IMAGE_TAG -f $APP_DIR/Dockerfile . --build-arg BUILDKIT_INLINE_CACHE=1", "docker push $DOCKER_IMAGE:$DOCKER_IMAGE_TAG", "docker tag $DOCKER_IMAGE:$DOCKER_IMAGE_TAG $DOCKER_CACHE_IMAGE", "docker push $DOCKER_CACHE_IMAGE"], false)
38920
+ script: __spreadArray(__spreadArray([], __read(script || []), false), [exports.gitlabDockerLogin, "docker build --network host --cache-from $DOCKER_CACHE_IMAGE --tag $DOCKER_IMAGE:$DOCKER_IMAGE_TAG -f $APP_DIR/Dockerfile . --build-arg BUILDKIT_INLINE_CACHE=1", "docker push $DOCKER_IMAGE:$DOCKER_IMAGE_TAG", "docker tag $DOCKER_IMAGE:$DOCKER_IMAGE_TAG $DOCKER_CACHE_IMAGE", "docker push $DOCKER_CACHE_IMAGE"], false)
38909
38921
  }, def));
38910
38922
  };
38911
38923
 
@@ -39806,11 +39818,67 @@ exports.readConfigSync = readConfigSync;
39806
39818
 
39807
39819
  exports.__esModule = true;
39808
39820
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
39809
- exports.PIPELINE_IMAGE_TAG = "main-d4af38d9" || 0;
39821
+ exports.PIPELINE_IMAGE_TAG = "main-6b263a90" || 0;
39810
39822
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
39811
39823
 
39812
39824
  /***/ }),
39813
39825
 
39826
+ /***/ 486:
39827
+ /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
39828
+
39829
+ "use strict";
39830
+
39831
+
39832
+ var __assign = this && this.__assign || function () {
39833
+ __assign = Object.assign || function (t) {
39834
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
39835
+ s = arguments[i];
39836
+
39837
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
39838
+ }
39839
+
39840
+ return t;
39841
+ };
39842
+
39843
+ return __assign.apply(this, arguments);
39844
+ };
39845
+
39846
+ var __importDefault = this && this.__importDefault || function (mod) {
39847
+ return mod && mod.__esModule ? mod : {
39848
+ "default": mod
39849
+ };
39850
+ };
39851
+
39852
+ exports.__esModule = true;
39853
+ exports.getLabels = void 0;
39854
+
39855
+ var slugify_1 = __importDefault(__nccwpck_require__(4035));
39856
+
39857
+ var sanitize = function (value) {
39858
+ if (!value) return value; //"The value can only contain lowercase letters, numeric characters, underscores and dashes. The value can be at most 63 characters long. International characters are allowed."
39859
+ // slugify should do the job
39860
+
39861
+ return (0, slugify_1["default"])(value).toLowerCase();
39862
+ };
39863
+
39864
+ var getLabels = function (context) {
39865
+ var _a, _b, _c;
39866
+
39867
+ var labels = __assign({
39868
+ "customer-name": sanitize(context.fullConfig.customerName),
39869
+ "app-name": sanitize(context.fullConfig.appName),
39870
+ "env-type": sanitize(context.environment.envType),
39871
+ "env-name": sanitize(context.environment.shortName),
39872
+ "build-type": sanitize((_a = context.componentConfig.build) === null || _a === void 0 ? void 0 : _a.type)
39873
+ }, (_c = (_b = context.fullConfig.meta) === null || _b === void 0 ? void 0 : _b.labels) !== null && _c !== void 0 ? _c : {});
39874
+
39875
+ return labels;
39876
+ };
39877
+
39878
+ exports.getLabels = getLabels;
39879
+
39880
+ /***/ }),
39881
+
39814
39882
  /***/ 2041:
39815
39883
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
39816
39884
 
@@ -40024,6 +40092,8 @@ var build_1 = __nccwpck_require__(3760);
40024
40092
 
40025
40093
  var deploy_1 = __nccwpck_require__(223);
40026
40094
 
40095
+ var types_1 = __nccwpck_require__(3109);
40096
+
40027
40097
  var config_1 = __nccwpck_require__(9997);
40028
40098
 
40029
40099
  var utils_1 = __nccwpck_require__(7461);
@@ -40110,7 +40180,7 @@ var getEnvironment = function (config, componentName, env, commitInfo, alreadyVi
40110
40180
  envInUrl = envType === "review" && commitInfo ? "".concat(commitInfo.reviewSlug, ".").concat(env) : env;
40111
40181
  domainCanonical = (mergedConfig === null || mergedConfig === void 0 ? void 0 : mergedConfig.deploy) && (mergedConfig === null || mergedConfig === void 0 ? void 0 : mergedConfig.deploy.type) === "kubernetes" && ((_e = mergedConfig.deploy.cluster) === null || _e === void 0 ? void 0 : _e.domainCanonical) || // for convenience, we allow clusters to define a canonical domain, because a cluster has a fixed ip and you will usually have a domain pointing to that cluster
40112
40182
  config.domainCanonical || "panter.cloud";
40113
- HOST_CANONICAL = "".concat(componentSlug, ".").concat(envInUrl, ".").concat(config.appName, ".").concat(config.customerName, ".").concat(domainCanonical);
40183
+ HOST_CANONICAL = (0, types_1.isOfDeployType)(mergedConfig.deploy, "kubernetes") ? "".concat(componentSlug, ".").concat(envInUrl, ".").concat(config.appName, ".").concat(config.customerName, ".").concat(domainCanonical) : (0, types_1.isOfDeployType)(mergedConfig.deploy, "google-cloudrun") ? environmentSlug + "-" + process.env[(0, exports.getSecretVarName)(env, componentName, deploy_1.GCLOUD_RUN_CANONICAL_HOST_SUFFIX)] : "";
40114
40184
  host = (_f = mergedConfig === null || mergedConfig === void 0 ? void 0 : mergedConfig.host) !== null && _f !== void 0 ? _f : HOST_CANONICAL;
40115
40185
  url_1 = "https://".concat(host);
40116
40186
  KUBE_APP_NAME_PREFIX = envType === "review" && commitInfo ? "".concat(commitInfo.reviewSlug, "-") : "";
@@ -40751,6 +40821,169 @@ exports.getBaseRollbackJob = getBaseRollbackJob;
40751
40821
 
40752
40822
  /***/ }),
40753
40823
 
40824
+ /***/ 2256:
40825
+ /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
40826
+
40827
+ "use strict";
40828
+
40829
+
40830
+ var __read = this && this.__read || function (o, n) {
40831
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
40832
+ if (!m) return o;
40833
+ var i = m.call(o),
40834
+ r,
40835
+ ar = [],
40836
+ e;
40837
+
40838
+ try {
40839
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
40840
+ } catch (error) {
40841
+ e = {
40842
+ error: error
40843
+ };
40844
+ } finally {
40845
+ try {
40846
+ if (r && !r.done && (m = i["return"])) m.call(i);
40847
+ } finally {
40848
+ if (e) throw e.error;
40849
+ }
40850
+ }
40851
+
40852
+ return ar;
40853
+ };
40854
+
40855
+ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
40856
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
40857
+ if (ar || !(i in from)) {
40858
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
40859
+ ar[i] = from[i];
40860
+ }
40861
+ }
40862
+ return to.concat(ar || Array.prototype.slice.call(from));
40863
+ };
40864
+
40865
+ exports.__esModule = true;
40866
+ exports.createDeployJob = void 0;
40867
+
40868
+ var js_yaml_1 = __nccwpck_require__(3618);
40869
+
40870
+ var lodash_1 = __nccwpck_require__(3255);
40871
+
40872
+ var _1 = __nccwpck_require__(1344);
40873
+
40874
+ var docker_1 = __nccwpck_require__(3219);
40875
+
40876
+ var getLabels_1 = __nccwpck_require__(486);
40877
+
40878
+ var runner_1 = __nccwpck_require__(5071);
40879
+
40880
+ var base_1 = __nccwpck_require__(9177);
40881
+
40882
+ var types_1 = __nccwpck_require__(3109);
40883
+
40884
+ var gcloudServiceAccountLoginCommands_1 = __nccwpck_require__(2607);
40885
+
40886
+ var createDeployJob = function (context) {
40887
+ var deployConfig = context.componentConfig.deploy;
40888
+
40889
+ if (deployConfig === false) {
40890
+ return [];
40891
+ }
40892
+
40893
+ if (!(0, types_1.isOfDeployType)(deployConfig, "google-cloudrun")) {
40894
+ // should not happen
40895
+ throw new Error("deploy config is not custom");
40896
+ }
40897
+
40898
+ var baseDeploymentJob = (0, base_1.getBaseDeploymentJob)(context);
40899
+ var fullAppName = "".concat(context.fullConfig.customerName, "-").concat(context.fullConfig.appName);
40900
+ var dockerUrl = "".concat(deployConfig.region, "-docker.pkg.dev/").concat(deployConfig.projectId, "/catladder-deploy/").concat(fullAppName);
40901
+ var gcloudImageName = "".concat(dockerUrl, "/$DOCKER_IMAGE_NAME:$DOCKER_IMAGE_TAG");
40902
+
40903
+ var pushImageToArtifactsRegistry = __spreadArray(__spreadArray([docker_1.gitlabDockerLogin], __read((0, gcloudServiceAccountLoginCommands_1.gcloudServiceAccountLoginCommands)(context)), false), ["gcloud auth configure-docker ".concat(deployConfig.region, "-docker.pkg.dev"), "docker pull $DOCKER_IMAGE:$DOCKER_IMAGE_TAG", "docker tag $DOCKER_IMAGE:$DOCKER_IMAGE_TAG ".concat(gcloudImageName), "docker push ".concat(gcloudImageName)], false);
40904
+
40905
+ var allEnvVars = (0, lodash_1.omit)(context.environment.envVars, _1.GCLOUD_DEPLOY_CREDENTIALS_KEY);
40906
+ var serviceName = context.environment.slug;
40907
+ var labelsString = Object.entries((0, getLabels_1.getLabels)(context)).map(function (_a) {
40908
+ var _b = __read(_a, 2),
40909
+ key = _b[0],
40910
+ value = _b[1];
40911
+
40912
+ return "".concat(key, "=").concat(value);
40913
+ }).join(",");
40914
+ var command = context.componentConfig.build.startCommand ? "--command=\"".concat(context.componentConfig.build.startCommand.split(" ").join(","), "\"") : ""; // TODO: split secrets out
40915
+
40916
+ var cloudRunDeploy = ["echo \"$ENV_VARS\" > ____envvars.yaml", "gcloud run deploy ".concat(serviceName, " --image ").concat(gcloudImageName, " --region=").concat(deployConfig.region, " --allow-unauthenticated --project ").concat(deployConfig.projectId, " ").concat(command, " --env-vars-file=____envvars.yaml --labels ").concat(labelsString), "docker image rm ".concat(gcloudImageName)];
40917
+ var baseStopJob = (0, base_1.getBaseDeploymentStopJob)(context);
40918
+ return [(0, lodash_1.merge)({}, baseDeploymentJob, (0, docker_1.getDockerJobBaseProps)(context), {
40919
+ artifacts: {
40920
+ paths: ["____envvars.yaml"]
40921
+ },
40922
+ variables: {
40923
+ ENV_VARS: (0, js_yaml_1.dump)(allEnvVars, {
40924
+ lineWidth: -1,
40925
+ quotingType: "'",
40926
+ forceQuotes: true
40927
+ })
40928
+ },
40929
+ image: (0, runner_1.getRunnerImage)("gcloud"),
40930
+ script: __spreadArray(__spreadArray([], __read(pushImageToArtifactsRegistry), false), __read(cloudRunDeploy), false)
40931
+ }), (0, lodash_1.merge)({}, baseStopJob, {
40932
+ image: (0, runner_1.getRunnerImage)("gcloud"),
40933
+ script: __spreadArray(__spreadArray([], __read((0, gcloudServiceAccountLoginCommands_1.gcloudServiceAccountLoginCommands)(context)), false), ["gcloud run services delete ".concat(serviceName, " --project ").concat(deployConfig.projectId, " --region=").concat(deployConfig.region, " --quiet")], false)
40934
+ })];
40935
+ };
40936
+
40937
+ exports.createDeployJob = createDeployJob;
40938
+
40939
+ /***/ }),
40940
+
40941
+ /***/ 1344:
40942
+ /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
40943
+
40944
+ "use strict";
40945
+
40946
+
40947
+ exports.__esModule = true;
40948
+ exports.GCLOUD_RUN_DEPLOY_TYPE = exports.GCLOUD_RUN_CANONICAL_HOST_SUFFIX = exports.GCLOUD_DEPLOY_CREDENTIALS_KEY = void 0;
40949
+
40950
+ var deployJob_1 = __nccwpck_require__(2256);
40951
+
40952
+ exports.GCLOUD_DEPLOY_CREDENTIALS_KEY = "GCLOUD_DEPLOY_credentialsKey";
40953
+ exports.GCLOUD_RUN_CANONICAL_HOST_SUFFIX = "GCLOUD_RUN_canonicalHostSuffix";
40954
+ exports.GCLOUD_RUN_DEPLOY_TYPE = {
40955
+ jobs: deployJob_1.createDeployJob,
40956
+ defaults: function () {
40957
+ return {};
40958
+ },
40959
+ additionalSecretKeys: function () {
40960
+ return [exports.GCLOUD_DEPLOY_CREDENTIALS_KEY];
40961
+ }
40962
+ };
40963
+
40964
+ /***/ }),
40965
+
40966
+ /***/ 2607:
40967
+ /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
40968
+
40969
+ "use strict";
40970
+
40971
+
40972
+ exports.__esModule = true;
40973
+ exports.gcloudServiceAccountLoginCommands = void 0;
40974
+
40975
+ var __1 = __nccwpck_require__(1344);
40976
+
40977
+ var context_1 = __nccwpck_require__(2041);
40978
+
40979
+ var gcloudServiceAccountLoginCommands = function (context) {
40980
+ return ["echo $".concat((0, context_1.getSecretVarNameForContext)(context, __1.GCLOUD_DEPLOY_CREDENTIALS_KEY), " > ./____keyfile.json\n "), "gcloud auth activate-service-account --key-file=\"./____keyfile.json\""];
40981
+ };
40982
+
40983
+ exports.gcloudServiceAccountLoginCommands = gcloudServiceAccountLoginCommands;
40984
+
40985
+ /***/ }),
40986
+
40754
40987
  /***/ 3539:
40755
40988
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
40756
40989
 
@@ -40760,7 +40993,7 @@ exports.getBaseRollbackJob = getBaseRollbackJob;
40760
40993
  exports.__esModule = true;
40761
40994
  exports.getCloudSQLConfig = exports.hasCloudSQL = void 0;
40762
40995
 
40763
- var types_1 = __nccwpck_require__(9702);
40996
+ var types_1 = __nccwpck_require__(3109);
40764
40997
 
40765
40998
  var hasCloudSQL = function (context) {
40766
40999
  var _a, _b;
@@ -40840,7 +41073,7 @@ var yarn_1 = __nccwpck_require__(464);
40840
41073
 
40841
41074
  var base_1 = __nccwpck_require__(9177);
40842
41075
 
40843
- var types_1 = __nccwpck_require__(9702);
41076
+ var types_1 = __nccwpck_require__(3109);
40844
41077
 
40845
41078
  var createCustomDeployJobs = function (context) {
40846
41079
  var deployConfig = context.componentConfig.deploy;
@@ -40858,17 +41091,11 @@ var createCustomDeployJobs = function (context) {
40858
41091
  var yarnInstall = (0, yarn_1.getYarnInstall)(context);
40859
41092
  return [(0, lodash_1.merge)({}, baseDeploymentJob, {
40860
41093
  image: deployConfig.image ? (0, __1.getRunnerImage)(deployConfig.image) : undefined,
40861
- script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(requiresYarnInstall(context) ? yarnInstall : []), false), __read(deployConfig.script), false)
41094
+ script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(deployConfig.requiresYarnInstall ? yarnInstall : []), false), __read(deployConfig.script), false)
40862
41095
  })];
40863
41096
  };
40864
41097
 
40865
41098
  exports.createCustomDeployJobs = createCustomDeployJobs;
40866
- var buildTypesThatRequireYarn = ["meteor", "node", "node-static", "storybook"];
40867
-
40868
- var requiresYarnInstall = function (context) {
40869
- var buildConfig = context.componentConfig.build;
40870
- return buildTypesThatRequireYarn.includes(buildConfig.type);
40871
- };
40872
41099
 
40873
41100
  /***/ }),
40874
41101
 
@@ -40921,21 +41148,26 @@ var __exportStar = this && this.__exportStar || function (m, exports) {
40921
41148
  exports.__esModule = true;
40922
41149
  exports.DEPLOY_TYPES = void 0;
40923
41150
 
41151
+ var cloudRun_1 = __nccwpck_require__(1344);
41152
+
40924
41153
  var custom_1 = __nccwpck_require__(5599);
40925
41154
 
40926
41155
  var kubernetes_1 = __nccwpck_require__(5682);
40927
41156
 
40928
41157
  __exportStar(__nccwpck_require__(5682), exports);
40929
41158
 
40930
- __exportStar(__nccwpck_require__(9702), exports);
41159
+ __exportStar(__nccwpck_require__(3109), exports);
40931
41160
 
40932
41161
  __exportStar(__nccwpck_require__(2757), exports);
40933
41162
 
40934
41163
  __exportStar(__nccwpck_require__(3539), exports);
40935
41164
 
41165
+ __exportStar(__nccwpck_require__(1344), exports);
41166
+
40936
41167
  exports.DEPLOY_TYPES = {
40937
41168
  kubernetes: kubernetes_1.KUBERNETES_DEPLOY_TYPE,
40938
- custom: custom_1.CUSTOM_DEPLOY_TYPE
41169
+ custom: custom_1.CUSTOM_DEPLOY_TYPE,
41170
+ "google-cloudrun": cloudRun_1.GCLOUD_RUN_DEPLOY_TYPE
40939
41171
  };
40940
41172
 
40941
41173
  /***/ }),
@@ -41065,7 +41297,7 @@ var runner_1 = __nccwpck_require__(5071);
41065
41297
 
41066
41298
  var base_1 = __nccwpck_require__(9177);
41067
41299
 
41068
- var types_1 = __nccwpck_require__(9702);
41300
+ var types_1 = __nccwpck_require__(3109);
41069
41301
 
41070
41302
  var kubeValues_1 = __nccwpck_require__(1061);
41071
41303
 
@@ -41201,7 +41433,7 @@ var __read = this && this.__read || function (o, n) {
41201
41433
  exports.__esModule = true;
41202
41434
  exports.createKubeEnv = void 0;
41203
41435
 
41204
- var types_1 = __nccwpck_require__(9702);
41436
+ var types_1 = __nccwpck_require__(3109);
41205
41437
 
41206
41438
  var shouldGoIntoSecrets = function (key, value) {
41207
41439
  var _a;
@@ -41276,7 +41508,7 @@ var utils_1 = __nccwpck_require__(7461);
41276
41508
 
41277
41509
  var cloudSql_1 = __nccwpck_require__(3539);
41278
41510
 
41279
- var types_1 = __nccwpck_require__(9702);
41511
+ var types_1 = __nccwpck_require__(3109);
41280
41512
 
41281
41513
  var cloudsql_1 = __nccwpck_require__(395);
41282
41514
 
@@ -41539,15 +41771,58 @@ exports.processSecretsAsFiles = processSecretsAsFiles;
41539
41771
 
41540
41772
  /***/ }),
41541
41773
 
41542
- /***/ 9702:
41774
+ /***/ 438:
41775
+ /***/ ((__unused_webpack_module, exports) => {
41776
+
41777
+ "use strict";
41778
+
41779
+
41780
+ exports.__esModule = true;
41781
+
41782
+ /***/ }),
41783
+
41784
+ /***/ 2689:
41543
41785
  /***/ ((__unused_webpack_module, exports) => {
41544
41786
 
41545
41787
  "use strict";
41546
41788
 
41547
41789
 
41790
+ exports.__esModule = true;
41791
+
41792
+ /***/ }),
41793
+
41794
+ /***/ 3109:
41795
+ /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
41796
+
41797
+ "use strict";
41798
+
41799
+
41800
+ var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
41801
+ if (k2 === undefined) k2 = k;
41802
+ Object.defineProperty(o, k2, {
41803
+ enumerable: true,
41804
+ get: function () {
41805
+ return m[k];
41806
+ }
41807
+ });
41808
+ } : function (o, m, k, k2) {
41809
+ if (k2 === undefined) k2 = k;
41810
+ o[k2] = m[k];
41811
+ });
41812
+
41813
+ var __exportStar = this && this.__exportStar || function (m, exports) {
41814
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
41815
+ };
41816
+
41548
41817
  exports.__esModule = true;
41549
41818
  exports.isOfDeployType = void 0;
41550
41819
 
41820
+ __exportStar(__nccwpck_require__(438), exports);
41821
+
41822
+ __exportStar(__nccwpck_require__(2689), exports);
41823
+
41824
+ __exportStar(__nccwpck_require__(5299), exports);
41825
+
41551
41826
  var isOfDeployType = function (t) {
41552
41827
  var types = [];
41553
41828
 
@@ -41562,6 +41837,16 @@ exports.isOfDeployType = isOfDeployType;
41562
41837
 
41563
41838
  /***/ }),
41564
41839
 
41840
+ /***/ 5299:
41841
+ /***/ ((__unused_webpack_module, exports) => {
41842
+
41843
+ "use strict";
41844
+
41845
+
41846
+ exports.__esModule = true;
41847
+
41848
+ /***/ }),
41849
+
41565
41850
  /***/ 2757:
41566
41851
  /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
41567
41852
 
@@ -41571,7 +41856,7 @@ exports.isOfDeployType = isOfDeployType;
41571
41856
  exports.__esModule = true;
41572
41857
  exports.contextIsStoppable = exports.getKubernetesNamespace = exports.getFullKubernetesClusterName = void 0;
41573
41858
 
41574
- var types_1 = __nccwpck_require__(9702);
41859
+ var types_1 = __nccwpck_require__(3109);
41575
41860
 
41576
41861
  var getFullKubernetesClusterName = function (cluster) {
41577
41862
  if (cluster.type === "gcloud") {