@catladder/cli 0.0.0-refactor-args-72534da4 → 0.0.0-refactor-args-0adc5b8e
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/bundles/catenv/index.js +12 -10
- package/dist/bundles/cli/index.js +12 -10
- package/package.json +2 -2
|
@@ -40074,7 +40074,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
40074
40074
|
|
|
40075
40075
|
exports.__esModule = true;
|
|
40076
40076
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
40077
|
-
exports.PIPELINE_IMAGE_TAG = "refactor-args-
|
|
40077
|
+
exports.PIPELINE_IMAGE_TAG = "refactor-args-0adc5b8e" || 0;
|
|
40078
40078
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
40079
40079
|
|
|
40080
40080
|
/***/ }),
|
|
@@ -41297,13 +41297,13 @@ var createGoogleCloudRunDeployJobs = function (context) {
|
|
|
41297
41297
|
project: deployConfig.projectId,
|
|
41298
41298
|
region: deployConfig.region
|
|
41299
41299
|
};
|
|
41300
|
-
var
|
|
41301
|
-
var commonDeployArgs = (0, createArgsString_1.createArgsString)(__assign(__assign({
|
|
41300
|
+
var commonDeployArgs = __assign(__assign({
|
|
41302
41301
|
image: gcloudImageName
|
|
41303
41302
|
}, commonArgs), {
|
|
41304
41303
|
"set-cloudsql-instances": deployConfig.cloudSql ? deployConfig.cloudSql.instanceConnectionName : undefined,
|
|
41305
41304
|
labels: labelsString
|
|
41306
|
-
})
|
|
41305
|
+
});
|
|
41306
|
+
var commonDeployArgsString = (0, createArgsString_1.createArgsString)(commonDeployArgs);
|
|
41307
41307
|
var serviceName = context.environment.fullName.toLowerCase();
|
|
41308
41308
|
var getFullJobName = function (name) {
|
|
41309
41309
|
return (0, jobName_1.getCloudRunJobName)(context.environment.fullName, name);
|
|
@@ -41336,23 +41336,25 @@ var createGoogleCloudRunDeployJobs = function (context) {
|
|
|
41336
41336
|
var _a;
|
|
41337
41337
|
var customConfig = service !== true ? service : undefined;
|
|
41338
41338
|
var command = service !== true ? (_a = service === null || service === void 0 ? void 0 : service.command) !== null && _a !== void 0 ? _a : context.componentConfig.build.startCommand : undefined;
|
|
41339
|
-
var
|
|
41340
|
-
|
|
41339
|
+
var argsString = (0, createArgsString_1.createArgsString)(__assign(__assign({
|
|
41340
|
+
command: command ? '"' + command.split(" ").join(",") + '"' : undefined
|
|
41341
|
+
}, commonDeployArgs), {
|
|
41342
|
+
"env-vars-file": "____envvars.yaml",
|
|
41341
41343
|
"allow-unauthenticated": true,
|
|
41342
41344
|
"min-instances": customConfig === null || customConfig === void 0 ? void 0 : customConfig.minInstances,
|
|
41343
41345
|
"max-instances": customConfig === null || customConfig === void 0 ? void 0 : customConfig.maxInstances,
|
|
41344
41346
|
"no-cpu-throttling": customConfig === null || customConfig === void 0 ? void 0 : customConfig.noCpuThrottling
|
|
41345
|
-
};
|
|
41346
|
-
|
|
41347
|
-
return "gcloud run deploy ".concat(serviceName).concat(nameSuffix !== null && nameSuffix !== void 0 ? nameSuffix : "", " ").concat(commandArg, " ").concat(commonDeployArgs, " --env-vars-file=____envvars.yaml ").concat(argsString);
|
|
41347
|
+
}));
|
|
41348
|
+
return "gcloud run deploy ".concat(serviceName).concat(nameSuffix !== null && nameSuffix !== void 0 ? nameSuffix : "", " ").concat(argsString);
|
|
41348
41349
|
};
|
|
41349
41350
|
var getJobCreateScriptsForJob = function (jobName, job) {
|
|
41350
41351
|
// due to some oversight from google, jobs create does not accept `--env-vars-file` 🤦
|
|
41351
41352
|
// lucky, update on the other hand accepts it... so let's just imediatly update it
|
|
41352
41353
|
// also we cannot upsert a job, so we have to create it and catch the error and then update
|
|
41353
|
-
var args = "".concat(jobName, " --command=\"").concat(job.command.split(" ").join(","), "\" ").concat(
|
|
41354
|
+
var args = "".concat(jobName, " --command=\"").concat(job.command.split(" ").join(","), "\" ").concat(commonDeployArgsString, " --memory=").concat(job.memory || "512Mi");
|
|
41354
41355
|
return __spreadArray(__spreadArray([], __read((0, gitlab_1.allowFailureInScripts)(["gcloud beta run jobs create ".concat(args)])), false), ["gcloud beta run jobs update ".concat(args, " --env-vars-file=____envvars.yaml")], false);
|
|
41355
41356
|
};
|
|
41357
|
+
var commonArgsString = (0, createArgsString_1.createArgsString)(commonArgs);
|
|
41356
41358
|
var getJobCreateScripts = function () {
|
|
41357
41359
|
return jobsWithNames.map(function (_a) {
|
|
41358
41360
|
var job = _a.job,
|
|
@@ -351199,7 +351199,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
351199
351199
|
|
|
351200
351200
|
exports.__esModule = true;
|
|
351201
351201
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
351202
|
-
exports.PIPELINE_IMAGE_TAG = "refactor-args-
|
|
351202
|
+
exports.PIPELINE_IMAGE_TAG = "refactor-args-0adc5b8e" || 0;
|
|
351203
351203
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
351204
351204
|
|
|
351205
351205
|
/***/ }),
|
|
@@ -352422,13 +352422,13 @@ var createGoogleCloudRunDeployJobs = function (context) {
|
|
|
352422
352422
|
project: deployConfig.projectId,
|
|
352423
352423
|
region: deployConfig.region
|
|
352424
352424
|
};
|
|
352425
|
-
var
|
|
352426
|
-
var commonDeployArgs = (0, createArgsString_1.createArgsString)(__assign(__assign({
|
|
352425
|
+
var commonDeployArgs = __assign(__assign({
|
|
352427
352426
|
image: gcloudImageName
|
|
352428
352427
|
}, commonArgs), {
|
|
352429
352428
|
"set-cloudsql-instances": deployConfig.cloudSql ? deployConfig.cloudSql.instanceConnectionName : undefined,
|
|
352430
352429
|
labels: labelsString
|
|
352431
|
-
})
|
|
352430
|
+
});
|
|
352431
|
+
var commonDeployArgsString = (0, createArgsString_1.createArgsString)(commonDeployArgs);
|
|
352432
352432
|
var serviceName = context.environment.fullName.toLowerCase();
|
|
352433
352433
|
var getFullJobName = function (name) {
|
|
352434
352434
|
return (0, jobName_1.getCloudRunJobName)(context.environment.fullName, name);
|
|
@@ -352461,23 +352461,25 @@ var createGoogleCloudRunDeployJobs = function (context) {
|
|
|
352461
352461
|
var _a;
|
|
352462
352462
|
var customConfig = service !== true ? service : undefined;
|
|
352463
352463
|
var command = service !== true ? (_a = service === null || service === void 0 ? void 0 : service.command) !== null && _a !== void 0 ? _a : context.componentConfig.build.startCommand : undefined;
|
|
352464
|
-
var
|
|
352465
|
-
|
|
352464
|
+
var argsString = (0, createArgsString_1.createArgsString)(__assign(__assign({
|
|
352465
|
+
command: command ? '"' + command.split(" ").join(",") + '"' : undefined
|
|
352466
|
+
}, commonDeployArgs), {
|
|
352467
|
+
"env-vars-file": "____envvars.yaml",
|
|
352466
352468
|
"allow-unauthenticated": true,
|
|
352467
352469
|
"min-instances": customConfig === null || customConfig === void 0 ? void 0 : customConfig.minInstances,
|
|
352468
352470
|
"max-instances": customConfig === null || customConfig === void 0 ? void 0 : customConfig.maxInstances,
|
|
352469
352471
|
"no-cpu-throttling": customConfig === null || customConfig === void 0 ? void 0 : customConfig.noCpuThrottling
|
|
352470
|
-
};
|
|
352471
|
-
|
|
352472
|
-
return "gcloud run deploy ".concat(serviceName).concat(nameSuffix !== null && nameSuffix !== void 0 ? nameSuffix : "", " ").concat(commandArg, " ").concat(commonDeployArgs, " --env-vars-file=____envvars.yaml ").concat(argsString);
|
|
352472
|
+
}));
|
|
352473
|
+
return "gcloud run deploy ".concat(serviceName).concat(nameSuffix !== null && nameSuffix !== void 0 ? nameSuffix : "", " ").concat(argsString);
|
|
352473
352474
|
};
|
|
352474
352475
|
var getJobCreateScriptsForJob = function (jobName, job) {
|
|
352475
352476
|
// due to some oversight from google, jobs create does not accept `--env-vars-file` 🤦
|
|
352476
352477
|
// lucky, update on the other hand accepts it... so let's just imediatly update it
|
|
352477
352478
|
// also we cannot upsert a job, so we have to create it and catch the error and then update
|
|
352478
|
-
var args = "".concat(jobName, " --command=\"").concat(job.command.split(" ").join(","), "\" ").concat(
|
|
352479
|
+
var args = "".concat(jobName, " --command=\"").concat(job.command.split(" ").join(","), "\" ").concat(commonDeployArgsString, " --memory=").concat(job.memory || "512Mi");
|
|
352479
352480
|
return __spreadArray(__spreadArray([], __read((0, gitlab_1.allowFailureInScripts)(["gcloud beta run jobs create ".concat(args)])), false), ["gcloud beta run jobs update ".concat(args, " --env-vars-file=____envvars.yaml")], false);
|
|
352480
352481
|
};
|
|
352482
|
+
var commonArgsString = (0, createArgsString_1.createArgsString)(commonArgs);
|
|
352481
352483
|
var getJobCreateScripts = function () {
|
|
352482
352484
|
return jobsWithNames.map(function (_a) {
|
|
352483
352485
|
var job = _a.job,
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"node": ">=12.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@catladder/pipeline": "0.0.0-refactor-args-
|
|
27
|
+
"@catladder/pipeline": "0.0.0-refactor-args-0adc5b8e",
|
|
28
28
|
"@kubernetes/client-node": "^0.16.2",
|
|
29
29
|
"@tsconfig/node14": "^1.0.1",
|
|
30
30
|
"@types/common-tags": "^1.8.0",
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
"typescript": "^4.5.4",
|
|
58
58
|
"vorpal": "^1.12.0"
|
|
59
59
|
},
|
|
60
|
-
"version": "0.0.0-refactor-args-
|
|
60
|
+
"version": "0.0.0-refactor-args-0adc5b8e",
|
|
61
61
|
"stableVersion": "0.0.0"
|
|
62
62
|
}
|