@storm-software/k8s-tools 0.25.19 → 0.25.21
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 +24 -0
- package/README.md +1 -1
- package/dist/chunk-27DDDFDE.mjs +29 -0
- package/dist/{chunk-RKHT4PWO.js → chunk-2SIDLIM5.js} +47 -31
- package/dist/{chunk-2GAU2GHG.js → chunk-4AADQIGW.js} +35 -102
- package/dist/{chunk-T5WNZJOD.js → chunk-7QVOU2PT.js} +3 -11
- package/dist/{chunk-3OATAJ3B.js → chunk-A7ARE63F.js} +83 -55
- package/dist/chunk-ARIMP3W4.mjs +155 -0
- package/dist/{chunk-TNVATOCF.mjs → chunk-BBY7MXHG.mjs} +93 -54
- package/dist/{chunk-OIKG7EMC.js → chunk-DD5DCADP.js} +32 -16
- package/dist/{chunk-IQYUMTUG.js → chunk-GQUK4O4E.js} +30 -23
- package/dist/{chunk-UC4ZBDTX.mjs → chunk-HGXQ6SSU.mjs} +5 -7
- package/dist/{chunk-LFNGKV6F.js → chunk-JSFRUBG5.js} +1 -8
- package/dist/{chunk-LLSJITI4.mjs → chunk-KVKKT3AU.mjs} +24 -13
- package/dist/{chunk-QKTRYJDT.mjs → chunk-MDGD27YL.mjs} +32 -16
- package/dist/{chunk-A2UL7VJH.mjs → chunk-MKWEGZBN.mjs} +31 -24
- package/dist/{chunk-YY3TH3F7.mjs → chunk-MQZUEUAT.mjs} +26 -21
- package/dist/{chunk-F37JQGEZ.mjs → chunk-MWMS7P7U.mjs} +333 -208
- package/dist/{chunk-X7ALQPYH.js → chunk-NMNRCEUZ.js} +21 -12
- package/dist/{chunk-T3C63ATM.mjs → chunk-NWIIGYA4.mjs} +68 -40
- package/dist/{chunk-NJPZBNWH.mjs → chunk-QHFQ2OBL.mjs} +2 -10
- package/dist/chunk-RECJ3G6F.js +21 -0
- package/dist/{chunk-IOT45LXV.js → chunk-RUPAIXLM.js} +59 -38
- package/dist/chunk-RUROM5AC.mjs +136 -0
- package/dist/{chunk-PDHZDUK3.js → chunk-SGNASGK5.js} +94 -55
- package/dist/{chunk-ARMCUBMY.js → chunk-UWVOFPSW.js} +334 -209
- package/dist/{chunk-RDQRJI4Y.mjs → chunk-VREITNWP.mjs} +36 -20
- package/dist/{chunk-EAQFLLRB.js → chunk-XKOZIQT3.js} +6 -8
- package/dist/{chunk-G7TAEXNU.js → chunk-Y2HMMGO2.js} +28 -23
- package/dist/{chunk-YHT26DWR.mjs → chunk-YXXZO2AJ.mjs} +0 -7
- package/dist/executors.js +10 -10
- package/dist/executors.mjs +9 -9
- package/dist/generators.js +7 -7
- package/dist/generators.mjs +6 -6
- package/dist/index.js +15 -15
- package/dist/index.mjs +14 -14
- package/dist/src/executors/container-publish/executor.js +6 -6
- package/dist/src/executors/container-publish/executor.mjs +5 -5
- package/dist/src/executors/helm-package/executor.js +8 -8
- package/dist/src/executors/helm-package/executor.mjs +7 -7
- package/dist/src/generators/helm-chart/generator.js +6 -6
- package/dist/src/generators/helm-chart/generator.mjs +5 -5
- package/dist/src/generators/helm-dependency/generator.js +6 -6
- package/dist/src/generators/helm-dependency/generator.mjs +5 -5
- package/dist/src/plugins/docker/index.js +5 -5
- package/dist/src/plugins/docker/index.mjs +4 -4
- package/dist/src/types.js +3 -3
- package/dist/src/types.mjs +2 -2
- package/dist/src/utils/client.js +5 -5
- package/dist/src/utils/client.mjs +4 -4
- package/dist/src/utils/ensure-init.js +3 -3
- package/dist/src/utils/ensure-init.mjs +2 -2
- package/dist/src/utils/index.js +6 -6
- package/dist/src/utils/index.mjs +5 -5
- package/dist/src/utils/prettier.js +3 -3
- package/dist/src/utils/prettier.mjs +2 -2
- package/dist/tsup.config.js +3 -8
- package/dist/tsup.config.mjs +3 -8
- package/package.json +1 -1
- package/dist/chunk-3GQAWCBQ.js +0 -13
- package/dist/chunk-5JZUTREX.mjs +0 -134
- package/dist/chunk-L2DHGVS5.mjs +0 -21
- package/dist/chunk-ZNGN7YLH.mjs +0 -203
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('../../../chunk-
|
|
8
|
-
require('../../../chunk-
|
|
9
|
-
require('../../../chunk-
|
|
6
|
+
var _chunkY2HMMGO2js = require('../../../chunk-Y2HMMGO2.js');
|
|
7
|
+
require('../../../chunk-RUPAIXLM.js');
|
|
8
|
+
require('../../../chunk-UWVOFPSW.js');
|
|
9
|
+
require('../../../chunk-RECJ3G6F.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
exports.createDependencies =
|
|
15
|
+
exports.createDependencies = _chunkY2HMMGO2js.createDependencies; exports.createNodes = _chunkY2HMMGO2js.createNodes; exports.description = _chunkY2HMMGO2js.description; exports.name = _chunkY2HMMGO2js.name;
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
createNodes,
|
|
4
4
|
description,
|
|
5
5
|
name
|
|
6
|
-
} from "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
9
|
-
import "../../../chunk-
|
|
6
|
+
} from "../../../chunk-MQZUEUAT.mjs";
|
|
7
|
+
import "../../../chunk-ARIMP3W4.mjs";
|
|
8
|
+
import "../../../chunk-MWMS7P7U.mjs";
|
|
9
|
+
import "../../../chunk-27DDDFDE.mjs";
|
|
10
10
|
export {
|
|
11
11
|
createDependencies,
|
|
12
12
|
createNodes,
|
package/dist/src/types.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkJSFRUBG5js = require('../chunk-JSFRUBG5.js');
|
|
4
|
+
require('../chunk-RECJ3G6F.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.AbstractHelmClient =
|
|
7
|
+
exports.AbstractHelmClient = _chunkJSFRUBG5js.AbstractHelmClient;
|
package/dist/src/types.mjs
CHANGED
package/dist/src/utils/client.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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 _chunk4AADQIGWjs = require('../../chunk-4AADQIGW.js');
|
|
5
|
+
require('../../chunk-JSFRUBG5.js');
|
|
6
|
+
require('../../chunk-XKOZIQT3.js');
|
|
7
|
+
require('../../chunk-RECJ3G6F.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.HelmClient =
|
|
11
|
+
exports.HelmClient = _chunk4AADQIGWjs.HelmClient; exports.createHelmClient = _chunk4AADQIGWjs.createHelmClient;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HelmClient,
|
|
3
3
|
createHelmClient
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-RUROM5AC.mjs";
|
|
5
|
+
import "../../chunk-YXXZO2AJ.mjs";
|
|
6
|
+
import "../../chunk-HGXQ6SSU.mjs";
|
|
7
|
+
import "../../chunk-27DDDFDE.mjs";
|
|
8
8
|
export {
|
|
9
9
|
HelmClient,
|
|
10
10
|
createHelmClient
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var _chunkXKOZIQT3js = require('../../chunk-XKOZIQT3.js');
|
|
4
|
+
require('../../chunk-RECJ3G6F.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.ensureInitialized =
|
|
7
|
+
exports.ensureInitialized = _chunkXKOZIQT3js.ensureInitialized;
|
package/dist/src/utils/index.js
CHANGED
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk7QVOU2PTjs = require('../../chunk-7QVOU2PT.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
require('../../chunk-
|
|
9
|
+
var _chunk4AADQIGWjs = require('../../chunk-4AADQIGW.js');
|
|
10
|
+
require('../../chunk-JSFRUBG5.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
14
|
-
require('../../chunk-
|
|
13
|
+
var _chunkXKOZIQT3js = require('../../chunk-XKOZIQT3.js');
|
|
14
|
+
require('../../chunk-RECJ3G6F.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
exports.HelmClient =
|
|
21
|
+
exports.HelmClient = _chunk4AADQIGWjs.HelmClient; exports.addToPrettierIgnore = _chunk7QVOU2PTjs.addToPrettierIgnore; exports.createHelmClient = _chunk4AADQIGWjs.createHelmClient; exports.ensureInitialized = _chunkXKOZIQT3js.ensureInitialized; exports.resolveUserExistingPrettierConfig = _chunk7QVOU2PTjs.resolveUserExistingPrettierConfig;
|
package/dist/src/utils/index.mjs
CHANGED
|
@@ -2,16 +2,16 @@ import "../../chunk-WWU25UQ4.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
addToPrettierIgnore,
|
|
4
4
|
resolveUserExistingPrettierConfig
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-QHFQ2OBL.mjs";
|
|
6
6
|
import {
|
|
7
7
|
HelmClient,
|
|
8
8
|
createHelmClient
|
|
9
|
-
} from "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
9
|
+
} from "../../chunk-RUROM5AC.mjs";
|
|
10
|
+
import "../../chunk-YXXZO2AJ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
ensureInitialized
|
|
13
|
-
} from "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
13
|
+
} from "../../chunk-HGXQ6SSU.mjs";
|
|
14
|
+
import "../../chunk-27DDDFDE.mjs";
|
|
15
15
|
export {
|
|
16
16
|
HelmClient,
|
|
17
17
|
addToPrettierIgnore,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../../chunk-
|
|
4
|
+
var _chunk7QVOU2PTjs = require('../../chunk-7QVOU2PT.js');
|
|
5
|
+
require('../../chunk-RECJ3G6F.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.addToPrettierIgnore =
|
|
9
|
+
exports.addToPrettierIgnore = _chunk7QVOU2PTjs.addToPrettierIgnore; exports.resolveUserExistingPrettierConfig = _chunk7QVOU2PTjs.resolveUserExistingPrettierConfig;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addToPrettierIgnore,
|
|
3
3
|
resolveUserExistingPrettierConfig
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-QHFQ2OBL.mjs";
|
|
5
|
+
import "../../chunk-27DDDFDE.mjs";
|
|
6
6
|
export {
|
|
7
7
|
addToPrettierIgnore,
|
|
8
8
|
resolveUserExistingPrettierConfig
|
package/dist/tsup.config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-RECJ3G6F.js');
|
|
2
2
|
|
|
3
3
|
// tsup.config.ts
|
|
4
4
|
var _tsup = require('tsup');
|
|
@@ -15,10 +15,7 @@ var tsup_config_default = _tsup.defineConfig.call(void 0, [
|
|
|
15
15
|
"./src/plugins/docker/index.ts"
|
|
16
16
|
],
|
|
17
17
|
outDir: "dist",
|
|
18
|
-
format: [
|
|
19
|
-
"cjs",
|
|
20
|
-
"esm"
|
|
21
|
-
],
|
|
18
|
+
format: ["cjs", "esm"],
|
|
22
19
|
platform: "node",
|
|
23
20
|
splitting: true,
|
|
24
21
|
clean: true,
|
|
@@ -26,9 +23,7 @@ var tsup_config_default = _tsup.defineConfig.call(void 0, [
|
|
|
26
23
|
sourcemap: false,
|
|
27
24
|
shims: true,
|
|
28
25
|
tsconfig: "./tsconfig.json",
|
|
29
|
-
external: [
|
|
30
|
-
"@storm-software/workspace-tools"
|
|
31
|
-
]
|
|
26
|
+
external: ["@storm-software/workspace-tools"]
|
|
32
27
|
}
|
|
33
28
|
]);
|
|
34
29
|
|
package/dist/tsup.config.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-27DDDFDE.mjs";
|
|
2
2
|
|
|
3
3
|
// tsup.config.ts
|
|
4
4
|
import { defineConfig } from "tsup";
|
|
@@ -15,10 +15,7 @@ var tsup_config_default = defineConfig([
|
|
|
15
15
|
"./src/plugins/docker/index.ts"
|
|
16
16
|
],
|
|
17
17
|
outDir: "dist",
|
|
18
|
-
format: [
|
|
19
|
-
"cjs",
|
|
20
|
-
"esm"
|
|
21
|
-
],
|
|
18
|
+
format: ["cjs", "esm"],
|
|
22
19
|
platform: "node",
|
|
23
20
|
splitting: true,
|
|
24
21
|
clean: true,
|
|
@@ -26,9 +23,7 @@ var tsup_config_default = defineConfig([
|
|
|
26
23
|
sourcemap: false,
|
|
27
24
|
shims: true,
|
|
28
25
|
tsconfig: "./tsconfig.json",
|
|
29
|
-
external: [
|
|
30
|
-
"@storm-software/workspace-tools"
|
|
31
|
-
]
|
|
26
|
+
external: ["@storm-software/workspace-tools"]
|
|
32
27
|
}
|
|
33
28
|
]);
|
|
34
29
|
export {
|
package/package.json
CHANGED
package/dist/chunk-3GQAWCBQ.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
4
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
5
|
-
}) : x)(function(x) {
|
|
6
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
exports.__name = __name; exports.__require = __require;
|
package/dist/chunk-5JZUTREX.mjs
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__name
|
|
3
|
-
} from "./chunk-L2DHGVS5.mjs";
|
|
4
|
-
|
|
5
|
-
// ../workspace-tools/src/utils/package-helpers.ts
|
|
6
|
-
import { joinPathFragments, readJsonFile } from "@nx/devkit";
|
|
7
|
-
import { existsSync } from "node:fs";
|
|
8
|
-
|
|
9
|
-
// ../workspace-tools/src/utils/project-tags.ts
|
|
10
|
-
var ProjectTagConstants = {
|
|
11
|
-
Language: {
|
|
12
|
-
TAG_ID: "language",
|
|
13
|
-
TYPESCRIPT: "typescript",
|
|
14
|
-
RUST: "rust"
|
|
15
|
-
},
|
|
16
|
-
ProjectType: {
|
|
17
|
-
TAG_ID: "type",
|
|
18
|
-
LIBRARY: "library",
|
|
19
|
-
APPLICATION: "application"
|
|
20
|
-
},
|
|
21
|
-
DistStyle: {
|
|
22
|
-
TAG_ID: "dist-style",
|
|
23
|
-
NORMAL: "normal",
|
|
24
|
-
CLEAN: "clean"
|
|
25
|
-
},
|
|
26
|
-
Provider: {
|
|
27
|
-
TAG_ID: "provider"
|
|
28
|
-
},
|
|
29
|
-
Platform: {
|
|
30
|
-
TAG_ID: "platform",
|
|
31
|
-
NODE: "node",
|
|
32
|
-
BROWSER: "browser",
|
|
33
|
-
NEUTRAL: "neutral",
|
|
34
|
-
WORKER: "worker"
|
|
35
|
-
},
|
|
36
|
-
Registry: {
|
|
37
|
-
TAG_ID: "registry",
|
|
38
|
-
CARGO: "cargo",
|
|
39
|
-
NPM: "npm",
|
|
40
|
-
CONTAINER: "container",
|
|
41
|
-
CYCLONE: "cyclone"
|
|
42
|
-
},
|
|
43
|
-
Plugin: {
|
|
44
|
-
TAG_ID: "plugin"
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
var formatProjectTag = /* @__PURE__ */ __name((variant, value) => {
|
|
48
|
-
return `${variant}:${value}`;
|
|
49
|
-
}, "formatProjectTag");
|
|
50
|
-
var hasProjectTag = /* @__PURE__ */ __name((project, variant) => {
|
|
51
|
-
project.tags = project.tags ?? [];
|
|
52
|
-
const prefix = formatProjectTag(variant, "");
|
|
53
|
-
return project.tags.some((tag) => tag.startsWith(prefix) && tag.length > prefix.length);
|
|
54
|
-
}, "hasProjectTag");
|
|
55
|
-
var getProjectTag = /* @__PURE__ */ __name((project, variant) => {
|
|
56
|
-
if (!hasProjectTag(project, variant)) {
|
|
57
|
-
return void 0;
|
|
58
|
-
}
|
|
59
|
-
project.tags = project.tags ?? [];
|
|
60
|
-
const prefix = formatProjectTag(variant, "");
|
|
61
|
-
const tag = project.tags.find((tag2) => tag2.startsWith(prefix));
|
|
62
|
-
return tag?.replace(prefix, "");
|
|
63
|
-
}, "getProjectTag");
|
|
64
|
-
var isEqualProjectTag = /* @__PURE__ */ __name((project, variant, value) => {
|
|
65
|
-
const tag = getProjectTag(project, variant);
|
|
66
|
-
return !!(tag && tag?.toUpperCase() === value.toUpperCase());
|
|
67
|
-
}, "isEqualProjectTag");
|
|
68
|
-
var addProjectTag = /* @__PURE__ */ __name((project, variant, value, options = {
|
|
69
|
-
overwrite: false
|
|
70
|
-
}) => {
|
|
71
|
-
project.tags = project.tags ?? [];
|
|
72
|
-
if (options.overwrite || !hasProjectTag(project, variant)) {
|
|
73
|
-
project.tags = project.tags.filter((tag) => !tag.startsWith(formatProjectTag(variant, "")));
|
|
74
|
-
project.tags.push(formatProjectTag(variant, value));
|
|
75
|
-
}
|
|
76
|
-
}, "addProjectTag");
|
|
77
|
-
var addPluginProjectTag = /* @__PURE__ */ __name((project, plugin) => {
|
|
78
|
-
project.tags = project.tags ?? [];
|
|
79
|
-
project.tags.push(formatProjectTag(ProjectTagConstants.Plugin.TAG_ID, plugin));
|
|
80
|
-
}, "addPluginProjectTag");
|
|
81
|
-
var setDefaultProjectTags = /* @__PURE__ */ __name((project, plugin) => {
|
|
82
|
-
project.tags = project.tags ?? [];
|
|
83
|
-
addProjectTag(project, ProjectTagConstants.ProjectType.TAG_ID, project.projectType === "application" ? ProjectTagConstants.ProjectType.APPLICATION : ProjectTagConstants.ProjectType.LIBRARY, {
|
|
84
|
-
overwrite: true
|
|
85
|
-
});
|
|
86
|
-
addProjectTag(project, ProjectTagConstants.DistStyle.TAG_ID, project.targets && Object.keys(project.targets).includes("clean-package") ? ProjectTagConstants.DistStyle.CLEAN : ProjectTagConstants.DistStyle.NORMAL, {
|
|
87
|
-
overwrite: true
|
|
88
|
-
});
|
|
89
|
-
addProjectTag(project, ProjectTagConstants.Platform.TAG_ID, project.targets?.build?.options.platform === "node" ? ProjectTagConstants.Platform.NODE : project.targets?.build?.options.platform === "worker" ? ProjectTagConstants.Platform.WORKER : project.targets?.build?.options.platform === "browser" ? ProjectTagConstants.Platform.BROWSER : ProjectTagConstants.Platform.NEUTRAL, {
|
|
90
|
-
overwrite: false
|
|
91
|
-
});
|
|
92
|
-
if (plugin) {
|
|
93
|
-
addPluginProjectTag(project, plugin);
|
|
94
|
-
}
|
|
95
|
-
}, "setDefaultProjectTags");
|
|
96
|
-
|
|
97
|
-
// ../workspace-tools/src/utils/toml.ts
|
|
98
|
-
import TOML from "@ltd/j-toml";
|
|
99
|
-
import { logger } from "@nx/devkit";
|
|
100
|
-
function parseCargoToml(cargoString) {
|
|
101
|
-
if (!cargoString) {
|
|
102
|
-
throw new Error("Cargo.toml is empty");
|
|
103
|
-
}
|
|
104
|
-
return TOML.parse(cargoString, {
|
|
105
|
-
x: {
|
|
106
|
-
comment: true
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
__name(parseCargoToml, "parseCargoToml");
|
|
111
|
-
|
|
112
|
-
// ../workspace-tools/src/utils/package-helpers.ts
|
|
113
|
-
var getPackageInfo = /* @__PURE__ */ __name((project) => {
|
|
114
|
-
if (isEqualProjectTag(project, ProjectTagConstants.Language.TAG_ID, ProjectTagConstants.Language.RUST) && existsSync(joinPathFragments(project.root, "Cargo.toml"))) {
|
|
115
|
-
return {
|
|
116
|
-
type: "Cargo.toml",
|
|
117
|
-
content: parseCargoToml(joinPathFragments(project.root, "Cargo.toml"))
|
|
118
|
-
};
|
|
119
|
-
} else if (isEqualProjectTag(project, ProjectTagConstants.Language.TAG_ID, ProjectTagConstants.Language.TYPESCRIPT) && existsSync(joinPathFragments(project.root, "package.json"))) {
|
|
120
|
-
return {
|
|
121
|
-
type: "package.json",
|
|
122
|
-
content: readJsonFile(joinPathFragments(project.root, "package.json"))
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
return null;
|
|
126
|
-
}, "getPackageInfo");
|
|
127
|
-
|
|
128
|
-
export {
|
|
129
|
-
ProjectTagConstants,
|
|
130
|
-
hasProjectTag,
|
|
131
|
-
isEqualProjectTag,
|
|
132
|
-
setDefaultProjectTags,
|
|
133
|
-
getPackageInfo
|
|
134
|
-
};
|
package/dist/chunk-L2DHGVS5.mjs
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
4
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
5
|
-
}) : x)(function(x) {
|
|
6
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=03667209a675e5896d66bd6058c9830fe9adb022e07ce6b04adc2eb927ede5fd__f9deff99d28cedac02de9c72719d1b4e/node_modules/tsup/assets/esm_shims.js
|
|
11
|
-
import { fileURLToPath } from "url";
|
|
12
|
-
import path from "path";
|
|
13
|
-
var getFilename = /* @__PURE__ */ __name(() => fileURLToPath(import.meta.url), "getFilename");
|
|
14
|
-
var getDirname = /* @__PURE__ */ __name(() => path.dirname(getFilename()), "getDirname");
|
|
15
|
-
var __dirname = /* @__PURE__ */ getDirname();
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
__name,
|
|
19
|
-
__require,
|
|
20
|
-
__dirname
|
|
21
|
-
};
|
package/dist/chunk-ZNGN7YLH.mjs
DELETED
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AbstractHelmClient
|
|
3
|
-
} from "./chunk-YHT26DWR.mjs";
|
|
4
|
-
import {
|
|
5
|
-
ensureInitialized
|
|
6
|
-
} from "./chunk-UC4ZBDTX.mjs";
|
|
7
|
-
import {
|
|
8
|
-
__name
|
|
9
|
-
} from "./chunk-L2DHGVS5.mjs";
|
|
10
|
-
|
|
11
|
-
// src/utils/client.ts
|
|
12
|
-
import { execSync } from "node:child_process";
|
|
13
|
-
function _ts_decorate(decorators, target, key, desc) {
|
|
14
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
15
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
16
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
17
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18
|
-
}
|
|
19
|
-
__name(_ts_decorate, "_ts_decorate");
|
|
20
|
-
function _ts_metadata(k, v) {
|
|
21
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
-
}
|
|
23
|
-
__name(_ts_metadata, "_ts_metadata");
|
|
24
|
-
var HelmClient = class extends AbstractHelmClient {
|
|
25
|
-
static {
|
|
26
|
-
__name(this, "HelmClient");
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Creates an instance of HelmClient
|
|
30
|
-
*/
|
|
31
|
-
constructor() {
|
|
32
|
-
super();
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Package a chart directory into a chart archive
|
|
36
|
-
*
|
|
37
|
-
* @param {PackageOptions} [options]
|
|
38
|
-
*/
|
|
39
|
-
package(options) {
|
|
40
|
-
let chartPath = void 0;
|
|
41
|
-
let output = {};
|
|
42
|
-
try {
|
|
43
|
-
output = this.runCommand([
|
|
44
|
-
"helm",
|
|
45
|
-
"package",
|
|
46
|
-
options.chartFolder,
|
|
47
|
-
"-d",
|
|
48
|
-
options.outputFolder
|
|
49
|
-
]);
|
|
50
|
-
} catch (err) {
|
|
51
|
-
if (err?.stderr.length > 0 && err?.exitCode !== 0) {
|
|
52
|
-
throw new Error(`Failed to package chart: ${err.stderr}`);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
if (output?.stderr.length > 0 && output?.exitCode !== 0) {
|
|
56
|
-
throw new Error(`Failed to package chart: ${output.stderr}`);
|
|
57
|
-
}
|
|
58
|
-
const match = output.stdout?.match(/Successfully packaged chart and saved it to: (.+)/);
|
|
59
|
-
if (!match || match.length < 2) {
|
|
60
|
-
throw new Error("Failed to parse chart path from helm output");
|
|
61
|
-
}
|
|
62
|
-
chartPath = match[1]?.trim();
|
|
63
|
-
return new Promise((resolve) => resolve(chartPath));
|
|
64
|
-
}
|
|
65
|
-
push(options) {
|
|
66
|
-
try {
|
|
67
|
-
this.runCommand([
|
|
68
|
-
"helm",
|
|
69
|
-
"push",
|
|
70
|
-
options.chartPath,
|
|
71
|
-
options.remote
|
|
72
|
-
]);
|
|
73
|
-
} catch (err) {
|
|
74
|
-
if (err?.stderr.length > 0 && err?.exitCode !== 0) {
|
|
75
|
-
throw new Error(`Failed to push chart: ${err.stderr}`);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
dependencyUpdate(chartFolder) {
|
|
80
|
-
try {
|
|
81
|
-
this.runCommand([
|
|
82
|
-
"helm",
|
|
83
|
-
"dependency",
|
|
84
|
-
"update",
|
|
85
|
-
chartFolder
|
|
86
|
-
]);
|
|
87
|
-
} catch (err) {
|
|
88
|
-
if (err?.stderr.length > 0 && err?.exitCode !== 0) {
|
|
89
|
-
throw new Error(`Failed to update chart dependencies: ${err.stderr}`);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
dependencyBuild(chartFolder) {
|
|
94
|
-
try {
|
|
95
|
-
this.runCommand([
|
|
96
|
-
"helm",
|
|
97
|
-
"dependency",
|
|
98
|
-
"build",
|
|
99
|
-
chartFolder
|
|
100
|
-
]);
|
|
101
|
-
} catch (err) {
|
|
102
|
-
if (err?.stderr.length > 0 && err?.exitCode !== 0) {
|
|
103
|
-
throw new Error(`Failed to build chart dependencies: ${err.stderr}`);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
addRepository(name, url) {
|
|
108
|
-
try {
|
|
109
|
-
this.runCommand([
|
|
110
|
-
"helm",
|
|
111
|
-
"repo",
|
|
112
|
-
"add",
|
|
113
|
-
name,
|
|
114
|
-
url
|
|
115
|
-
]);
|
|
116
|
-
} catch (err) {
|
|
117
|
-
if (err?.stderr.length > 0 && err?.exitCode !== 0) {
|
|
118
|
-
throw new Error(`Failed to add repository: ${err.stderr}`);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Initialize Helm
|
|
124
|
-
*
|
|
125
|
-
* @returns A promise
|
|
126
|
-
*/
|
|
127
|
-
async initialize() {
|
|
128
|
-
if (this.initialized) {
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
try {
|
|
132
|
-
this.runCommand([
|
|
133
|
-
"helm",
|
|
134
|
-
"version"
|
|
135
|
-
]);
|
|
136
|
-
} catch (err) {
|
|
137
|
-
if (err?.stderr.length > 0 && err?.exitCode !== 0) {
|
|
138
|
-
throw new Error(`Helm is not installed: ${err.stderr}`);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
return new Promise((resolve) => {
|
|
142
|
-
this.initialized = true;
|
|
143
|
-
resolve();
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
runCommand(commands) {
|
|
147
|
-
return execSync(commands.filter(Boolean).join(" "), {
|
|
148
|
-
encoding: "utf8",
|
|
149
|
-
windowsHide: true,
|
|
150
|
-
maxBuffer: 1024 * 1e6,
|
|
151
|
-
stdio: "pipe"
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
_ts_decorate([
|
|
156
|
-
ensureInitialized,
|
|
157
|
-
_ts_metadata("design:type", Function),
|
|
158
|
-
_ts_metadata("design:paramtypes", [
|
|
159
|
-
typeof PackageOptions === "undefined" ? Object : PackageOptions
|
|
160
|
-
]),
|
|
161
|
-
_ts_metadata("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
162
|
-
], HelmClient.prototype, "package", null);
|
|
163
|
-
_ts_decorate([
|
|
164
|
-
ensureInitialized,
|
|
165
|
-
_ts_metadata("design:type", Function),
|
|
166
|
-
_ts_metadata("design:paramtypes", [
|
|
167
|
-
typeof PushOptions === "undefined" ? Object : PushOptions
|
|
168
|
-
]),
|
|
169
|
-
_ts_metadata("design:returntype", void 0)
|
|
170
|
-
], HelmClient.prototype, "push", null);
|
|
171
|
-
_ts_decorate([
|
|
172
|
-
ensureInitialized,
|
|
173
|
-
_ts_metadata("design:type", Function),
|
|
174
|
-
_ts_metadata("design:paramtypes", [
|
|
175
|
-
String
|
|
176
|
-
]),
|
|
177
|
-
_ts_metadata("design:returntype", void 0)
|
|
178
|
-
], HelmClient.prototype, "dependencyUpdate", null);
|
|
179
|
-
_ts_decorate([
|
|
180
|
-
ensureInitialized,
|
|
181
|
-
_ts_metadata("design:type", Function),
|
|
182
|
-
_ts_metadata("design:paramtypes", [
|
|
183
|
-
String
|
|
184
|
-
]),
|
|
185
|
-
_ts_metadata("design:returntype", void 0)
|
|
186
|
-
], HelmClient.prototype, "dependencyBuild", null);
|
|
187
|
-
_ts_decorate([
|
|
188
|
-
ensureInitialized,
|
|
189
|
-
_ts_metadata("design:type", Function),
|
|
190
|
-
_ts_metadata("design:paramtypes", [
|
|
191
|
-
String,
|
|
192
|
-
String
|
|
193
|
-
]),
|
|
194
|
-
_ts_metadata("design:returntype", void 0)
|
|
195
|
-
], HelmClient.prototype, "addRepository", null);
|
|
196
|
-
var createHelmClient = /* @__PURE__ */ __name(() => {
|
|
197
|
-
return new HelmClient();
|
|
198
|
-
}, "createHelmClient");
|
|
199
|
-
|
|
200
|
-
export {
|
|
201
|
-
HelmClient,
|
|
202
|
-
createHelmClient
|
|
203
|
-
};
|