@storm-software/k8s-tools 0.22.0 → 0.22.1
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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/{chunk-6SBUEJ5U.js → chunk-4QH2MTXK.js} +15 -8
- package/dist/{chunk-V7DG6YHH.js → chunk-7MCE2ZUS.js} +4 -4
- package/dist/{chunk-7LSOO7EL.mjs → chunk-BIWZ2Q24.mjs} +2 -2
- package/dist/{chunk-VT53PVGM.mjs → chunk-DGFLUWWO.mjs} +1 -1
- package/dist/{chunk-YXDTTQAK.mjs → chunk-EW7TITVO.mjs} +15 -8
- package/dist/{chunk-U2IUNS7C.js → chunk-F3FMMEAT.js} +4 -4
- package/dist/{chunk-TRB7S5T3.js → chunk-H62G7RPC.js} +2 -2
- package/dist/{chunk-J5BM3XLI.mjs → chunk-HAPNODYU.mjs} +3 -3
- package/dist/{chunk-U6NXQRO5.js → chunk-HIBDWCFD.js} +7 -7
- package/dist/{chunk-T5REP3DE.mjs → chunk-HOFAHND6.mjs} +1 -1
- package/dist/{chunk-ZVIFWURI.js → chunk-ILJQ7PUY.js} +3 -3
- package/dist/{chunk-KHUZ2XYL.js → chunk-PJ4LNF33.js} +2 -2
- package/dist/{chunk-U2RYLP2F.mjs → chunk-QCPSAHUZ.mjs} +1 -1
- package/dist/{chunk-5XKQQWUJ.js → chunk-U44U5VL3.js} +19 -19
- package/dist/{chunk-QON4VGYU.mjs → chunk-VGT53X45.mjs} +3 -3
- package/dist/{chunk-WMEDG765.mjs → chunk-VLPEFUDC.mjs} +2 -2
- package/dist/{chunk-4CEOK53A.mjs → chunk-ZC5XJYOI.mjs} +2 -2
- package/dist/{chunk-67XBWQRC.js → chunk-ZUYEBE5G.js} +23 -23
- package/dist/executors.js +6 -6
- package/dist/executors.mjs +5 -5
- package/dist/generators.js +6 -6
- package/dist/generators.mjs +5 -5
- package/dist/index.js +10 -10
- package/dist/index.mjs +9 -9
- package/dist/src/executors/container-publish/executor.js +5 -5
- package/dist/src/executors/container-publish/executor.mjs +4 -4
- package/dist/src/executors/helm-package/executor.js +5 -5
- package/dist/src/executors/helm-package/executor.mjs +4 -4
- package/dist/src/generators/helm-chart/generator.js +5 -5
- package/dist/src/generators/helm-chart/generator.mjs +4 -4
- package/dist/src/generators/helm-dependency/generator.js +5 -5
- package/dist/src/generators/helm-dependency/generator.mjs +4 -4
- package/dist/src/plugins/docker/index.js +3 -3
- package/dist/src/plugins/docker/index.mjs +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -475,49 +475,56 @@ var getLogLevelLabel = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (log
|
|
|
475
475
|
var getLogFn = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
476
476
|
const colors = !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12.dark]) && !_optionalChain([config, 'access', _13 => _13.colors, 'optionalAccess', _14 => _14["base"]]) && !_optionalChain([config, 'access', _15 => _15.colors, 'optionalAccess', _16 => _16["base"], 'optionalAccess', _17 => _17.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _18 => _18.colors, 'optionalAccess', _19 => _19.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"], 'optionalAccess', _22 => _22.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _23 => _23.colors, 'optionalAccess', _24 => _24["base"]]) ? _optionalChain([config, 'access', _25 => _25.colors, 'optionalAccess', _26 => _26["base"]]) : DEFAULT_COLOR_CONFIG;
|
|
477
477
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
478
|
-
if (
|
|
478
|
+
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
479
479
|
return (_) => {
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel
|
|
482
|
+
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
483
483
|
return (message) => {
|
|
484
484
|
console.error(`
|
|
485
485
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
486
486
|
`);
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
|
-
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel
|
|
489
|
+
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
|
|
490
490
|
return (message) => {
|
|
491
491
|
console.error(`
|
|
492
492
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
493
493
|
`);
|
|
494
494
|
};
|
|
495
495
|
}
|
|
496
|
-
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel
|
|
496
|
+
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
|
|
497
497
|
return (message) => {
|
|
498
498
|
console.warn(`
|
|
499
499
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
500
500
|
`);
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
|
-
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel
|
|
503
|
+
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
|
|
504
504
|
return (message) => {
|
|
505
505
|
console.info(`
|
|
506
506
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
507
507
|
`);
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
|
-
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel
|
|
510
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
|
|
511
511
|
return (message) => {
|
|
512
512
|
console.info(`
|
|
513
513
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
514
514
|
`);
|
|
515
515
|
};
|
|
516
516
|
}
|
|
517
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
517
|
+
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
|
|
518
518
|
return (message) => {
|
|
519
519
|
console.debug(`
|
|
520
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]}
|
|
520
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
521
|
+
`);
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
|
|
525
|
+
return (message) => {
|
|
526
|
+
console.debug(`
|
|
527
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
521
528
|
`);
|
|
522
529
|
};
|
|
523
530
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkU44U5VL3js = require('./chunk-U44U5VL3.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk4QH2MTXKjs = require('./chunk-4QH2MTXK.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -12,7 +12,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
12
12
|
var _devkit = require('@nx/devkit');
|
|
13
13
|
var _path = require('path');
|
|
14
14
|
async function helmChartGeneratorFn(tree, options, config) {
|
|
15
|
-
|
|
15
|
+
_chunk4QH2MTXKjs.writeDebug.call(void 0, "\u{1F4DD} Preparing to write Helm Chart", config);
|
|
16
16
|
const project = _devkit.readProjectConfiguration.call(void 0, tree, options.project);
|
|
17
17
|
if (_optionalChain([project, 'access', _ => _.targets, 'optionalAccess', _2 => _2["helm-package"]])) {
|
|
18
18
|
throw new Error(`Project ${options.project} already has a helm target. Please remove it before running this command.`);
|
|
@@ -49,7 +49,7 @@ async function helmChartGeneratorFn(tree, options, config) {
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
_chunk3GQAWCBQjs.__name.call(void 0, helmChartGeneratorFn, "helmChartGeneratorFn");
|
|
52
|
-
var generator_default =
|
|
52
|
+
var generator_default = _chunkU44U5VL3js.withRunGenerator.call(void 0, "Helm Chart", helmChartGeneratorFn);
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
@@ -475,49 +475,56 @@ var getLogLevelLabel = /* @__PURE__ */ __name((logLevel = LogLevel.INFO) => {
|
|
|
475
475
|
var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
476
476
|
const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
477
477
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
478
|
-
if (
|
|
478
|
+
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
479
479
|
return (_) => {
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel
|
|
482
|
+
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
|
|
483
483
|
return (message) => {
|
|
484
484
|
console.error(`
|
|
485
485
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
486
486
|
`);
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
|
-
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel
|
|
489
|
+
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
|
|
490
490
|
return (message) => {
|
|
491
491
|
console.error(`
|
|
492
492
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
493
493
|
`);
|
|
494
494
|
};
|
|
495
495
|
}
|
|
496
|
-
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel
|
|
496
|
+
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
|
|
497
497
|
return (message) => {
|
|
498
498
|
console.warn(`
|
|
499
499
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
500
500
|
`);
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
|
-
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel
|
|
503
|
+
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
|
|
504
504
|
return (message) => {
|
|
505
505
|
console.info(`
|
|
506
506
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
507
507
|
`);
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
|
-
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel
|
|
510
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
|
|
511
511
|
return (message) => {
|
|
512
512
|
console.info(`
|
|
513
513
|
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
514
514
|
`);
|
|
515
515
|
};
|
|
516
516
|
}
|
|
517
|
-
if (typeof logLevel === "number" && LogLevel.
|
|
517
|
+
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
|
|
518
518
|
return (message) => {
|
|
519
519
|
console.debug(`
|
|
520
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]}
|
|
520
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
521
|
+
`);
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
|
|
525
|
+
return (message) => {
|
|
526
|
+
console.debug(`
|
|
527
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
521
528
|
`);
|
|
522
529
|
};
|
|
523
530
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkU44U5VL3js = require('./chunk-U44U5VL3.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk4QH2MTXKjs = require('./chunk-4QH2MTXK.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -12,7 +12,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
12
12
|
var _devkit = require('@nx/devkit');
|
|
13
13
|
var _jsyaml = require('js-yaml'); var _jsyaml2 = _interopRequireDefault(_jsyaml);
|
|
14
14
|
async function helmDependencyGeneratorFn(tree, options, config) {
|
|
15
|
-
|
|
15
|
+
_chunk4QH2MTXKjs.writeDebug.call(void 0, "\u{1F4DD} Preparing to add Helm Dependency", config);
|
|
16
16
|
const project = _devkit.readProjectConfiguration.call(void 0, tree, options.project);
|
|
17
17
|
if (!_optionalChain([project, 'access', _ => _.targets, 'optionalAccess', _2 => _2["helm-package"]])) {
|
|
18
18
|
throw new Error(`Project ${options.project} does not have a helm target. Please run the chart generator first.`);
|
|
@@ -27,7 +27,7 @@ async function helmDependencyGeneratorFn(tree, options, config) {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
_chunk3GQAWCBQjs.__name.call(void 0, helmDependencyGeneratorFn, "helmDependencyGeneratorFn");
|
|
30
|
-
var generator_default =
|
|
30
|
+
var generator_default = _chunkU44U5VL3js.withRunGenerator.call(void 0, "Helm Dependency", helmDependencyGeneratorFn);
|
|
31
31
|
function addDependencyToConfig(project, name, url) {
|
|
32
32
|
return {
|
|
33
33
|
...project,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4QH2MTXKjs = require('./chunk-4QH2MTXK.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -32,7 +32,7 @@ var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
if (result.includes("{workspaceRoot}")) {
|
|
35
|
-
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _optionalChain([tokenizerOptions, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => (
|
|
35
|
+
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _optionalChain([tokenizerOptions, 'access', _3 => _3.config, 'optionalAccess', _4 => _4.workspaceRoot]))), () => ( _chunk4QH2MTXKjs.findWorkspaceRoot.call(void 0, ))));
|
|
36
36
|
}
|
|
37
37
|
return result;
|
|
38
38
|
}, "applyWorkspaceBaseTokens");
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyWorkspaceExecutorTokens
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HOFAHND6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getPackageInfo
|
|
6
6
|
} from "./chunk-RVFKH45R.mjs";
|
|
7
7
|
import {
|
|
8
8
|
applyWorkspaceTokens
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QCPSAHUZ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
findWorkspaceRoot,
|
|
12
12
|
loadStormConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EW7TITVO.mjs";
|
|
14
14
|
import {
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-XUV4U54K.mjs";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkPJ4LNF33js = require('./chunk-PJ4LNF33.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkIOT45LXVjs = require('./chunk-IOT45LXV.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkH62G7RPCjs = require('./chunk-H62G7RPC.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk4QH2MTXKjs = require('./chunk-4QH2MTXK.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -24,8 +24,8 @@ async function* publishExecutor(options, context) {
|
|
|
24
24
|
throw new Error("The executor requires a projectName.");
|
|
25
25
|
}
|
|
26
26
|
console.info(`\u{1F680} Running Storm Container Registry Publish executor on the ${context.projectName} crate`);
|
|
27
|
-
const workspaceRoot =
|
|
28
|
-
const config = await
|
|
27
|
+
const workspaceRoot = _chunk4QH2MTXKjs.findWorkspaceRoot.call(void 0, );
|
|
28
|
+
const config = await _chunk4QH2MTXKjs.loadStormConfig.call(void 0, workspaceRoot);
|
|
29
29
|
const projectConfig = _optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects, 'access', _3 => _3[context.projectName]]);
|
|
30
30
|
if (!projectConfig) {
|
|
31
31
|
throw new Error(`The executor requires a valid projectsConfiguration - No configuration found for project ${context.projectName}`);
|
|
@@ -34,14 +34,14 @@ async function* publishExecutor(options, context) {
|
|
|
34
34
|
const sourceRoot = _nullishCoalesce(_optionalChain([projectConfig, 'optionalAccess', _5 => _5.sourceRoot]), () => ( workspaceRoot));
|
|
35
35
|
const projectName = _nullishCoalesce(_optionalChain([projectConfig, 'optionalAccess', _6 => _6.name]), () => ( context.projectName));
|
|
36
36
|
config.workspaceRoot = workspaceRoot;
|
|
37
|
-
const tokenized = await
|
|
37
|
+
const tokenized = await _chunkH62G7RPCjs.applyWorkspaceTokens.call(void 0, options, {
|
|
38
38
|
config,
|
|
39
39
|
workspaceRoot,
|
|
40
40
|
projectRoot,
|
|
41
41
|
sourceRoot,
|
|
42
42
|
projectName,
|
|
43
43
|
...projectConfig
|
|
44
|
-
},
|
|
44
|
+
}, _chunkPJ4LNF33js.applyWorkspaceExecutorTokens);
|
|
45
45
|
tokenized.engine ??= "docker";
|
|
46
46
|
tokenized.registry ??= config.registry.container;
|
|
47
47
|
try {
|
|
@@ -8,7 +8,7 @@ var _chunkIOT45LXVjs = require('./chunk-IOT45LXV.js');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk4QH2MTXKjs = require('./chunk-4QH2MTXK.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -35,8 +35,8 @@ var createNodes = [
|
|
|
35
35
|
if (_optionalChain([projectJson, 'optionalAccess', _2 => _2.name])) {
|
|
36
36
|
return {};
|
|
37
37
|
}
|
|
38
|
-
const workspaceRoot =
|
|
39
|
-
const config = await
|
|
38
|
+
const workspaceRoot = _chunk4QH2MTXKjs.findWorkspaceRoot.call(void 0, );
|
|
39
|
+
const config = await _chunk4QH2MTXKjs.loadStormConfig.call(void 0, workspaceRoot);
|
|
40
40
|
Object.keys(projectJson).forEach((key) => {
|
|
41
41
|
if (!project[key]) {
|
|
42
42
|
project[key] = projectJson[key];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4QH2MTXKjs = require('./chunk-4QH2MTXK.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -49,7 +49,7 @@ var applyWorkspaceExecutorTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(
|
|
|
49
49
|
result = result.replaceAll("{sourceRoot}", sourceRoot);
|
|
50
50
|
}
|
|
51
51
|
if (result.includes("{workspaceRoot}")) {
|
|
52
|
-
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(tokenizerOptions.workspaceRoot, () => (
|
|
52
|
+
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _chunk4QH2MTXKjs.findWorkspaceRoot.call(void 0, ))));
|
|
53
53
|
}
|
|
54
54
|
return result;
|
|
55
55
|
}, "applyWorkspaceExecutorTokens");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkH62G7RPCjs = require('./chunk-H62G7RPC.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ var _chunkTRB7S5T3js = require('./chunk-TRB7S5T3.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk4QH2MTXKjs = require('./chunk-4QH2MTXK.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -21,34 +21,34 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
21
21
|
var withRunGenerator = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, generatorFn, generatorOptions = {
|
|
22
22
|
skipReadingConfig: false
|
|
23
23
|
}) => async (tree, _options) => {
|
|
24
|
-
const stopwatch =
|
|
24
|
+
const stopwatch = _chunk4QH2MTXKjs.getStopwatch.call(void 0, name);
|
|
25
25
|
let options = _options;
|
|
26
26
|
let config;
|
|
27
27
|
try {
|
|
28
|
-
|
|
28
|
+
_chunk4QH2MTXKjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
29
29
|
|
|
30
30
|
`, config);
|
|
31
|
-
const workspaceRoot =
|
|
31
|
+
const workspaceRoot = _chunk4QH2MTXKjs.findWorkspaceRoot.call(void 0, );
|
|
32
32
|
if (!generatorOptions.skipReadingConfig) {
|
|
33
|
-
|
|
33
|
+
_chunk4QH2MTXKjs.writeDebug.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
34
34
|
- workspaceRoot: ${workspaceRoot}`, config);
|
|
35
|
-
config = await
|
|
35
|
+
config = await _chunk4QH2MTXKjs.loadStormConfig.call(void 0, workspaceRoot);
|
|
36
36
|
}
|
|
37
37
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
38
|
-
|
|
38
|
+
_chunk4QH2MTXKjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
39
39
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
40
|
-
|
|
40
|
+
_chunk4QH2MTXKjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
_chunk4QH2MTXKjs.writeTrace.call(void 0, `Generator schema options \u2699\uFE0F
|
|
43
43
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
44
|
-
const tokenized = await
|
|
44
|
+
const tokenized = await _chunkH62G7RPCjs.applyWorkspaceTokens.call(void 0, options, {
|
|
45
45
|
workspaceRoot: tree.root,
|
|
46
46
|
config
|
|
47
|
-
},
|
|
47
|
+
}, _chunkH62G7RPCjs.applyWorkspaceBaseTokens);
|
|
48
48
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
49
|
-
|
|
49
|
+
_chunk4QH2MTXKjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
50
50
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
51
|
-
|
|
51
|
+
_chunk4QH2MTXKjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
52
52
|
}
|
|
53
53
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
54
54
|
if (result) {
|
|
@@ -61,18 +61,18 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
64
|
-
|
|
64
|
+
_chunk4QH2MTXKjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
65
65
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
66
|
-
|
|
66
|
+
_chunk4QH2MTXKjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
67
67
|
}
|
|
68
68
|
return () => {
|
|
69
|
-
|
|
69
|
+
_chunk4QH2MTXKjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
70
70
|
`, config);
|
|
71
71
|
};
|
|
72
72
|
} catch (error) {
|
|
73
73
|
return () => {
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
_chunk4QH2MTXKjs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
75
|
+
_chunk4QH2MTXKjs.writeError.call(void 0, `An exception was thrown in the generator's process
|
|
76
76
|
- Details: ${error.message}
|
|
77
77
|
- Stacktrace: ${error.stack}`, config);
|
|
78
78
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyWorkspaceExecutorTokens
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HOFAHND6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
applyWorkspaceTokens
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QCPSAHUZ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
findWorkspaceRoot,
|
|
9
9
|
formatLogMessage,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
writeSuccess,
|
|
17
17
|
writeTrace,
|
|
18
18
|
writeWarning
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-EW7TITVO.mjs";
|
|
20
20
|
import {
|
|
21
21
|
createHelmClient
|
|
22
22
|
} from "./chunk-6V45YKVB.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyWorkspaceBaseTokens,
|
|
3
3
|
applyWorkspaceTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QCPSAHUZ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findWorkspaceRoot,
|
|
7
7
|
getStopwatch,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
writeInfo,
|
|
13
13
|
writeSuccess,
|
|
14
14
|
writeTrace
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EW7TITVO.mjs";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-XUV4U54K.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkPJ4LNF33js = require('./chunk-PJ4LNF33.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkH62G7RPCjs = require('./chunk-H62G7RPC.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -16,7 +16,7 @@ var _chunkTRB7S5T3js = require('./chunk-TRB7S5T3.js');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunk4QH2MTXKjs = require('./chunk-4QH2MTXK.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
var _chunk2GAU2GHGjs = require('./chunk-2GAU2GHG.js');
|
|
@@ -26,37 +26,37 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
26
26
|
|
|
27
27
|
// ../workspace-tools/src/base/base-executor.ts
|
|
28
28
|
var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
29
|
-
const stopwatch =
|
|
29
|
+
const stopwatch = _chunk4QH2MTXKjs.getStopwatch.call(void 0, name);
|
|
30
30
|
let options = _options;
|
|
31
31
|
let config = {};
|
|
32
32
|
try {
|
|
33
|
-
|
|
33
|
+
_chunk4QH2MTXKjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor...
|
|
34
34
|
`, config);
|
|
35
35
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
36
36
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
37
37
|
}
|
|
38
|
-
const workspaceRoot =
|
|
38
|
+
const workspaceRoot = _chunk4QH2MTXKjs.findWorkspaceRoot.call(void 0, );
|
|
39
39
|
const projectRoot = _nullishCoalesce(_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'access', _4 => _4.projects, 'access', _5 => _5[context.projectName], 'optionalAccess', _6 => _6.root]), () => ( workspaceRoot));
|
|
40
40
|
const sourceRoot = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.sourceRoot]), () => ( workspaceRoot));
|
|
41
41
|
const projectName = _nullishCoalesce(_optionalChain([context, 'access', _11 => _11.projectsConfigurations, 'access', _12 => _12.projects, 'access', _13 => _13[context.projectName], 'optionalAccess', _14 => _14.name]), () => ( context.projectName));
|
|
42
42
|
config.workspaceRoot = workspaceRoot;
|
|
43
43
|
if (!executorOptions.skipReadingConfig) {
|
|
44
|
-
|
|
44
|
+
_chunk4QH2MTXKjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
45
45
|
- workspaceRoot: ${workspaceRoot}
|
|
46
46
|
- projectRoot: ${projectRoot}
|
|
47
47
|
- sourceRoot: ${sourceRoot}
|
|
48
48
|
- projectName: ${projectName}
|
|
49
49
|
`, config);
|
|
50
|
-
config = await
|
|
50
|
+
config = await _chunk4QH2MTXKjs.loadStormConfig.call(void 0, workspaceRoot);
|
|
51
51
|
}
|
|
52
52
|
if (_optionalChain([executorOptions, 'optionalAccess', _15 => _15.hooks, 'optionalAccess', _16 => _16.applyDefaultOptions])) {
|
|
53
|
-
|
|
53
|
+
_chunk4QH2MTXKjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
54
54
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
55
|
-
|
|
55
|
+
_chunk4QH2MTXKjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
_chunk4QH2MTXKjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
|
|
58
58
|
${Object.keys(options).map((key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`).join("\n")}`, config);
|
|
59
|
-
const tokenized = await
|
|
59
|
+
const tokenized = await _chunkH62G7RPCjs.applyWorkspaceTokens.call(void 0, options, {
|
|
60
60
|
config,
|
|
61
61
|
workspaceRoot,
|
|
62
62
|
projectRoot,
|
|
@@ -64,11 +64,11 @@ ${Object.keys(options).map((key) => ` - ${key}=${_isFunction(options[key]) ? "<f
|
|
|
64
64
|
projectName,
|
|
65
65
|
...context.projectsConfigurations.projects[context.projectName],
|
|
66
66
|
...executorOptions
|
|
67
|
-
},
|
|
67
|
+
}, _chunkPJ4LNF33js.applyWorkspaceExecutorTokens);
|
|
68
68
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.preProcess])) {
|
|
69
|
-
|
|
69
|
+
_chunk4QH2MTXKjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
70
70
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
71
|
-
|
|
71
|
+
_chunk4QH2MTXKjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
72
72
|
}
|
|
73
73
|
const ret = executorFn(tokenized, context, config);
|
|
74
74
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _19 => _19.next]))) {
|
|
@@ -78,26 +78,26 @@ ${Object.keys(options).map((key) => ` - ${key}=${_isFunction(options[key]) ? "<f
|
|
|
78
78
|
}
|
|
79
79
|
const result = await Promise.resolve(ret);
|
|
80
80
|
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _20 => _20.error, 'optionalAccess', _21 => _21.message]) && typeof _optionalChain([result, 'optionalAccess', _22 => _22.error, 'optionalAccess', _23 => _23.message]) === "string" && _optionalChain([result, 'optionalAccess', _24 => _24.error, 'optionalAccess', _25 => _25.name]) && typeof _optionalChain([result, 'optionalAccess', _26 => _26.error, 'optionalAccess', _27 => _27.name]) === "string")) {
|
|
81
|
-
|
|
82
|
-
${
|
|
81
|
+
_chunk4QH2MTXKjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
|
|
82
|
+
${_chunk4QH2MTXKjs.formatLogMessage.call(void 0, result)}`, config);
|
|
83
83
|
console.error(result);
|
|
84
84
|
throw new Error(`The ${name} executor failed to run`, {
|
|
85
85
|
cause: _optionalChain([result, 'optionalAccess', _28 => _28.error])
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
if (_optionalChain([executorOptions, 'optionalAccess', _29 => _29.hooks, 'optionalAccess', _30 => _30.postProcess])) {
|
|
89
|
-
|
|
89
|
+
_chunk4QH2MTXKjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
90
90
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
91
|
-
|
|
91
|
+
_chunk4QH2MTXKjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
_chunk4QH2MTXKjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
94
94
|
`, config);
|
|
95
95
|
return {
|
|
96
96
|
success: true
|
|
97
97
|
};
|
|
98
98
|
} catch (error) {
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
_chunk4QH2MTXKjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
|
|
100
|
+
_chunk4QH2MTXKjs.writeError.call(void 0, `An exception was thrown in the executor's process
|
|
101
101
|
- Details: ${error.message}
|
|
102
102
|
- Stacktrace: ${error.stack}`, config);
|
|
103
103
|
return {
|
|
@@ -146,7 +146,7 @@ async function serveExecutor(options, context, config) {
|
|
|
146
146
|
remote: options.remote
|
|
147
147
|
});
|
|
148
148
|
} else {
|
|
149
|
-
|
|
149
|
+
_chunk4QH2MTXKjs.writeWarning.call(void 0, `Chart packaged at: ${chartPath}`, config);
|
|
150
150
|
}
|
|
151
151
|
return {
|
|
152
152
|
success: true
|
package/dist/executors.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-XO66D74Z.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkHIBDWCFDjs = require('./chunk-HIBDWCFD.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkZUYEBE5Gjs = require('./chunk-ZUYEBE5G.js');
|
|
8
|
+
require('./chunk-PJ4LNF33.js');
|
|
9
9
|
require('./chunk-IOT45LXV.js');
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-H62G7RPC.js');
|
|
11
|
+
require('./chunk-4QH2MTXK.js');
|
|
12
12
|
require('./chunk-2GAU2GHG.js');
|
|
13
13
|
require('./chunk-LFNGKV6F.js');
|
|
14
14
|
require('./chunk-EAQFLLRB.js');
|
|
@@ -16,4 +16,4 @@ require('./chunk-3GQAWCBQ.js');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
exports.getRegistryVersion =
|
|
19
|
+
exports.getRegistryVersion = _chunkHIBDWCFDjs.getRegistryVersion; exports.serveExecutor = _chunkZUYEBE5Gjs.serveExecutor;
|
package/dist/executors.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./chunk-YSCEY447.mjs";
|
|
2
2
|
import {
|
|
3
3
|
getRegistryVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HAPNODYU.mjs";
|
|
5
5
|
import {
|
|
6
6
|
serveExecutor
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-VGT53X45.mjs";
|
|
8
|
+
import "./chunk-HOFAHND6.mjs";
|
|
9
9
|
import "./chunk-RVFKH45R.mjs";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-QCPSAHUZ.mjs";
|
|
11
|
+
import "./chunk-EW7TITVO.mjs";
|
|
12
12
|
import "./chunk-6V45YKVB.mjs";
|
|
13
13
|
import "./chunk-UDLI3L7V.mjs";
|
|
14
14
|
import "./chunk-OA63SGD6.mjs";
|
package/dist/generators.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-DHBG5ASJ.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7MCE2ZUSjs = require('./chunk-7MCE2ZUS.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
7
|
+
var _chunkF3FMMEATjs = require('./chunk-F3FMMEAT.js');
|
|
8
|
+
require('./chunk-U44U5VL3.js');
|
|
9
|
+
require('./chunk-H62G7RPC.js');
|
|
10
|
+
require('./chunk-4QH2MTXK.js');
|
|
11
11
|
require('./chunk-3GQAWCBQ.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
exports.helmChartGeneratorFn =
|
|
15
|
+
exports.helmChartGeneratorFn = _chunk7MCE2ZUSjs.helmChartGeneratorFn; exports.helmDependencyGeneratorFn = _chunkF3FMMEATjs.helmDependencyGeneratorFn;
|
package/dist/generators.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./chunk-3J7KBHMJ.mjs";
|
|
2
2
|
import {
|
|
3
3
|
helmChartGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VLPEFUDC.mjs";
|
|
5
5
|
import {
|
|
6
6
|
helmDependencyGeneratorFn
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-BIWZ2Q24.mjs";
|
|
8
|
+
import "./chunk-ZC5XJYOI.mjs";
|
|
9
|
+
import "./chunk-QCPSAHUZ.mjs";
|
|
10
|
+
import "./chunk-EW7TITVO.mjs";
|
|
11
11
|
import "./chunk-XUV4U54K.mjs";
|
|
12
12
|
export {
|
|
13
13
|
helmChartGeneratorFn,
|
package/dist/index.js
CHANGED
|
@@ -3,26 +3,26 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkILJQ7PUYjs = require('./chunk-ILJQ7PUY.js');
|
|
7
7
|
require('./chunk-XO66D74Z.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkHIBDWCFDjs = require('./chunk-HIBDWCFD.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
14
|
-
require('./chunk-
|
|
13
|
+
var _chunkZUYEBE5Gjs = require('./chunk-ZUYEBE5G.js');
|
|
14
|
+
require('./chunk-PJ4LNF33.js');
|
|
15
15
|
require('./chunk-IOT45LXV.js');
|
|
16
16
|
require('./chunk-DHBG5ASJ.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunk7MCE2ZUSjs = require('./chunk-7MCE2ZUS.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
23
|
-
require('./chunk-
|
|
24
|
-
require('./chunk-
|
|
25
|
-
require('./chunk-
|
|
22
|
+
var _chunkF3FMMEATjs = require('./chunk-F3FMMEAT.js');
|
|
23
|
+
require('./chunk-U44U5VL3.js');
|
|
24
|
+
require('./chunk-H62G7RPC.js');
|
|
25
|
+
require('./chunk-4QH2MTXK.js');
|
|
26
26
|
require('./chunk-U76ID4TS.js');
|
|
27
27
|
|
|
28
28
|
|
|
@@ -54,4 +54,4 @@ require('./chunk-3GQAWCBQ.js');
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
exports.AbstractHelmClient = _chunkLFNGKV6Fjs.AbstractHelmClient; exports.HelmClient = _chunk2GAU2GHGjs.HelmClient; exports.addToPrettierIgnore = _chunkT5WNZJODjs.addToPrettierIgnore; exports.createDependencies =
|
|
57
|
+
exports.AbstractHelmClient = _chunkLFNGKV6Fjs.AbstractHelmClient; exports.HelmClient = _chunk2GAU2GHGjs.HelmClient; exports.addToPrettierIgnore = _chunkT5WNZJODjs.addToPrettierIgnore; exports.createDependencies = _chunkILJQ7PUYjs.createDependencies; exports.createHelmClient = _chunk2GAU2GHGjs.createHelmClient; exports.createNodes = _chunkILJQ7PUYjs.createNodes; exports.description = _chunkILJQ7PUYjs.description; exports.ensureInitialized = _chunkEAQFLLRBjs.ensureInitialized; exports.getRegistryVersion = _chunkHIBDWCFDjs.getRegistryVersion; exports.helmChartGeneratorFn = _chunk7MCE2ZUSjs.helmChartGeneratorFn; exports.helmDependencyGeneratorFn = _chunkF3FMMEATjs.helmDependencyGeneratorFn; exports.name = _chunkILJQ7PUYjs.name; exports.resolveUserExistingPrettierConfig = _chunkT5WNZJODjs.resolveUserExistingPrettierConfig; exports.serveExecutor = _chunkZUYEBE5Gjs.serveExecutor;
|
package/dist/index.mjs
CHANGED
|
@@ -3,26 +3,26 @@ import {
|
|
|
3
3
|
createNodes,
|
|
4
4
|
description,
|
|
5
5
|
name
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DGFLUWWO.mjs";
|
|
7
7
|
import "./chunk-YSCEY447.mjs";
|
|
8
8
|
import {
|
|
9
9
|
getRegistryVersion
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HAPNODYU.mjs";
|
|
11
11
|
import {
|
|
12
12
|
serveExecutor
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-VGT53X45.mjs";
|
|
14
|
+
import "./chunk-HOFAHND6.mjs";
|
|
15
15
|
import "./chunk-RVFKH45R.mjs";
|
|
16
16
|
import "./chunk-3J7KBHMJ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
helmChartGeneratorFn
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VLPEFUDC.mjs";
|
|
20
20
|
import {
|
|
21
21
|
helmDependencyGeneratorFn
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-BIWZ2Q24.mjs";
|
|
23
|
+
import "./chunk-ZC5XJYOI.mjs";
|
|
24
|
+
import "./chunk-QCPSAHUZ.mjs";
|
|
25
|
+
import "./chunk-EW7TITVO.mjs";
|
|
26
26
|
import "./chunk-WWU25UQ4.mjs";
|
|
27
27
|
import {
|
|
28
28
|
addToPrettierIgnore,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../../../chunk-
|
|
4
|
+
var _chunkHIBDWCFDjs = require('../../../chunk-HIBDWCFD.js');
|
|
5
|
+
require('../../../chunk-PJ4LNF33.js');
|
|
6
6
|
require('../../../chunk-IOT45LXV.js');
|
|
7
|
-
require('../../../chunk-
|
|
8
|
-
require('../../../chunk-
|
|
7
|
+
require('../../../chunk-H62G7RPC.js');
|
|
8
|
+
require('../../../chunk-4QH2MTXK.js');
|
|
9
9
|
require('../../../chunk-3GQAWCBQ.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.default =
|
|
13
|
+
exports.default = _chunkHIBDWCFDjs.publishExecutor; exports.getRegistryVersion = _chunkHIBDWCFDjs.getRegistryVersion;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getRegistryVersion,
|
|
3
3
|
publishExecutor
|
|
4
|
-
} from "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
4
|
+
} from "../../../chunk-HAPNODYU.mjs";
|
|
5
|
+
import "../../../chunk-HOFAHND6.mjs";
|
|
6
6
|
import "../../../chunk-RVFKH45R.mjs";
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-QCPSAHUZ.mjs";
|
|
8
|
+
import "../../../chunk-EW7TITVO.mjs";
|
|
9
9
|
import "../../../chunk-XUV4U54K.mjs";
|
|
10
10
|
export {
|
|
11
11
|
publishExecutor as default,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../../../chunk-
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
4
|
+
var _chunkZUYEBE5Gjs = require('../../../chunk-ZUYEBE5G.js');
|
|
5
|
+
require('../../../chunk-PJ4LNF33.js');
|
|
6
|
+
require('../../../chunk-H62G7RPC.js');
|
|
7
|
+
require('../../../chunk-4QH2MTXK.js');
|
|
8
8
|
require('../../../chunk-2GAU2GHG.js');
|
|
9
9
|
require('../../../chunk-LFNGKV6F.js');
|
|
10
10
|
require('../../../chunk-EAQFLLRB.js');
|
|
@@ -12,4 +12,4 @@ require('../../../chunk-3GQAWCBQ.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
exports.default =
|
|
15
|
+
exports.default = _chunkZUYEBE5Gjs.executor_default; exports.serveExecutor = _chunkZUYEBE5Gjs.serveExecutor;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executor_default,
|
|
3
3
|
serveExecutor
|
|
4
|
-
} from "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
4
|
+
} from "../../../chunk-VGT53X45.mjs";
|
|
5
|
+
import "../../../chunk-HOFAHND6.mjs";
|
|
6
|
+
import "../../../chunk-QCPSAHUZ.mjs";
|
|
7
|
+
import "../../../chunk-EW7TITVO.mjs";
|
|
8
8
|
import "../../../chunk-6V45YKVB.mjs";
|
|
9
9
|
import "../../../chunk-UDLI3L7V.mjs";
|
|
10
10
|
import "../../../chunk-OA63SGD6.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../../../chunk-
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
4
|
+
var _chunk7MCE2ZUSjs = require('../../../chunk-7MCE2ZUS.js');
|
|
5
|
+
require('../../../chunk-U44U5VL3.js');
|
|
6
|
+
require('../../../chunk-H62G7RPC.js');
|
|
7
|
+
require('../../../chunk-4QH2MTXK.js');
|
|
8
8
|
require('../../../chunk-3GQAWCBQ.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.default =
|
|
12
|
+
exports.default = _chunk7MCE2ZUSjs.generator_default; exports.helmChartGeneratorFn = _chunk7MCE2ZUSjs.helmChartGeneratorFn;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generator_default,
|
|
3
3
|
helmChartGeneratorFn
|
|
4
|
-
} from "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
4
|
+
} from "../../../chunk-VLPEFUDC.mjs";
|
|
5
|
+
import "../../../chunk-ZC5XJYOI.mjs";
|
|
6
|
+
import "../../../chunk-QCPSAHUZ.mjs";
|
|
7
|
+
import "../../../chunk-EW7TITVO.mjs";
|
|
8
8
|
import "../../../chunk-XUV4U54K.mjs";
|
|
9
9
|
export {
|
|
10
10
|
generator_default as default,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../../../chunk-
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
4
|
+
var _chunkF3FMMEATjs = require('../../../chunk-F3FMMEAT.js');
|
|
5
|
+
require('../../../chunk-U44U5VL3.js');
|
|
6
|
+
require('../../../chunk-H62G7RPC.js');
|
|
7
|
+
require('../../../chunk-4QH2MTXK.js');
|
|
8
8
|
require('../../../chunk-3GQAWCBQ.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.default =
|
|
12
|
+
exports.default = _chunkF3FMMEATjs.generator_default; exports.helmDependencyGeneratorFn = _chunkF3FMMEATjs.helmDependencyGeneratorFn;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generator_default,
|
|
3
3
|
helmDependencyGeneratorFn
|
|
4
|
-
} from "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
4
|
+
} from "../../../chunk-BIWZ2Q24.mjs";
|
|
5
|
+
import "../../../chunk-ZC5XJYOI.mjs";
|
|
6
|
+
import "../../../chunk-QCPSAHUZ.mjs";
|
|
7
|
+
import "../../../chunk-EW7TITVO.mjs";
|
|
8
8
|
import "../../../chunk-XUV4U54K.mjs";
|
|
9
9
|
export {
|
|
10
10
|
generator_default as default,
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkILJQ7PUYjs = require('../../../chunk-ILJQ7PUY.js');
|
|
7
7
|
require('../../../chunk-IOT45LXV.js');
|
|
8
|
-
require('../../../chunk-
|
|
8
|
+
require('../../../chunk-4QH2MTXK.js');
|
|
9
9
|
require('../../../chunk-3GQAWCBQ.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
exports.createDependencies =
|
|
15
|
+
exports.createDependencies = _chunkILJQ7PUYjs.createDependencies; exports.createNodes = _chunkILJQ7PUYjs.createNodes; exports.description = _chunkILJQ7PUYjs.description; exports.name = _chunkILJQ7PUYjs.name;
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
createNodes,
|
|
4
4
|
description,
|
|
5
5
|
name
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-DGFLUWWO.mjs";
|
|
7
7
|
import "../../../chunk-RVFKH45R.mjs";
|
|
8
|
-
import "../../../chunk-
|
|
8
|
+
import "../../../chunk-EW7TITVO.mjs";
|
|
9
9
|
import "../../../chunk-XUV4U54K.mjs";
|
|
10
10
|
export {
|
|
11
11
|
createDependencies,
|