@storm-software/k8s-tools 0.24.52 → 0.24.54
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 +16 -0
- package/README.md +1 -1
- package/dist/{chunk-YKCY2BFI.mjs → chunk-6F7C2HU3.mjs} +18 -2
- package/dist/{chunk-SPU642IC.mjs → chunk-6W5RODUW.mjs} +2 -2
- package/dist/{chunk-YYSIGZVO.js → chunk-7AUWIK6E.js} +19 -19
- package/dist/{chunk-N533536N.mjs → chunk-B4EYBY2L.mjs} +2 -2
- package/dist/{chunk-7NBM7KT7.js → chunk-HLHBBX4A.js} +18 -2
- package/dist/{chunk-64PANJDZ.js → chunk-HR2BRBYY.js} +3 -3
- package/dist/{chunk-A2GC2ZJ6.js → chunk-IVE6VJ4S.js} +2 -2
- package/dist/{chunk-M7UG2WDO.js → chunk-L26UZLMQ.js} +4 -4
- package/dist/{chunk-57SYOGC4.mjs → chunk-NWZRYSHG.mjs} +2 -2
- package/dist/{chunk-QPQNIGQZ.js → chunk-PS6CWFTA.js} +6 -6
- package/dist/{chunk-SI4JQREN.mjs → chunk-QVVUYQET.mjs} +2 -2
- package/dist/{chunk-AOIBIGXI.mjs → chunk-SQWTERQC.mjs} +1 -1
- package/dist/{chunk-7LLISIHM.js → chunk-TTASPUAD.js} +25 -25
- package/dist/{chunk-AW7LR6WY.js → chunk-W2HCULDD.js} +4 -4
- package/dist/{chunk-2BTFNEDO.mjs → chunk-Z3R3O2NI.mjs} +2 -2
- package/dist/{chunk-QMHHRTLH.mjs → chunk-ZW6TG4ZS.mjs} +1 -1
- package/dist/{executor-yTjQjOIj.d.ts → executor-DrSw4Xm3.d.mts} +2 -17
- package/dist/{executor-z_O4xSua.d.mts → executor-DrSw4Xm3.d.ts} +2 -17
- package/dist/executors.d.mts +3 -3
- package/dist/executors.d.ts +3 -3
- package/dist/executors.js +5 -5
- package/dist/executors.mjs +4 -4
- package/dist/{generator-CbhBzMc6.d.ts → generator-C4BB5aOn.d.mts} +4 -3
- package/dist/{generator-DqXN4wEq.d.mts → generator-C4BB5aOn.d.ts} +4 -3
- package/dist/{generator-DM4nSpsg.d.mts → generator-CB8TPfuo.d.mts} +4 -3
- package/dist/{generator-Dto9n53o.d.ts → generator-CB8TPfuo.d.ts} +4 -3
- package/dist/generators.d.mts +5 -5
- package/dist/generators.d.ts +5 -5
- package/dist/generators.js +6 -6
- package/dist/generators.mjs +5 -5
- package/dist/index.d.mts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +9 -9
- package/dist/index.mjs +8 -8
- package/dist/src/executors/container-publish/executor.d.mts +1 -2
- package/dist/src/executors/container-publish/executor.d.ts +1 -2
- package/dist/src/executors/container-publish/executor.js +4 -4
- package/dist/src/executors/container-publish/executor.mjs +3 -3
- package/dist/src/executors/helm-package/executor.d.mts +3 -3
- package/dist/src/executors/helm-package/executor.d.ts +3 -3
- package/dist/src/executors/helm-package/executor.js +4 -4
- package/dist/src/executors/helm-package/executor.mjs +3 -3
- package/dist/src/generators/helm-chart/generator.d.mts +4 -4
- package/dist/src/generators/helm-chart/generator.d.ts +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.d.mts +4 -4
- package/dist/src/generators/helm-dependency/generator.d.ts +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 +6 -5
- package/dist/types-BCBFBwnJ.d.mts +0 -20
- package/dist/types-BCBFBwnJ.d.ts +0 -20
- package/dist/types-PmpUoA3H.d.mts +0 -1268
- package/dist/types-PmpUoA3H.d.ts +0 -1268
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - K8s Tools
|
|
4
4
|
|
|
5
|
+
## [0.24.54](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.24.54) (2025-04-07)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
([1ac4c6ad4](https://github.com/storm-software/storm-ops/commit/1ac4c6ad4))
|
|
11
|
+
|
|
12
|
+
## [0.24.53](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.24.53) (2025-04-04)
|
|
13
|
+
|
|
14
|
+
### Miscellaneous
|
|
15
|
+
|
|
16
|
+
- **monorepo:** Regenerate README markdown files
|
|
17
|
+
([30c679ec1](https://github.com/storm-software/storm-ops/commit/30c679ec1))
|
|
18
|
+
- **monorepo:** Ensure consistency between workspace dependencies
|
|
19
|
+
([e635640da](https://github.com/storm-software/storm-ops/commit/e635640da))
|
|
20
|
+
|
|
5
21
|
## [0.24.52](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.24.52) (2025-04-02)
|
|
6
22
|
|
|
7
23
|
### Miscellaneous
|
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 -->
|
|
@@ -366,6 +366,10 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
366
366
|
log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
367
367
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
368
368
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
369
|
+
var errorConfigSchema = z.object({
|
|
370
|
+
codesFile: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
|
|
371
|
+
url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
372
|
+
}).describe("The workspace's error config used during the error process");
|
|
369
373
|
var stormWorkspaceConfigSchema = z.object({
|
|
370
374
|
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
371
375
|
extends: ExtendsSchema.optional(),
|
|
@@ -384,6 +388,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
384
388
|
bot: WorkspaceBotConfigSchema,
|
|
385
389
|
release: WorkspaceReleaseConfigSchema,
|
|
386
390
|
account: WorkspaceAccountConfigSchema,
|
|
391
|
+
error: errorConfigSchema,
|
|
387
392
|
mode: z.enum([
|
|
388
393
|
"development",
|
|
389
394
|
"staging",
|
|
@@ -510,7 +515,10 @@ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
|
|
|
510
515
|
license,
|
|
511
516
|
homepage,
|
|
512
517
|
docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
|
|
513
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license
|
|
518
|
+
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
519
|
+
error: {
|
|
520
|
+
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
521
|
+
}
|
|
514
522
|
};
|
|
515
523
|
}, "getDefaultConfig");
|
|
516
524
|
|
|
@@ -820,6 +828,10 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
|
|
|
820
828
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
821
829
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
822
830
|
},
|
|
831
|
+
error: {
|
|
832
|
+
codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
|
|
833
|
+
url: process.env[`${prefix}ERROR_URL`] || void 0
|
|
834
|
+
},
|
|
823
835
|
account: {
|
|
824
836
|
twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
|
|
825
837
|
discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
|
|
@@ -993,6 +1005,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
993
1005
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
994
1006
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
995
1007
|
}
|
|
1008
|
+
if (config.error) {
|
|
1009
|
+
process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
|
|
1010
|
+
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
1011
|
+
}
|
|
996
1012
|
if (config.release) {
|
|
997
1013
|
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
998
1014
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
@@ -1123,7 +1139,7 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
|
|
|
1123
1139
|
process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
|
|
1124
1140
|
}
|
|
1125
1141
|
if (config.registry.container) {
|
|
1126
|
-
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.
|
|
1142
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
|
|
1127
1143
|
}
|
|
1128
1144
|
}
|
|
1129
1145
|
if (config.logLevel) {
|
|
@@ -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 _chunkIVE6VJ4Sjs = require('./chunk-IVE6VJ4S.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ var _chunkA2GC2ZJ6js = require('./chunk-A2GC2ZJ6.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkHLHBBX4Ajs = require('./chunk-HLHBBX4A.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 = _chunkHLHBBX4Ajs.getStopwatch.call(void 0, name);
|
|
25
25
|
let options = _options;
|
|
26
26
|
let config;
|
|
27
27
|
try {
|
|
28
|
-
|
|
28
|
+
_chunkHLHBBX4Ajs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
29
29
|
|
|
30
30
|
`, config);
|
|
31
|
-
const workspaceRoot =
|
|
31
|
+
const workspaceRoot = _chunkHLHBBX4Ajs.findWorkspaceRoot.call(void 0, );
|
|
32
32
|
if (!generatorOptions.skipReadingConfig) {
|
|
33
|
-
|
|
33
|
+
_chunkHLHBBX4Ajs.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 _chunkHLHBBX4Ajs.getConfig.call(void 0, workspaceRoot);
|
|
36
36
|
}
|
|
37
37
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
38
|
-
|
|
38
|
+
_chunkHLHBBX4Ajs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
39
39
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
40
|
-
|
|
40
|
+
_chunkHLHBBX4Ajs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
_chunkHLHBBX4Ajs.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 _chunkIVE6VJ4Sjs.applyWorkspaceTokens.call(void 0, options, {
|
|
45
45
|
workspaceRoot: tree.root,
|
|
46
46
|
config
|
|
47
|
-
},
|
|
47
|
+
}, _chunkIVE6VJ4Sjs.applyWorkspaceBaseTokens);
|
|
48
48
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
49
|
-
|
|
49
|
+
_chunkHLHBBX4Ajs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
50
50
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
51
|
-
|
|
51
|
+
_chunkHLHBBX4Ajs.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
|
+
_chunkHLHBBX4Ajs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
65
65
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
66
|
-
|
|
66
|
+
_chunkHLHBBX4Ajs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
67
67
|
}
|
|
68
68
|
return () => {
|
|
69
|
-
|
|
69
|
+
_chunkHLHBBX4Ajs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
70
70
|
`, config);
|
|
71
71
|
};
|
|
72
72
|
} catch (error) {
|
|
73
73
|
return () => {
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
_chunkHLHBBX4Ajs.writeFatal.call(void 0, "A fatal error occurred while running the generator - the process was forced to terminate", config);
|
|
75
|
+
_chunkHLHBBX4Ajs.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,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyWorkspaceBaseTokens,
|
|
3
3
|
applyWorkspaceTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SQWTERQC.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findWorkspaceRoot,
|
|
7
7
|
getConfig,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
writeInfo,
|
|
13
13
|
writeSuccess,
|
|
14
14
|
writeTrace
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6F7C2HU3.mjs";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-2BPV2XV2.mjs";
|
|
@@ -366,6 +366,10 @@ var WorkspaceDirectoryConfigSchema = _zod2.default.object({
|
|
|
366
366
|
log: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
|
|
367
367
|
build: _zod2.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
368
368
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
369
|
+
var errorConfigSchema = _zod2.default.object({
|
|
370
|
+
codesFile: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
|
|
371
|
+
url: _zod2.default.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
|
|
372
|
+
}).describe("The workspace's error config used during the error process");
|
|
369
373
|
var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
370
374
|
$schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
371
375
|
extends: ExtendsSchema.optional(),
|
|
@@ -384,6 +388,7 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
|
|
|
384
388
|
bot: WorkspaceBotConfigSchema,
|
|
385
389
|
release: WorkspaceReleaseConfigSchema,
|
|
386
390
|
account: WorkspaceAccountConfigSchema,
|
|
391
|
+
error: errorConfigSchema,
|
|
387
392
|
mode: _zod2.default.enum([
|
|
388
393
|
"development",
|
|
389
394
|
"staging",
|
|
@@ -510,7 +515,10 @@ var getDefaultConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asyn
|
|
|
510
515
|
license,
|
|
511
516
|
homepage,
|
|
512
517
|
docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
|
|
513
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license
|
|
518
|
+
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
519
|
+
error: {
|
|
520
|
+
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
521
|
+
}
|
|
514
522
|
};
|
|
515
523
|
}, "getDefaultConfig");
|
|
516
524
|
|
|
@@ -820,6 +828,10 @@ var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
|
|
|
820
828
|
header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
|
|
821
829
|
footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
|
|
822
830
|
},
|
|
831
|
+
error: {
|
|
832
|
+
codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
|
|
833
|
+
url: process.env[`${prefix}ERROR_URL`] || void 0
|
|
834
|
+
},
|
|
823
835
|
account: {
|
|
824
836
|
twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
|
|
825
837
|
discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
|
|
@@ -993,6 +1005,10 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
|
|
|
993
1005
|
process.env[`${prefix}BOT_NAME`] = config.bot.name;
|
|
994
1006
|
process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
|
|
995
1007
|
}
|
|
1008
|
+
if (config.error) {
|
|
1009
|
+
process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
|
|
1010
|
+
process.env[`${prefix}ERROR_URL`] = config.error.url;
|
|
1011
|
+
}
|
|
996
1012
|
if (config.release) {
|
|
997
1013
|
process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
|
|
998
1014
|
process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
|
|
@@ -1123,7 +1139,7 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
|
|
|
1123
1139
|
process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
|
|
1124
1140
|
}
|
|
1125
1141
|
if (config.registry.container) {
|
|
1126
|
-
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.
|
|
1142
|
+
process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
|
|
1127
1143
|
}
|
|
1128
1144
|
}
|
|
1129
1145
|
if (config.logLevel) {
|
|
@@ -8,7 +8,7 @@ var _chunkIOT45LXVjs = require('./chunk-IOT45LXV.js');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkHLHBBX4Ajs = require('./chunk-HLHBBX4A.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 = _chunkHLHBBX4Ajs.findWorkspaceRoot.call(void 0, );
|
|
39
|
+
const config = await _chunkHLHBBX4Ajs.getConfig.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 _chunkHLHBBX4Ajs = require('./chunk-HLHBBX4A.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(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _2 => _2.config, 'optionalAccess', _3 => _3.workspaceRoot]))), () => (
|
|
35
|
+
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _2 => _2.config, 'optionalAccess', _3 => _3.workspaceRoot]))), () => ( _chunkHLHBBX4Ajs.findWorkspaceRoot.call(void 0, ))));
|
|
36
36
|
}
|
|
37
37
|
return result;
|
|
38
38
|
}, "applyWorkspaceBaseTokens");
|
|
@@ -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 _chunk7AUWIK6Ejs = require('./chunk-7AUWIK6E.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkHLHBBX4Ajs = require('./chunk-HLHBBX4A.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
|
+
_chunkHLHBBX4Ajs.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 = _chunk7AUWIK6Ejs.withRunGenerator.call(void 0, "Helm Chart", helmChartGeneratorFn);
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-QSYJ4VHO.mjs";
|
|
4
4
|
import {
|
|
5
5
|
applyWorkspaceTokens
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SQWTERQC.mjs";
|
|
7
7
|
import {
|
|
8
8
|
findWorkspaceRoot,
|
|
9
9
|
getConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6F7C2HU3.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-2BPV2XV2.mjs";
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
var _chunkIOT45LXVjs = require('./chunk-IOT45LXV.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkIVE6VJ4Sjs = require('./chunk-IVE6VJ4S.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkHLHBBX4Ajs = require('./chunk-HLHBBX4A.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -59,7 +59,7 @@ var applyWorkspaceExecutorTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(
|
|
|
59
59
|
result = result.replaceAll("{sourceRoot}", sourceRoot);
|
|
60
60
|
}
|
|
61
61
|
if (result.includes("{workspaceRoot}")) {
|
|
62
|
-
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(tokenizerOptions.workspaceRoot, () => (
|
|
62
|
+
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _chunkHLHBBX4Ajs.findWorkspaceRoot.call(void 0, ))));
|
|
63
63
|
}
|
|
64
64
|
return result;
|
|
65
65
|
}, "applyWorkspaceExecutorTokens");
|
|
@@ -72,8 +72,8 @@ async function* publishExecutor(options, context) {
|
|
|
72
72
|
throw new Error("The executor requires a projectName.");
|
|
73
73
|
}
|
|
74
74
|
console.info(`\u{1F680} Running Storm Container Registry Publish executor on the ${context.projectName} crate`);
|
|
75
|
-
const workspaceRoot =
|
|
76
|
-
const config = await
|
|
75
|
+
const workspaceRoot = _chunkHLHBBX4Ajs.findWorkspaceRoot.call(void 0, );
|
|
76
|
+
const config = await _chunkHLHBBX4Ajs.getConfig.call(void 0, workspaceRoot);
|
|
77
77
|
const projectConfig = _optionalChain([context, 'access', _2 => _2.projectsConfigurations, 'optionalAccess', _3 => _3.projects, 'access', _4 => _4[context.projectName]]);
|
|
78
78
|
if (!projectConfig) {
|
|
79
79
|
throw new Error(`The executor requires a valid projectsConfiguration - No configuration found for project ${context.projectName}`);
|
|
@@ -82,7 +82,7 @@ async function* publishExecutor(options, context) {
|
|
|
82
82
|
const sourceRoot = _nullishCoalesce(_optionalChain([projectConfig, 'optionalAccess', _6 => _6.sourceRoot]), () => ( workspaceRoot));
|
|
83
83
|
const projectName = _nullishCoalesce(_optionalChain([projectConfig, 'optionalAccess', _7 => _7.name]), () => ( context.projectName));
|
|
84
84
|
config.workspaceRoot = workspaceRoot;
|
|
85
|
-
const tokenized = await
|
|
85
|
+
const tokenized = await _chunkIVE6VJ4Sjs.applyWorkspaceTokens.call(void 0, options, {
|
|
86
86
|
config,
|
|
87
87
|
workspaceRoot,
|
|
88
88
|
projectRoot,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyWorkspaceProjectTokens,
|
|
3
3
|
applyWorkspaceTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SQWTERQC.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findWorkspaceRoot,
|
|
7
7
|
formatLogMessage,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
writeSuccess,
|
|
15
15
|
writeTrace,
|
|
16
16
|
writeWarning
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6F7C2HU3.mjs";
|
|
18
18
|
import {
|
|
19
19
|
createHelmClient
|
|
20
20
|
} from "./chunk-4LVLYUQO.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkIVE6VJ4Sjs = require('./chunk-IVE6VJ4S.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ var _chunkA2GC2ZJ6js = require('./chunk-A2GC2ZJ6.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkHLHBBX4Ajs = require('./chunk-HLHBBX4A.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunk2GAU2GHGjs = require('./chunk-2GAU2GHG.js');
|
|
@@ -25,50 +25,50 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
25
25
|
// ../workspace-tools/src/base/base-executor.ts
|
|
26
26
|
var _defu = require('defu');
|
|
27
27
|
var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
28
|
-
const stopwatch =
|
|
28
|
+
const stopwatch = _chunkHLHBBX4Ajs.getStopwatch.call(void 0, name);
|
|
29
29
|
let options = _options;
|
|
30
30
|
let config = {};
|
|
31
31
|
try {
|
|
32
32
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
33
33
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
34
34
|
}
|
|
35
|
-
const workspaceRoot =
|
|
35
|
+
const workspaceRoot = _chunkHLHBBX4Ajs.findWorkspaceRoot.call(void 0, );
|
|
36
36
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot;
|
|
37
37
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
38
38
|
const projectName = context.projectName;
|
|
39
39
|
config.workspaceRoot = workspaceRoot;
|
|
40
|
-
|
|
40
|
+
_chunkHLHBBX4Ajs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
41
41
|
if (!executorOptions.skipReadingConfig) {
|
|
42
|
-
|
|
42
|
+
_chunkHLHBBX4Ajs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
43
43
|
- workspaceRoot: ${workspaceRoot}
|
|
44
44
|
- projectRoot: ${projectRoot}
|
|
45
45
|
- sourceRoot: ${sourceRoot}
|
|
46
46
|
- projectName: ${projectName}
|
|
47
47
|
`, config);
|
|
48
|
-
config = await
|
|
48
|
+
config = await _chunkHLHBBX4Ajs.getConfig.call(void 0, workspaceRoot);
|
|
49
49
|
}
|
|
50
50
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
51
|
-
|
|
51
|
+
_chunkHLHBBX4Ajs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
52
52
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
53
|
-
|
|
53
|
+
_chunkHLHBBX4Ajs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
${
|
|
55
|
+
_chunkHLHBBX4Ajs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
|
|
56
|
+
${_chunkHLHBBX4Ajs.formatLogMessage.call(void 0, options)}
|
|
57
57
|
`, config);
|
|
58
|
-
const tokenized = await
|
|
58
|
+
const tokenized = await _chunkIVE6VJ4Sjs.applyWorkspaceTokens.call(void 0, options, _defu.defu.call(void 0, {
|
|
59
59
|
workspaceRoot,
|
|
60
60
|
projectRoot,
|
|
61
61
|
sourceRoot,
|
|
62
62
|
projectName,
|
|
63
63
|
config
|
|
64
|
-
}, config, context.projectsConfigurations.projects[context.projectName]),
|
|
65
|
-
|
|
66
|
-
${
|
|
64
|
+
}, config, context.projectsConfigurations.projects[context.projectName]), _chunkIVE6VJ4Sjs.applyWorkspaceProjectTokens);
|
|
65
|
+
_chunkHLHBBX4Ajs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
|
|
66
|
+
${_chunkHLHBBX4Ajs.formatLogMessage.call(void 0, tokenized)}
|
|
67
67
|
`, config);
|
|
68
68
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
69
|
-
|
|
69
|
+
_chunkHLHBBX4Ajs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
70
70
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
71
|
-
|
|
71
|
+
_chunkHLHBBX4Ajs.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', _7 => _7.next]))) {
|
|
@@ -78,26 +78,26 @@ ${_chunk7NBM7KT7js.formatLogMessage.call(void 0, tokenized)}
|
|
|
78
78
|
}
|
|
79
79
|
const result = await Promise.resolve(ret);
|
|
80
80
|
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _8 => _8.error, 'optionalAccess', _9 => _9.message]) && typeof _optionalChain([result, 'optionalAccess', _10 => _10.error, 'optionalAccess', _11 => _11.message]) === "string" && _optionalChain([result, 'optionalAccess', _12 => _12.error, 'optionalAccess', _13 => _13.name]) && typeof _optionalChain([result, 'optionalAccess', _14 => _14.error, 'optionalAccess', _15 => _15.name]) === "string")) {
|
|
81
|
-
|
|
82
|
-
${
|
|
81
|
+
_chunkHLHBBX4Ajs.writeTrace.call(void 0, `Failure determined by the ${name} executor
|
|
82
|
+
${_chunkHLHBBX4Ajs.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', _16 => _16.error])
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
89
|
-
|
|
89
|
+
_chunkHLHBBX4Ajs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
90
90
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
91
|
-
|
|
91
|
+
_chunkHLHBBX4Ajs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
_chunkHLHBBX4Ajs.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
|
+
_chunkHLHBBX4Ajs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
|
|
100
|
+
_chunkHLHBBX4Ajs.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
|
+
_chunkHLHBBX4Ajs.writeWarning.call(void 0, `Chart packaged at: ${chartPath}`, config);
|
|
150
150
|
}
|
|
151
151
|
return {
|
|
152
152
|
success: true
|
|
@@ -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 _chunk7AUWIK6Ejs = require('./chunk-7AUWIK6E.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkHLHBBX4Ajs = require('./chunk-HLHBBX4A.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
|
+
_chunkHLHBBX4Ajs.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 = _chunk7AUWIK6Ejs.withRunGenerator.call(void 0, "Helm Dependency", helmDependencyGeneratorFn);
|
|
31
31
|
function addDependencyToConfig(project, name, url) {
|
|
32
32
|
return {
|
|
33
33
|
...project,
|