@storm-software/k8s-tools 0.25.20 → 0.25.22
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 +21 -0
- package/README.md +1 -2
- 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-O6GINUW7.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-JX444SBM.mjs → chunk-HGXQ6SSU.mjs} +5 -7
- package/dist/{chunk-LFNGKV6F.js → chunk-JSFRUBG5.js} +1 -8
- package/dist/{chunk-J6S35WJI.mjs → chunk-KVKKT3AU.mjs} +24 -13
- package/dist/{chunk-62ANFZAM.mjs → chunk-MDGD27YL.mjs} +32 -16
- package/dist/{chunk-W7D6J5B7.mjs → chunk-MKWEGZBN.mjs} +31 -24
- package/dist/{chunk-GVDO6P4I.mjs → chunk-MQZUEUAT.mjs} +26 -21
- package/dist/{chunk-WKLUVD5C.mjs → chunk-MWMS7P7U.mjs} +333 -208
- package/dist/{chunk-X7ALQPYH.js → chunk-NMNRCEUZ.js} +21 -12
- package/dist/{chunk-QW5CDKJB.mjs → chunk-NWIIGYA4.mjs} +68 -40
- package/dist/{chunk-NEWNDIYG.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-BY6T7Z2T.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-6PFSC5KD.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-PGUUXWTZ.mjs +0 -134
- package/dist/chunk-QLEK7AE4.mjs +0 -203
- package/dist/chunk-WPRKDCZP.mjs +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - K8s Tools
|
|
4
4
|
|
|
5
|
+
## [0.25.22](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.25.22) (2025-04-30)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **esbuild:** Remove swc plugin for ESBuild
|
|
10
|
+
([ad298c288](https://github.com/storm-software/storm-ops/commit/ad298c288))
|
|
11
|
+
- **monorepo:** Regenerate README markdown files
|
|
12
|
+
([933d45f0b](https://github.com/storm-software/storm-ops/commit/933d45f0b))
|
|
13
|
+
|
|
14
|
+
## [0.25.21](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.25.21) (2025-04-30)
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
- **esbuild:** Update script to use .cjs file extension
|
|
19
|
+
([95c4e5abd](https://github.com/storm-software/storm-ops/commit/95c4e5abd))
|
|
20
|
+
|
|
21
|
+
### Miscellaneous
|
|
22
|
+
|
|
23
|
+
- **monorepo:** Regenerate README markdown files
|
|
24
|
+
([17b6c5930](https://github.com/storm-software/storm-ops/commit/17b6c5930))
|
|
25
|
+
|
|
5
26
|
## [0.25.20](https://github.com/storm-software/storm-ops/releases/tag/k8s-tools%400.25.20) (2025-04-30)
|
|
6
27
|
|
|
7
28
|
### Bug Fixes
|
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 -->
|
|
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
-
|
|
44
43
|
## Table of Contents
|
|
45
44
|
|
|
46
45
|
- [Storm Kubernetes Tools](#storm-kubernetes-tools)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
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
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
10
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
11
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12
|
+
if (decorator = decorators[i])
|
|
13
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14
|
+
if (kind && result) __defProp(target, key, result);
|
|
15
|
+
return result;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=616d4d8468728c5caa25e7b97fe871f667b5342103b43bda8e891020bc6b674a__e7bfd10e92d28211ce978b182e37e925/node_modules/tsup/assets/esm_shims.js
|
|
19
|
+
import { fileURLToPath } from "url";
|
|
20
|
+
import path from "path";
|
|
21
|
+
var getFilename = () => fileURLToPath(import.meta.url);
|
|
22
|
+
var getDirname = () => path.dirname(getFilename());
|
|
23
|
+
var __dirname = /* @__PURE__ */ getDirname();
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
__require,
|
|
27
|
+
__decorateClass,
|
|
28
|
+
__dirname
|
|
29
|
+
};
|
|
@@ -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 _chunkDD5DCADPjs = require('./chunk-DD5DCADP.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,45 +12,55 @@ var _chunkOIKG7EMCjs = require('./chunk-OIKG7EMC.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
15
|
+
var _chunkUWVOFPSWjs = require('./chunk-UWVOFPSW.js');
|
|
19
16
|
|
|
20
17
|
// ../workspace-tools/src/base/base-generator.ts
|
|
21
|
-
var withRunGenerator =
|
|
18
|
+
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
22
19
|
skipReadingConfig: false
|
|
23
20
|
}) => async (tree, _options) => {
|
|
24
|
-
const stopwatch =
|
|
21
|
+
const stopwatch = _chunkUWVOFPSWjs.getStopwatch.call(void 0, name);
|
|
25
22
|
let options = _options;
|
|
26
23
|
let config;
|
|
27
24
|
try {
|
|
28
|
-
|
|
25
|
+
_chunkUWVOFPSWjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
29
26
|
|
|
30
27
|
`, config);
|
|
31
|
-
const workspaceRoot =
|
|
28
|
+
const workspaceRoot = _chunkUWVOFPSWjs.findWorkspaceRoot.call(void 0, );
|
|
32
29
|
if (!generatorOptions.skipReadingConfig) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
_chunkUWVOFPSWjs.writeDebug.call(void 0,
|
|
31
|
+
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
32
|
+
- workspaceRoot: ${workspaceRoot}`,
|
|
33
|
+
config
|
|
34
|
+
);
|
|
35
|
+
config = await _chunkUWVOFPSWjs.getConfig.call(void 0, workspaceRoot);
|
|
36
36
|
}
|
|
37
37
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
38
|
-
|
|
39
|
-
options = await Promise.resolve(
|
|
40
|
-
|
|
38
|
+
_chunkUWVOFPSWjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
39
|
+
options = await Promise.resolve(
|
|
40
|
+
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
41
|
+
);
|
|
42
|
+
_chunkUWVOFPSWjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
41
43
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
workspaceRoot: tree.root,
|
|
44
|
+
_chunkUWVOFPSWjs.writeTrace.call(void 0,
|
|
45
|
+
`Generator schema options \u2699\uFE0F
|
|
46
|
+
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
46
47
|
config
|
|
47
|
-
|
|
48
|
+
);
|
|
49
|
+
const tokenized = await _chunkDD5DCADPjs.applyWorkspaceTokens.call(void 0,
|
|
50
|
+
options,
|
|
51
|
+
{ workspaceRoot: tree.root, config },
|
|
52
|
+
_chunkDD5DCADPjs.applyWorkspaceBaseTokens
|
|
53
|
+
);
|
|
48
54
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
49
|
-
|
|
50
|
-
await Promise.resolve(
|
|
51
|
-
|
|
55
|
+
_chunkUWVOFPSWjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
56
|
+
await Promise.resolve(
|
|
57
|
+
generatorOptions.hooks.preProcess(tokenized, config)
|
|
58
|
+
);
|
|
59
|
+
_chunkUWVOFPSWjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
52
60
|
}
|
|
53
|
-
const result = await Promise.resolve(
|
|
61
|
+
const result = await Promise.resolve(
|
|
62
|
+
generatorFn(tree, tokenized, config)
|
|
63
|
+
);
|
|
54
64
|
if (result) {
|
|
55
65
|
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _5 => _5.error, 'optionalAccess', _6 => _6.message]) && typeof _optionalChain([result, 'optionalAccess', _7 => _7.error, 'optionalAccess', _8 => _8.message]) === "string" && _optionalChain([result, 'optionalAccess', _9 => _9.error, 'optionalAccess', _10 => _10.name]) && typeof _optionalChain([result, 'optionalAccess', _11 => _11.error, 'optionalAccess', _12 => _12.name]) === "string") {
|
|
56
66
|
throw new Error(`The ${name} generator failed to run`, {
|
|
@@ -61,25 +71,31 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
61
71
|
}
|
|
62
72
|
}
|
|
63
73
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
64
|
-
|
|
74
|
+
_chunkUWVOFPSWjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
65
75
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
66
|
-
|
|
76
|
+
_chunkUWVOFPSWjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
67
77
|
}
|
|
68
78
|
return () => {
|
|
69
|
-
|
|
79
|
+
_chunkUWVOFPSWjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
70
80
|
`, config);
|
|
71
81
|
};
|
|
72
82
|
} catch (error) {
|
|
73
83
|
return () => {
|
|
74
|
-
|
|
75
|
-
|
|
84
|
+
_chunkUWVOFPSWjs.writeFatal.call(void 0,
|
|
85
|
+
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
86
|
+
config
|
|
87
|
+
);
|
|
88
|
+
_chunkUWVOFPSWjs.writeError.call(void 0,
|
|
89
|
+
`An exception was thrown in the generator's process
|
|
76
90
|
- Details: ${error.message}
|
|
77
|
-
- Stacktrace: ${error.stack}`,
|
|
91
|
+
- Stacktrace: ${error.stack}`,
|
|
92
|
+
config
|
|
93
|
+
);
|
|
78
94
|
};
|
|
79
95
|
} finally {
|
|
80
96
|
stopwatch();
|
|
81
97
|
}
|
|
82
|
-
}
|
|
98
|
+
};
|
|
83
99
|
|
|
84
100
|
|
|
85
101
|
|
|
@@ -1,41 +1,22 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunkJSFRUBG5js = require('./chunk-JSFRUBG5.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkXKOZIQT3js = require('./chunk-XKOZIQT3.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkRECJ3G6Fjs = require('./chunk-RECJ3G6F.js');
|
|
10
10
|
|
|
11
11
|
// src/utils/client.ts
|
|
12
12
|
var _child_process = require('child_process');
|
|
13
|
-
|
|
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
|
-
_chunk3GQAWCBQjs.__name.call(void 0, _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
|
-
_chunk3GQAWCBQjs.__name.call(void 0, _ts_metadata, "_ts_metadata");
|
|
24
|
-
var HelmClient = class extends _chunkLFNGKV6Fjs.AbstractHelmClient {
|
|
25
|
-
static {
|
|
26
|
-
_chunk3GQAWCBQjs.__name.call(void 0, this, "HelmClient");
|
|
27
|
-
}
|
|
13
|
+
var HelmClient = class extends _chunkJSFRUBG5js.AbstractHelmClient {
|
|
28
14
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
15
|
+
* Creates an instance of HelmClient
|
|
16
|
+
*/
|
|
31
17
|
constructor() {
|
|
32
18
|
super();
|
|
33
19
|
}
|
|
34
|
-
/**
|
|
35
|
-
* Package a chart directory into a chart archive
|
|
36
|
-
*
|
|
37
|
-
* @param {PackageOptions} [options]
|
|
38
|
-
*/
|
|
39
20
|
package(options) {
|
|
40
21
|
let chartPath = void 0;
|
|
41
22
|
let output = {};
|
|
@@ -55,7 +36,9 @@ var HelmClient = class extends _chunkLFNGKV6Fjs.AbstractHelmClient {
|
|
|
55
36
|
if (_optionalChain([output, 'optionalAccess', _4 => _4.stderr, 'access', _5 => _5.length]) > 0 && _optionalChain([output, 'optionalAccess', _6 => _6.exitCode]) !== 0) {
|
|
56
37
|
throw new Error(`Failed to package chart: ${output.stderr}`);
|
|
57
38
|
}
|
|
58
|
-
const match = _optionalChain([output, 'access', _7 => _7.stdout, 'optionalAccess', _8 => _8.match, 'call', _9 => _9(
|
|
39
|
+
const match = _optionalChain([output, 'access', _7 => _7.stdout, 'optionalAccess', _8 => _8.match, 'call', _9 => _9(
|
|
40
|
+
/Successfully packaged chart and saved it to: (.+)/
|
|
41
|
+
)]);
|
|
59
42
|
if (!match || match.length < 2) {
|
|
60
43
|
throw new Error("Failed to parse chart path from helm output");
|
|
61
44
|
}
|
|
@@ -64,12 +47,7 @@ var HelmClient = class extends _chunkLFNGKV6Fjs.AbstractHelmClient {
|
|
|
64
47
|
}
|
|
65
48
|
push(options) {
|
|
66
49
|
try {
|
|
67
|
-
this.runCommand([
|
|
68
|
-
"helm",
|
|
69
|
-
"push",
|
|
70
|
-
options.chartPath,
|
|
71
|
-
options.remote
|
|
72
|
-
]);
|
|
50
|
+
this.runCommand(["helm", "push", options.chartPath, options.remote]);
|
|
73
51
|
} catch (err) {
|
|
74
52
|
if (_optionalChain([err, 'optionalAccess', _13 => _13.stderr, 'access', _14 => _14.length]) > 0 && _optionalChain([err, 'optionalAccess', _15 => _15.exitCode]) !== 0) {
|
|
75
53
|
throw new Error(`Failed to push chart: ${err.stderr}`);
|
|
@@ -78,12 +56,7 @@ var HelmClient = class extends _chunkLFNGKV6Fjs.AbstractHelmClient {
|
|
|
78
56
|
}
|
|
79
57
|
dependencyUpdate(chartFolder) {
|
|
80
58
|
try {
|
|
81
|
-
this.runCommand([
|
|
82
|
-
"helm",
|
|
83
|
-
"dependency",
|
|
84
|
-
"update",
|
|
85
|
-
chartFolder
|
|
86
|
-
]);
|
|
59
|
+
this.runCommand(["helm", "dependency", "update", chartFolder]);
|
|
87
60
|
} catch (err) {
|
|
88
61
|
if (_optionalChain([err, 'optionalAccess', _16 => _16.stderr, 'access', _17 => _17.length]) > 0 && _optionalChain([err, 'optionalAccess', _18 => _18.exitCode]) !== 0) {
|
|
89
62
|
throw new Error(`Failed to update chart dependencies: ${err.stderr}`);
|
|
@@ -92,12 +65,7 @@ var HelmClient = class extends _chunkLFNGKV6Fjs.AbstractHelmClient {
|
|
|
92
65
|
}
|
|
93
66
|
dependencyBuild(chartFolder) {
|
|
94
67
|
try {
|
|
95
|
-
this.runCommand([
|
|
96
|
-
"helm",
|
|
97
|
-
"dependency",
|
|
98
|
-
"build",
|
|
99
|
-
chartFolder
|
|
100
|
-
]);
|
|
68
|
+
this.runCommand(["helm", "dependency", "build", chartFolder]);
|
|
101
69
|
} catch (err) {
|
|
102
70
|
if (_optionalChain([err, 'optionalAccess', _19 => _19.stderr, 'access', _20 => _20.length]) > 0 && _optionalChain([err, 'optionalAccess', _21 => _21.exitCode]) !== 0) {
|
|
103
71
|
throw new Error(`Failed to build chart dependencies: ${err.stderr}`);
|
|
@@ -106,13 +74,7 @@ var HelmClient = class extends _chunkLFNGKV6Fjs.AbstractHelmClient {
|
|
|
106
74
|
}
|
|
107
75
|
addRepository(name, url) {
|
|
108
76
|
try {
|
|
109
|
-
this.runCommand([
|
|
110
|
-
"helm",
|
|
111
|
-
"repo",
|
|
112
|
-
"add",
|
|
113
|
-
name,
|
|
114
|
-
url
|
|
115
|
-
]);
|
|
77
|
+
this.runCommand(["helm", "repo", "add", name, url]);
|
|
116
78
|
} catch (err) {
|
|
117
79
|
if (_optionalChain([err, 'optionalAccess', _22 => _22.stderr, 'access', _23 => _23.length]) > 0 && _optionalChain([err, 'optionalAccess', _24 => _24.exitCode]) !== 0) {
|
|
118
80
|
throw new Error(`Failed to add repository: ${err.stderr}`);
|
|
@@ -120,19 +82,16 @@ var HelmClient = class extends _chunkLFNGKV6Fjs.AbstractHelmClient {
|
|
|
120
82
|
}
|
|
121
83
|
}
|
|
122
84
|
/**
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
85
|
+
* Initialize Helm
|
|
86
|
+
*
|
|
87
|
+
* @returns A promise
|
|
88
|
+
*/
|
|
127
89
|
async initialize() {
|
|
128
90
|
if (this.initialized) {
|
|
129
91
|
return;
|
|
130
92
|
}
|
|
131
93
|
try {
|
|
132
|
-
this.runCommand([
|
|
133
|
-
"helm",
|
|
134
|
-
"version"
|
|
135
|
-
]);
|
|
94
|
+
this.runCommand(["helm", "version"]);
|
|
136
95
|
} catch (err) {
|
|
137
96
|
if (_optionalChain([err, 'optionalAccess', _25 => _25.stderr, 'access', _26 => _26.length]) > 0 && _optionalChain([err, 'optionalAccess', _27 => _27.exitCode]) !== 0) {
|
|
138
97
|
throw new Error(`Helm is not installed: ${err.stderr}`);
|
|
@@ -152,50 +111,24 @@ var HelmClient = class extends _chunkLFNGKV6Fjs.AbstractHelmClient {
|
|
|
152
111
|
});
|
|
153
112
|
}
|
|
154
113
|
};
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
_ts_decorate([
|
|
172
|
-
_chunkEAQFLLRBjs.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
|
-
_chunkEAQFLLRBjs.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
|
-
_chunkEAQFLLRBjs.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__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
|
|
114
|
+
_chunkRECJ3G6Fjs.__decorateClass.call(void 0, [
|
|
115
|
+
_chunkXKOZIQT3js.ensureInitialized
|
|
116
|
+
], HelmClient.prototype, "package", 1);
|
|
117
|
+
_chunkRECJ3G6Fjs.__decorateClass.call(void 0, [
|
|
118
|
+
_chunkXKOZIQT3js.ensureInitialized
|
|
119
|
+
], HelmClient.prototype, "push", 1);
|
|
120
|
+
_chunkRECJ3G6Fjs.__decorateClass.call(void 0, [
|
|
121
|
+
_chunkXKOZIQT3js.ensureInitialized
|
|
122
|
+
], HelmClient.prototype, "dependencyUpdate", 1);
|
|
123
|
+
_chunkRECJ3G6Fjs.__decorateClass.call(void 0, [
|
|
124
|
+
_chunkXKOZIQT3js.ensureInitialized
|
|
125
|
+
], HelmClient.prototype, "dependencyBuild", 1);
|
|
126
|
+
_chunkRECJ3G6Fjs.__decorateClass.call(void 0, [
|
|
127
|
+
_chunkXKOZIQT3js.ensureInitialized
|
|
128
|
+
], HelmClient.prototype, "addRepository", 1);
|
|
129
|
+
var createHelmClient = () => {
|
|
197
130
|
return new HelmClient();
|
|
198
|
-
}
|
|
131
|
+
};
|
|
199
132
|
|
|
200
133
|
|
|
201
134
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
3
|
+
var _chunkRECJ3G6Fjs = require('./chunk-RECJ3G6F.js');
|
|
5
4
|
|
|
6
5
|
// src/utils/prettier.ts
|
|
7
6
|
async function resolveUserExistingPrettierConfig() {
|
|
8
7
|
let prettier;
|
|
9
8
|
try {
|
|
10
|
-
prettier =
|
|
9
|
+
prettier = _chunkRECJ3G6Fjs.__require.call(void 0, "prettier");
|
|
11
10
|
} catch (e) {
|
|
12
11
|
return void 0;
|
|
13
12
|
}
|
|
@@ -34,7 +33,6 @@ async function resolveUserExistingPrettierConfig() {
|
|
|
34
33
|
return void 0;
|
|
35
34
|
}
|
|
36
35
|
}
|
|
37
|
-
_chunk3GQAWCBQjs.__name.call(void 0, resolveUserExistingPrettierConfig, "resolveUserExistingPrettierConfig");
|
|
38
36
|
function addToPrettierIgnore(tree, ignore) {
|
|
39
37
|
const ignorePath = `${tree.root}/.prettierignore`;
|
|
40
38
|
if (!tree.exists(ignorePath)) {
|
|
@@ -44,18 +42,12 @@ function addToPrettierIgnore(tree, ignore) {
|
|
|
44
42
|
try {
|
|
45
43
|
const content = tree.read(ignorePath, "utf8") || "";
|
|
46
44
|
const lines = content.split("\n");
|
|
47
|
-
const newContent = [
|
|
48
|
-
.../* @__PURE__ */ new Set([
|
|
49
|
-
...lines,
|
|
50
|
-
...ignore
|
|
51
|
-
])
|
|
52
|
-
].join("\n");
|
|
45
|
+
const newContent = [.../* @__PURE__ */ new Set([...lines, ...ignore])].join("\n");
|
|
53
46
|
tree.write(ignorePath, newContent);
|
|
54
47
|
} catch (error) {
|
|
55
48
|
throw new Error(`Failed to update .prettierignore file: ${String(error)}`);
|
|
56
49
|
}
|
|
57
50
|
}
|
|
58
|
-
_chunk3GQAWCBQjs.__name.call(void 0, addToPrettierIgnore, "addToPrettierIgnore");
|
|
59
51
|
|
|
60
52
|
|
|
61
53
|
|