@catladder/cli 0.0.0-main-8baf8f32 → 0.0.0-main-8e6e0805
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/dist/apps/cli/commands/project/commandOpenDashboard.js +19 -20
- package/dist/apps/cli/commands/project/commandOpenDashboard.js.map +1 -1
- package/dist/apps/cli/commands/project/commandOpenLogs.js +7 -20
- package/dist/apps/cli/commands/project/commandOpenLogs.js.map +1 -1
- package/dist/bundles/catenv/index.js +1 -1
- package/dist/bundles/cli/index.js +271 -119
- package/dist/gcloud/cloudRun/getCloudRunDomainSuffix.js +1 -1
- package/dist/gcloud/cloudRun/getCloudRunDomainSuffix.js.map +1 -1
- package/dist/gcloud/cloudRun/openCloudRunDashboards.d.ts +3 -0
- package/dist/gcloud/cloudRun/openCloudRunDashboards.js +62 -0
- package/dist/gcloud/cloudRun/openCloudRunDashboards.js.map +1 -0
- package/dist/gcloud/openDashboard.d.ts +2 -0
- package/dist/{apps/cli/commands/shared/index.js → gcloud/openDashboard.js} +23 -27
- package/dist/gcloud/openDashboard.js.map +1 -0
- package/dist/kubernetes/openKubernetesDashboards.d.ts +4 -0
- package/dist/kubernetes/openKubernetesDashboards.js +94 -0
- package/dist/kubernetes/openKubernetesDashboards.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/apps/cli/commands/project/commandOpenDashboard.ts +11 -31
- package/src/apps/cli/commands/project/commandOpenLogs.ts +3 -34
- package/src/gcloud/cloudRun/getCloudRunDomainSuffix.ts +2 -1
- package/src/gcloud/cloudRun/openCloudRunDashboards.ts +22 -0
- package/src/gcloud/openDashboard.ts +19 -0
- package/src/kubernetes/openKubernetesDashboards.ts +52 -0
- package/dist/apps/cli/commands/shared/index.d.ts +0 -3
- package/dist/apps/cli/commands/shared/index.js.map +0 -1
- package/src/apps/cli/commands/shared/index.ts +0 -32
|
@@ -36,9 +36,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
exports.__esModule = true;
|
|
39
|
+
var pipeline_1 = require("@catladder/pipeline");
|
|
39
40
|
var getProjectConfig_1 = require("../../../../config/getProjectConfig");
|
|
40
|
-
var
|
|
41
|
-
var
|
|
41
|
+
var openCloudRunDashboards_1 = require("../../../../gcloud/cloudRun/openCloudRunDashboards");
|
|
42
|
+
var openKubernetesDashboards_1 = require("../../../../kubernetes/openKubernetesDashboards");
|
|
42
43
|
var autocompletions_1 = require("./utils/autocompletions");
|
|
43
44
|
exports["default"] = (function (vorpal) { return __awaiter(void 0, void 0, void 0, function () {
|
|
44
45
|
var _a, _b;
|
|
@@ -46,35 +47,33 @@ exports["default"] = (function (vorpal) { return __awaiter(void 0, void 0, void
|
|
|
46
47
|
switch (_c.label) {
|
|
47
48
|
case 0:
|
|
48
49
|
_b = (_a = vorpal
|
|
49
|
-
.command("project-open-dashboard <envComponent>", "open
|
|
50
|
+
.command("project-open-dashboard <envComponent>", "open an apps dashboard (kubernetes or cloudrun)"))
|
|
50
51
|
.autocomplete;
|
|
51
52
|
return [4 /*yield*/, (0, autocompletions_1.envAndComponents)()];
|
|
52
53
|
case 1: return [2 /*return*/, _b.apply(_a, [_c.sent()])
|
|
53
54
|
.action(function (_a) {
|
|
54
55
|
var envComponent = _a.envComponent;
|
|
55
56
|
return __awaiter(this, void 0, void 0, function () {
|
|
56
|
-
var _b, env, componentName,
|
|
57
|
-
return __generator(this, function (
|
|
58
|
-
switch (
|
|
57
|
+
var _b, env, componentName, context;
|
|
58
|
+
return __generator(this, function (_c) {
|
|
59
|
+
switch (_c.label) {
|
|
59
60
|
case 0:
|
|
60
61
|
_b = (0, getProjectConfig_1.parseChoice)(envComponent), env = _b.env, componentName = _b.componentName;
|
|
61
62
|
return [4 /*yield*/, (0, getProjectConfig_1.getPipelineContextByChoice)(env, componentName)];
|
|
62
63
|
case 1:
|
|
63
|
-
|
|
64
|
-
if (!componentConfig.deploy
|
|
65
|
-
|
|
66
|
-
throw new Error("only kubernetes deployments are supported at the moment");
|
|
67
|
-
}
|
|
68
|
-
if (!componentConfig.deploy.cluster ||
|
|
69
|
-
componentConfig.deploy.cluster.type !== "gcloud") {
|
|
70
|
-
throw new Error("no gcloud custer configured");
|
|
71
|
-
}
|
|
72
|
-
namespace = environment.envVars.KUBE_NAMESPACE;
|
|
73
|
-
return [4 /*yield*/, getGoogleAuthUserNumber_1.getGoogleAuthUserNumber.call(this, vorpal)];
|
|
64
|
+
context = _c.sent();
|
|
65
|
+
if (!(0, pipeline_1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) return [3 /*break*/, 3];
|
|
66
|
+
return [4 /*yield*/, (0, openKubernetesDashboards_1.openGoogleCloudKubernetesDashboard)(this, context)];
|
|
74
67
|
case 2:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
68
|
+
_c.sent();
|
|
69
|
+
_c.label = 3;
|
|
70
|
+
case 3:
|
|
71
|
+
if (!(0, pipeline_1.isOfDeployType)(context.componentConfig.deploy, "google-cloudrun")) return [3 /*break*/, 5];
|
|
72
|
+
return [4 /*yield*/, (0, openCloudRunDashboards_1.openGoogleCloudRunDashboard)(this, context)];
|
|
73
|
+
case 4:
|
|
74
|
+
_c.sent();
|
|
75
|
+
_c.label = 5;
|
|
76
|
+
case 5: return [2 /*return*/];
|
|
78
77
|
}
|
|
79
78
|
});
|
|
80
79
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commandOpenDashboard.js","sourceRoot":"","sources":["../../../../../src/apps/cli/commands/project/commandOpenDashboard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"commandOpenDashboard.js","sourceRoot":"","sources":["../../../../../src/apps/cli/commands/project/commandOpenDashboard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAqD;AAErD,wEAG6C;AAC7C,6FAAiG;AACjG,4FAAqG;AAErG,2DAA2D;AAE3D,sBAAe,UAAO,MAAc;;;;;gBAClC,KAAA,CAAA,KAAA,MAAM;qBACH,OAAO,CACN,uCAAuC,EACvC,iDAAiD,CAClD,CAAA;qBACA,YAAY,CAAA;gBAAC,qBAAM,IAAA,kCAAgB,GAAE,EAAA;oBALxC,sBAAA,cAKgB,SAAwB,EAAC;qBACtC,MAAM,CAAC,UAAgB,EAAgB;wBAAd,YAAY,kBAAA;;;;;;oCAC9B,KAAyB,IAAA,8BAAW,EAAC,YAAY,CAAC,EAAhD,GAAG,SAAA,EAAE,aAAa,mBAAA,CAA+B;oCACzC,qBAAM,IAAA,6CAA0B,EAAC,GAAG,EAAE,aAAa,CAAC,EAAA;;oCAA9D,OAAO,GAAG,SAAoD;yCAChE,IAAA,yBAAc,EAAC,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,YAAY,CAAC,EAA5D,wBAA4D;oCAC9D,qBAAM,IAAA,6DAAkC,EAAC,IAAI,EAAE,OAAO,CAAC,EAAA;;oCAAvD,SAAuD,CAAC;;;yCAEtD,IAAA,yBAAc,EAAC,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,iBAAiB,CAAC,EAAjE,wBAAiE;oCACnE,qBAAM,IAAA,oDAA2B,EAAC,IAAI,EAAE,OAAO,CAAC,EAAA;;oCAAhD,SAAgD,CAAC;;;;;;iBAEpD,CAAC,EAAA;;;KAAA,EAAC"}
|
|
@@ -37,8 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
exports.__esModule = true;
|
|
39
39
|
var getProjectConfig_1 = require("../../../../config/getProjectConfig");
|
|
40
|
-
var
|
|
41
|
-
var shared_1 = require("../shared");
|
|
40
|
+
var openKubernetesDashboards_1 = require("../../../../kubernetes/openKubernetesDashboards");
|
|
42
41
|
var autocompletions_1 = require("./utils/autocompletions");
|
|
43
42
|
exports["default"] = (function (vorpal) { return __awaiter(void 0, void 0, void 0, function () {
|
|
44
43
|
var _a, _b;
|
|
@@ -53,29 +52,17 @@ exports["default"] = (function (vorpal) { return __awaiter(void 0, void 0, void
|
|
|
53
52
|
.action(function (_a) {
|
|
54
53
|
var envComponent = _a.envComponent;
|
|
55
54
|
return __awaiter(this, void 0, void 0, function () {
|
|
56
|
-
var _b, env, componentName,
|
|
57
|
-
return __generator(this, function (
|
|
58
|
-
switch (
|
|
55
|
+
var _b, env, componentName, context;
|
|
56
|
+
return __generator(this, function (_c) {
|
|
57
|
+
switch (_c.label) {
|
|
59
58
|
case 0:
|
|
60
59
|
_b = (0, getProjectConfig_1.parseChoice)(envComponent), env = _b.env, componentName = _b.componentName;
|
|
61
60
|
return [4 /*yield*/, (0, getProjectConfig_1.getPipelineContextByChoice)(env, componentName)];
|
|
62
61
|
case 1:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
componentConfig.deploy.type !== "kubernetes") {
|
|
66
|
-
throw new Error("only kubernetes deployments are supported at the moment");
|
|
67
|
-
}
|
|
68
|
-
if (!componentConfig.deploy.cluster ||
|
|
69
|
-
componentConfig.deploy.cluster.type !== "gcloud") {
|
|
70
|
-
throw new Error("no gcloud custer configured");
|
|
71
|
-
}
|
|
72
|
-
namespace = environment.envVars.KUBE_NAMESPACE;
|
|
73
|
-
return [4 /*yield*/, getGoogleAuthUserNumber_1.getGoogleAuthUserNumber.call(this, vorpal)];
|
|
62
|
+
context = _c.sent();
|
|
63
|
+
return [4 /*yield*/, (0, openKubernetesDashboards_1.openGoogleCloudLogs)(this, context)];
|
|
74
64
|
case 2:
|
|
75
|
-
|
|
76
|
-
return [4 /*yield*/, (0, shared_1.openGoogleCloudLogs)(componentConfig.deploy.cluster, namespace, authGoogleNumber)];
|
|
77
|
-
case 3:
|
|
78
|
-
_d.sent();
|
|
65
|
+
_c.sent();
|
|
79
66
|
return [2 /*return*/];
|
|
80
67
|
}
|
|
81
68
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commandOpenLogs.js","sourceRoot":"","sources":["../../../../../src/apps/cli/commands/project/commandOpenLogs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,wEAG6C;
|
|
1
|
+
{"version":3,"file":"commandOpenLogs.js","sourceRoot":"","sources":["../../../../../src/apps/cli/commands/project/commandOpenLogs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,wEAG6C;AAC7C,4FAAsF;AACtF,2DAA2D;AAE3D,sBAAe,UAAO,MAAc;;;;;gBAClC,KAAA,CAAA,KAAA,MAAM;qBACH,OAAO,CACN,kCAAkC,EAClC,2CAA2C,CAC5C,CAAA;qBACA,YAAY,CAAA;gBAAC,qBAAM,IAAA,kCAAgB,GAAE,EAAA;oBALxC,sBAAA,cAKgB,SAAwB,EAAC;qBACtC,MAAM,CAAC,UAAgB,EAAgB;wBAAd,YAAY,kBAAA;;;;;;oCAC9B,KAAyB,IAAA,8BAAW,EAAC,YAAY,CAAC,EAAhD,GAAG,SAAA,EAAE,aAAa,mBAAA,CAA+B;oCACzC,qBAAM,IAAA,6CAA0B,EAAC,GAAG,EAAE,aAAa,CAAC,EAAA;;oCAA9D,OAAO,GAAG,SAAoD;oCAEpE,qBAAM,IAAA,8CAAmB,EAAC,IAAI,EAAE,OAAO,CAAC,EAAA;;oCAAxC,SAAwC,CAAC;;;;;iBAC1C,CAAC,EAAA;;;KAAA,EAAC"}
|
|
@@ -39822,7 +39822,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
39822
39822
|
|
|
39823
39823
|
exports.__esModule = true;
|
|
39824
39824
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
39825
|
-
exports.PIPELINE_IMAGE_TAG = "main-
|
|
39825
|
+
exports.PIPELINE_IMAGE_TAG = "main-8e6e0805" || 0;
|
|
39826
39826
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
39827
39827
|
|
|
39828
39828
|
/***/ }),
|
|
@@ -2773,9 +2773,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
2773
2773
|
}
|
|
2774
2774
|
};
|
|
2775
2775
|
exports.__esModule = true;
|
|
2776
|
+
var pipeline_1 = __nccwpck_require__(25355);
|
|
2776
2777
|
var getProjectConfig_1 = __nccwpck_require__(24146);
|
|
2777
|
-
var
|
|
2778
|
-
var
|
|
2778
|
+
var openCloudRunDashboards_1 = __nccwpck_require__(20485);
|
|
2779
|
+
var openKubernetesDashboards_1 = __nccwpck_require__(45093);
|
|
2779
2780
|
var autocompletions_1 = __nccwpck_require__(41373);
|
|
2780
2781
|
exports["default"] = (function (vorpal) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2781
2782
|
var _a, _b;
|
|
@@ -2783,35 +2784,33 @@ exports["default"] = (function (vorpal) { return __awaiter(void 0, void 0, void
|
|
|
2783
2784
|
switch (_c.label) {
|
|
2784
2785
|
case 0:
|
|
2785
2786
|
_b = (_a = vorpal
|
|
2786
|
-
.command("project-open-dashboard <envComponent>", "open
|
|
2787
|
+
.command("project-open-dashboard <envComponent>", "open an apps dashboard (kubernetes or cloudrun)"))
|
|
2787
2788
|
.autocomplete;
|
|
2788
2789
|
return [4 /*yield*/, (0, autocompletions_1.envAndComponents)()];
|
|
2789
2790
|
case 1: return [2 /*return*/, _b.apply(_a, [_c.sent()])
|
|
2790
2791
|
.action(function (_a) {
|
|
2791
2792
|
var envComponent = _a.envComponent;
|
|
2792
2793
|
return __awaiter(this, void 0, void 0, function () {
|
|
2793
|
-
var _b, env, componentName,
|
|
2794
|
-
return __generator(this, function (
|
|
2795
|
-
switch (
|
|
2794
|
+
var _b, env, componentName, context;
|
|
2795
|
+
return __generator(this, function (_c) {
|
|
2796
|
+
switch (_c.label) {
|
|
2796
2797
|
case 0:
|
|
2797
2798
|
_b = (0, getProjectConfig_1.parseChoice)(envComponent), env = _b.env, componentName = _b.componentName;
|
|
2798
2799
|
return [4 /*yield*/, (0, getProjectConfig_1.getPipelineContextByChoice)(env, componentName)];
|
|
2799
2800
|
case 1:
|
|
2800
|
-
|
|
2801
|
-
if (!componentConfig.deploy
|
|
2802
|
-
|
|
2803
|
-
throw new Error("only kubernetes deployments are supported at the moment");
|
|
2804
|
-
}
|
|
2805
|
-
if (!componentConfig.deploy.cluster ||
|
|
2806
|
-
componentConfig.deploy.cluster.type !== "gcloud") {
|
|
2807
|
-
throw new Error("no gcloud custer configured");
|
|
2808
|
-
}
|
|
2809
|
-
namespace = environment.envVars.KUBE_NAMESPACE;
|
|
2810
|
-
return [4 /*yield*/, getGoogleAuthUserNumber_1.getGoogleAuthUserNumber.call(this, vorpal)];
|
|
2801
|
+
context = _c.sent();
|
|
2802
|
+
if (!(0, pipeline_1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) return [3 /*break*/, 3];
|
|
2803
|
+
return [4 /*yield*/, (0, openKubernetesDashboards_1.openGoogleCloudKubernetesDashboard)(this, context)];
|
|
2811
2804
|
case 2:
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2805
|
+
_c.sent();
|
|
2806
|
+
_c.label = 3;
|
|
2807
|
+
case 3:
|
|
2808
|
+
if (!(0, pipeline_1.isOfDeployType)(context.componentConfig.deploy, "google-cloudrun")) return [3 /*break*/, 5];
|
|
2809
|
+
return [4 /*yield*/, (0, openCloudRunDashboards_1.openGoogleCloudRunDashboard)(this, context)];
|
|
2810
|
+
case 4:
|
|
2811
|
+
_c.sent();
|
|
2812
|
+
_c.label = 5;
|
|
2813
|
+
case 5: return [2 /*return*/];
|
|
2815
2814
|
}
|
|
2816
2815
|
});
|
|
2817
2816
|
});
|
|
@@ -3213,8 +3212,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
3213
3212
|
};
|
|
3214
3213
|
exports.__esModule = true;
|
|
3215
3214
|
var getProjectConfig_1 = __nccwpck_require__(24146);
|
|
3216
|
-
var
|
|
3217
|
-
var shared_1 = __nccwpck_require__(90517);
|
|
3215
|
+
var openKubernetesDashboards_1 = __nccwpck_require__(45093);
|
|
3218
3216
|
var autocompletions_1 = __nccwpck_require__(41373);
|
|
3219
3217
|
exports["default"] = (function (vorpal) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3220
3218
|
var _a, _b;
|
|
@@ -3229,29 +3227,17 @@ exports["default"] = (function (vorpal) { return __awaiter(void 0, void 0, void
|
|
|
3229
3227
|
.action(function (_a) {
|
|
3230
3228
|
var envComponent = _a.envComponent;
|
|
3231
3229
|
return __awaiter(this, void 0, void 0, function () {
|
|
3232
|
-
var _b, env, componentName,
|
|
3233
|
-
return __generator(this, function (
|
|
3234
|
-
switch (
|
|
3230
|
+
var _b, env, componentName, context;
|
|
3231
|
+
return __generator(this, function (_c) {
|
|
3232
|
+
switch (_c.label) {
|
|
3235
3233
|
case 0:
|
|
3236
3234
|
_b = (0, getProjectConfig_1.parseChoice)(envComponent), env = _b.env, componentName = _b.componentName;
|
|
3237
3235
|
return [4 /*yield*/, (0, getProjectConfig_1.getPipelineContextByChoice)(env, componentName)];
|
|
3238
3236
|
case 1:
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
componentConfig.deploy.type !== "kubernetes") {
|
|
3242
|
-
throw new Error("only kubernetes deployments are supported at the moment");
|
|
3243
|
-
}
|
|
3244
|
-
if (!componentConfig.deploy.cluster ||
|
|
3245
|
-
componentConfig.deploy.cluster.type !== "gcloud") {
|
|
3246
|
-
throw new Error("no gcloud custer configured");
|
|
3247
|
-
}
|
|
3248
|
-
namespace = environment.envVars.KUBE_NAMESPACE;
|
|
3249
|
-
return [4 /*yield*/, getGoogleAuthUserNumber_1.getGoogleAuthUserNumber.call(this, vorpal)];
|
|
3237
|
+
context = _c.sent();
|
|
3238
|
+
return [4 /*yield*/, (0, openKubernetesDashboards_1.openGoogleCloudLogs)(this, context)];
|
|
3250
3239
|
case 2:
|
|
3251
|
-
|
|
3252
|
-
return [4 /*yield*/, (0, shared_1.openGoogleCloudLogs)(componentConfig.deploy.cluster, namespace, authGoogleNumber)];
|
|
3253
|
-
case 3:
|
|
3254
|
-
_d.sent();
|
|
3240
|
+
_c.sent();
|
|
3255
3241
|
return [2 /*return*/];
|
|
3256
3242
|
}
|
|
3257
3243
|
});
|
|
@@ -4794,83 +4780,6 @@ exports.showProjectBanner = showProjectBanner;
|
|
|
4794
4780
|
|
|
4795
4781
|
/***/ }),
|
|
4796
4782
|
|
|
4797
|
-
/***/ 90517:
|
|
4798
|
-
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
4799
|
-
|
|
4800
|
-
"use strict";
|
|
4801
|
-
|
|
4802
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4803
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4804
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4805
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
4806
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
4807
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
4808
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
4809
|
-
});
|
|
4810
|
-
};
|
|
4811
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
4812
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
4813
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
4814
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
4815
|
-
function step(op) {
|
|
4816
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
4817
|
-
while (_) try {
|
|
4818
|
-
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;
|
|
4819
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
4820
|
-
switch (op[0]) {
|
|
4821
|
-
case 0: case 1: t = op; break;
|
|
4822
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
4823
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
4824
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
4825
|
-
default:
|
|
4826
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
4827
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
4828
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
4829
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
4830
|
-
if (t[2]) _.ops.pop();
|
|
4831
|
-
_.trys.pop(); continue;
|
|
4832
|
-
}
|
|
4833
|
-
op = body.call(thisArg, _);
|
|
4834
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
4835
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
4836
|
-
}
|
|
4837
|
-
};
|
|
4838
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4839
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4840
|
-
};
|
|
4841
|
-
exports.__esModule = true;
|
|
4842
|
-
exports.openGoogleCloudKubernetesDashboard = exports.openGoogleCloudLogs = void 0;
|
|
4843
|
-
var open_1 = __importDefault(__nccwpck_require__(14247));
|
|
4844
|
-
var openGoogleCloudLogs = function (cluster, namespace, googleAuthUserNumber) {
|
|
4845
|
-
if (googleAuthUserNumber === void 0) { googleAuthUserNumber = 0; }
|
|
4846
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
4847
|
-
var resource, url;
|
|
4848
|
-
return __generator(this, function (_a) {
|
|
4849
|
-
resource = "k8s_container/cluster_name/".concat(cluster.name).concat(namespace ? "/namespace_name/".concat(namespace) : "");
|
|
4850
|
-
url = "https://console.cloud.google.com/logs/viewer?project=".concat(cluster.projectId).concat(resource ? "&resource=".concat(encodeURIComponent(resource)) : "", "&authuser=").concat(googleAuthUserNumber);
|
|
4851
|
-
(0, open_1["default"])(url);
|
|
4852
|
-
return [2 /*return*/];
|
|
4853
|
-
});
|
|
4854
|
-
});
|
|
4855
|
-
};
|
|
4856
|
-
exports.openGoogleCloudLogs = openGoogleCloudLogs;
|
|
4857
|
-
var openGoogleCloudKubernetesDashboard = function (cluster, namespace, googleAuthUserNumber) {
|
|
4858
|
-
if (googleAuthUserNumber === void 0) { googleAuthUserNumber = 0; }
|
|
4859
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
4860
|
-
var pageState, url;
|
|
4861
|
-
return __generator(this, function (_a) {
|
|
4862
|
-
pageState = "(\"savedViews\":(\"c\":[\"gke/".concat(cluster.region, "/").concat(cluster.name, "\"],\"n\":[\"").concat(namespace, "\"],\"i\":\"4e42e0b9cd6147f8a4fba7516752ec48\"))");
|
|
4863
|
-
url = "https://console.cloud.google.com/kubernetes/workload?authuser=".concat(googleAuthUserNumber, "&project=").concat(cluster.projectId, "&pageState=").concat(encodeURIComponent(pageState));
|
|
4864
|
-
(0, open_1["default"])(url);
|
|
4865
|
-
return [2 /*return*/];
|
|
4866
|
-
});
|
|
4867
|
-
});
|
|
4868
|
-
};
|
|
4869
|
-
exports.openGoogleCloudKubernetesDashboard = openGoogleCloudKubernetesDashboard;
|
|
4870
|
-
//# sourceMappingURL=index.js.map
|
|
4871
|
-
|
|
4872
|
-
/***/ }),
|
|
4873
|
-
|
|
4874
4783
|
/***/ 36265:
|
|
4875
4784
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
4876
4785
|
|
|
@@ -6196,7 +6105,7 @@ var getCloudRunDomainSuffix = function (config) { return __awaiter(void 0, void
|
|
|
6196
6105
|
return __generator(this, function (_a) {
|
|
6197
6106
|
switch (_a.label) {
|
|
6198
6107
|
case 0:
|
|
6199
|
-
dummyServiceName = "cl-dummy-service";
|
|
6108
|
+
dummyServiceName = "cl-dummy-service-delete-me";
|
|
6200
6109
|
return [4 /*yield*/, (0, child_process_promise_1.exec)("gcloud run services list --format=json --project=\"".concat(config.projectId, "\" --region=").concat(config.region, " --limit=1")).then(function (r) { return JSON.parse(r.stdout); })];
|
|
6201
6110
|
case 1:
|
|
6202
6111
|
existingServices = _a.sent();
|
|
@@ -6216,6 +6125,75 @@ exports.getCloudRunDomainSuffix = getCloudRunDomainSuffix;
|
|
|
6216
6125
|
|
|
6217
6126
|
/***/ }),
|
|
6218
6127
|
|
|
6128
|
+
/***/ 20485:
|
|
6129
|
+
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
6130
|
+
|
|
6131
|
+
"use strict";
|
|
6132
|
+
|
|
6133
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6134
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6135
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6136
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6137
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6138
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
6139
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
6140
|
+
});
|
|
6141
|
+
};
|
|
6142
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
6143
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
6144
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
6145
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
6146
|
+
function step(op) {
|
|
6147
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
6148
|
+
while (_) try {
|
|
6149
|
+
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;
|
|
6150
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
6151
|
+
switch (op[0]) {
|
|
6152
|
+
case 0: case 1: t = op; break;
|
|
6153
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
6154
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
6155
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
6156
|
+
default:
|
|
6157
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
6158
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
6159
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
6160
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
6161
|
+
if (t[2]) _.ops.pop();
|
|
6162
|
+
_.trys.pop(); continue;
|
|
6163
|
+
}
|
|
6164
|
+
op = body.call(thisArg, _);
|
|
6165
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
6166
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
6167
|
+
}
|
|
6168
|
+
};
|
|
6169
|
+
exports.__esModule = true;
|
|
6170
|
+
exports.openGoogleCloudRunDashboard = void 0;
|
|
6171
|
+
var pipeline_1 = __nccwpck_require__(25355);
|
|
6172
|
+
var openDashboard_1 = __nccwpck_require__(41087);
|
|
6173
|
+
var openGoogleCloudRunDashboard = function (instance, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6174
|
+
var fullName, _a, region, projectId;
|
|
6175
|
+
return __generator(this, function (_b) {
|
|
6176
|
+
switch (_b.label) {
|
|
6177
|
+
case 0:
|
|
6178
|
+
if (!(0, pipeline_1.isOfDeployType)(context.componentConfig.deploy, "google-cloudrun")) {
|
|
6179
|
+
throw new Error("deploy type is not google-cloudrun ");
|
|
6180
|
+
}
|
|
6181
|
+
fullName = context.environment.fullName;
|
|
6182
|
+
_a = context.componentConfig.deploy, region = _a.region, projectId = _a.projectId;
|
|
6183
|
+
return [4 /*yield*/, (0, openDashboard_1.openGoogleCloudDashboard)(instance, "run/detail/".concat(region, "/").concat(fullName, "/metrics"), {
|
|
6184
|
+
project: projectId
|
|
6185
|
+
})];
|
|
6186
|
+
case 1:
|
|
6187
|
+
_b.sent();
|
|
6188
|
+
return [2 /*return*/];
|
|
6189
|
+
}
|
|
6190
|
+
});
|
|
6191
|
+
}); };
|
|
6192
|
+
exports.openGoogleCloudRunDashboard = openGoogleCloudRunDashboard;
|
|
6193
|
+
//# sourceMappingURL=openCloudRunDashboards.js.map
|
|
6194
|
+
|
|
6195
|
+
/***/ }),
|
|
6196
|
+
|
|
6219
6197
|
/***/ 4895:
|
|
6220
6198
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
6221
6199
|
|
|
@@ -6286,6 +6264,79 @@ exports.enableGCloudServices = enableGCloudServices;
|
|
|
6286
6264
|
|
|
6287
6265
|
/***/ }),
|
|
6288
6266
|
|
|
6267
|
+
/***/ 41087:
|
|
6268
|
+
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
6269
|
+
|
|
6270
|
+
"use strict";
|
|
6271
|
+
|
|
6272
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6273
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6274
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6275
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6276
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6277
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
6278
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
6279
|
+
});
|
|
6280
|
+
};
|
|
6281
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
6282
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
6283
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
6284
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
6285
|
+
function step(op) {
|
|
6286
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
6287
|
+
while (_) try {
|
|
6288
|
+
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;
|
|
6289
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
6290
|
+
switch (op[0]) {
|
|
6291
|
+
case 0: case 1: t = op; break;
|
|
6292
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
6293
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
6294
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
6295
|
+
default:
|
|
6296
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
6297
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
6298
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
6299
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
6300
|
+
if (t[2]) _.ops.pop();
|
|
6301
|
+
_.trys.pop(); continue;
|
|
6302
|
+
}
|
|
6303
|
+
op = body.call(thisArg, _);
|
|
6304
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
6305
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
6306
|
+
}
|
|
6307
|
+
};
|
|
6308
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6309
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6310
|
+
};
|
|
6311
|
+
exports.__esModule = true;
|
|
6312
|
+
exports.openGoogleCloudDashboard = void 0;
|
|
6313
|
+
var getGoogleAuthUserNumber_1 = __nccwpck_require__(35461);
|
|
6314
|
+
var open_1 = __importDefault(__nccwpck_require__(14247));
|
|
6315
|
+
var openGoogleCloudDashboard = function (instance, path, params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6316
|
+
var url, _i, _a, _b, key, value, googleAuthUserNumber;
|
|
6317
|
+
return __generator(this, function (_c) {
|
|
6318
|
+
switch (_c.label) {
|
|
6319
|
+
case 0:
|
|
6320
|
+
url = new URL("https://console.cloud.google.com/");
|
|
6321
|
+
url.pathname = path;
|
|
6322
|
+
for (_i = 0, _a = Object.entries(params); _i < _a.length; _i++) {
|
|
6323
|
+
_b = _a[_i], key = _b[0], value = _b[1];
|
|
6324
|
+
url.searchParams.set(key, value);
|
|
6325
|
+
}
|
|
6326
|
+
return [4 /*yield*/, getGoogleAuthUserNumber_1.getGoogleAuthUserNumber.call(instance)];
|
|
6327
|
+
case 1:
|
|
6328
|
+
googleAuthUserNumber = _c.sent();
|
|
6329
|
+
url.searchParams.set("authuser", googleAuthUserNumber);
|
|
6330
|
+
(0, open_1["default"])(url.toString());
|
|
6331
|
+
return [2 /*return*/];
|
|
6332
|
+
}
|
|
6333
|
+
});
|
|
6334
|
+
}); };
|
|
6335
|
+
exports.openGoogleCloudDashboard = openGoogleCloudDashboard;
|
|
6336
|
+
//# sourceMappingURL=openDashboard.js.map
|
|
6337
|
+
|
|
6338
|
+
/***/ }),
|
|
6339
|
+
|
|
6289
6340
|
/***/ 79772:
|
|
6290
6341
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
6291
6342
|
|
|
@@ -6568,6 +6619,107 @@ exports.getProjectPodNames = getProjectPodNames;
|
|
|
6568
6619
|
|
|
6569
6620
|
/***/ }),
|
|
6570
6621
|
|
|
6622
|
+
/***/ 45093:
|
|
6623
|
+
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
6624
|
+
|
|
6625
|
+
"use strict";
|
|
6626
|
+
|
|
6627
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6628
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6629
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6630
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6631
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6632
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
6633
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
6634
|
+
});
|
|
6635
|
+
};
|
|
6636
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
6637
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
6638
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
6639
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
6640
|
+
function step(op) {
|
|
6641
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
6642
|
+
while (_) try {
|
|
6643
|
+
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;
|
|
6644
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
6645
|
+
switch (op[0]) {
|
|
6646
|
+
case 0: case 1: t = op; break;
|
|
6647
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
6648
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
6649
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
6650
|
+
default:
|
|
6651
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
6652
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
6653
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
6654
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
6655
|
+
if (t[2]) _.ops.pop();
|
|
6656
|
+
_.trys.pop(); continue;
|
|
6657
|
+
}
|
|
6658
|
+
op = body.call(thisArg, _);
|
|
6659
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
6660
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
6661
|
+
}
|
|
6662
|
+
};
|
|
6663
|
+
exports.__esModule = true;
|
|
6664
|
+
exports.openGoogleCloudKubernetesDashboard = exports.openGoogleCloudLogs = void 0;
|
|
6665
|
+
var pipeline_1 = __nccwpck_require__(25355);
|
|
6666
|
+
var openDashboard_1 = __nccwpck_require__(41087);
|
|
6667
|
+
var openGoogleCloudLogs = function (instance, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6668
|
+
var deployConfig, namespace, cluster, resource;
|
|
6669
|
+
return __generator(this, function (_a) {
|
|
6670
|
+
switch (_a.label) {
|
|
6671
|
+
case 0:
|
|
6672
|
+
deployConfig = context.componentConfig.deploy;
|
|
6673
|
+
if (!(0, pipeline_1.isOfDeployType)(deployConfig, "kubernetes")) {
|
|
6674
|
+
throw new Error("context is not of type kubernetes");
|
|
6675
|
+
}
|
|
6676
|
+
if (!deployConfig.cluster || deployConfig.cluster.type !== "gcloud") {
|
|
6677
|
+
throw new Error("no gcloud custer configured");
|
|
6678
|
+
}
|
|
6679
|
+
namespace = context.environment.envVars.KUBE_NAMESPACE;
|
|
6680
|
+
cluster = deployConfig.cluster;
|
|
6681
|
+
resource = "k8s_container/cluster_name/".concat(cluster.name).concat(namespace ? "/namespace_name/".concat(namespace) : "");
|
|
6682
|
+
return [4 /*yield*/, (0, openDashboard_1.openGoogleCloudDashboard)(instance, "logs/viewer", {
|
|
6683
|
+
project: cluster.projectId,
|
|
6684
|
+
resource: resource
|
|
6685
|
+
})];
|
|
6686
|
+
case 1:
|
|
6687
|
+
_a.sent();
|
|
6688
|
+
return [2 /*return*/];
|
|
6689
|
+
}
|
|
6690
|
+
});
|
|
6691
|
+
}); };
|
|
6692
|
+
exports.openGoogleCloudLogs = openGoogleCloudLogs;
|
|
6693
|
+
var openGoogleCloudKubernetesDashboard = function (instance, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6694
|
+
var deployConfig, namespace, cluster, pageState;
|
|
6695
|
+
return __generator(this, function (_a) {
|
|
6696
|
+
switch (_a.label) {
|
|
6697
|
+
case 0:
|
|
6698
|
+
deployConfig = context.componentConfig.deploy;
|
|
6699
|
+
if (!(0, pipeline_1.isOfDeployType)(deployConfig, "kubernetes")) {
|
|
6700
|
+
throw new Error("context is not of type kubernetes");
|
|
6701
|
+
}
|
|
6702
|
+
if (!deployConfig.cluster || deployConfig.cluster.type !== "gcloud") {
|
|
6703
|
+
throw new Error("no gcloud custer configured");
|
|
6704
|
+
}
|
|
6705
|
+
namespace = context.environment.envVars.KUBE_NAMESPACE;
|
|
6706
|
+
cluster = deployConfig.cluster;
|
|
6707
|
+
pageState = "(\"savedViews\":(\"c\":[\"gke/".concat(cluster.region, "/").concat(cluster.name, "\"],\"n\":[\"").concat(namespace, "\"],\"i\":\"4e42e0b9cd6147f8a4fba7516752ec48\"))");
|
|
6708
|
+
return [4 /*yield*/, (0, openDashboard_1.openGoogleCloudDashboard)(instance, "kubernetes/workload", {
|
|
6709
|
+
project: cluster.projectId,
|
|
6710
|
+
pageState: pageState
|
|
6711
|
+
})];
|
|
6712
|
+
case 1:
|
|
6713
|
+
_a.sent();
|
|
6714
|
+
return [2 /*return*/];
|
|
6715
|
+
}
|
|
6716
|
+
});
|
|
6717
|
+
}); };
|
|
6718
|
+
exports.openGoogleCloudKubernetesDashboard = openGoogleCloudKubernetesDashboard;
|
|
6719
|
+
//# sourceMappingURL=openKubernetesDashboards.js.map
|
|
6720
|
+
|
|
6721
|
+
/***/ }),
|
|
6722
|
+
|
|
6571
6723
|
/***/ 71628:
|
|
6572
6724
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
6573
6725
|
|
|
@@ -350695,7 +350847,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
350695
350847
|
|
|
350696
350848
|
exports.__esModule = true;
|
|
350697
350849
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
350698
|
-
exports.PIPELINE_IMAGE_TAG = "main-
|
|
350850
|
+
exports.PIPELINE_IMAGE_TAG = "main-8e6e0805" || 0;
|
|
350699
350851
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
350700
350852
|
|
|
350701
350853
|
/***/ }),
|
|
@@ -48,7 +48,7 @@ var getCloudRunDomainSuffix = function (config) { return __awaiter(void 0, void
|
|
|
48
48
|
return __generator(this, function (_a) {
|
|
49
49
|
switch (_a.label) {
|
|
50
50
|
case 0:
|
|
51
|
-
dummyServiceName = "cl-dummy-service";
|
|
51
|
+
dummyServiceName = "cl-dummy-service-delete-me";
|
|
52
52
|
return [4 /*yield*/, (0, child_process_promise_1.exec)("gcloud run services list --format=json --project=\"".concat(config.projectId, "\" --region=").concat(config.region, " --limit=1")).then(function (r) { return JSON.parse(r.stdout); })];
|
|
53
53
|
case 1:
|
|
54
54
|
existingServices = _a.sent();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCloudRunDomainSuffix.js","sourceRoot":"","sources":["../../../src/gcloud/cloudRun/getCloudRunDomainSuffix.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+DAA6C;AAE7C,IAAM,oBAAoB,GAAG,UAAC,OAAY;IACxC,IAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC;IACnC,IAAM,IAAI,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC;IAEnC,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,GAAG,IAAI,GAAG,GAAG,EAAE,EAAE,CAAC,CAAC;AACtD,CAAC,CAAC;AACK,IAAM,uBAAuB,GAAG,UAAO,MAA4B;;;;;gBAUlE,gBAAgB,GAAG,
|
|
1
|
+
{"version":3,"file":"getCloudRunDomainSuffix.js","sourceRoot":"","sources":["../../../src/gcloud/cloudRun/getCloudRunDomainSuffix.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+DAA6C;AAE7C,IAAM,oBAAoB,GAAG,UAAC,OAAY;IACxC,IAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC;IACnC,IAAM,IAAI,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC;IAEnC,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,GAAG,IAAI,GAAG,GAAG,EAAE,EAAE,CAAC,CAAC;AACtD,CAAC,CAAC;AACK,IAAM,uBAAuB,GAAG,UAAO,MAA4B;;;;;gBAUlE,gBAAgB,GAAG,4BAA4B,CAAC;gBAE7B,qBAAM,IAAA,4BAAI,EACjC,8DAAsD,MAAM,CAAC,SAAS,0BAAe,MAAM,CAAC,MAAM,eAAY,CAC/G,CAAC,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAApB,CAAoB,CAAC,EAAA;;gBAF7B,gBAAgB,GAAG,SAEU;gBAEnC,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE;oBAC/B,sBAAO,oBAAoB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAAC;iBAClD;gBAEc,qBAAM,IAAA,4BAAI,EACvB,4BAAqB,gBAAgB,uBAAa,MAAM,CAAC,MAAM,gDAAsC,MAAM,CAAC,SAAS,sEAAmE,CACzL,CAAC,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAApB,CAAoB,CAAC,EAAA;;gBAF7B,MAAM,GAAG,SAEoB;gBAE5B,qBAAM,oBAAoB,CAAC,MAAM,CAAC,EAAA;oBAAzC,sBAAO,SAAkC,EAAC;;;KAC3C,CAAC;AAzBW,QAAA,uBAAuB,2BAyBlC"}
|