@storm-software/k8s-tools 0.12.0 → 0.18.0
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 +56 -0
- package/{src → dist/src}/generators/helm-chart/schema.d.ts +4 -1
- package/{src → dist/src}/generators/helm-dependency/schema.d.ts +4 -1
- package/dist/src/types.d.mts +31 -0
- package/{src → dist/src}/types.d.ts +9 -6
- package/dist/src/types.js +7 -0
- package/dist/src/types.mjs +7 -0
- package/executors.json +4 -4
- package/generators.json +4 -4
- package/package.json +1 -84
- package/index.d.ts +0 -1
- package/index.js +0 -3267
- package/meta.json +0 -634
- package/src/executors/container-publish/executor.d.ts +0 -7
- package/src/executors/container-publish/executor.js +0 -199
- package/src/executors/helm-package/executor.d.ts +0 -8
- package/src/executors/helm-package/executor.js +0 -252
- package/src/executors/index.d.ts +0 -2
- package/src/generators/helm-chart/files/chart/.helmignore +0 -23
- package/src/generators/helm-chart/files/chart/templates/NOTES.txt +0 -22
- package/src/generators/helm-chart/files/chart/templates/_helpers.yaml +0 -62
- package/src/generators/helm-chart/files/chart/templates/deployment.yaml +0 -68
- package/src/generators/helm-chart/files/chart/templates/hpa.yaml +0 -32
- package/src/generators/helm-chart/files/chart/templates/ingress.yaml +0 -61
- package/src/generators/helm-chart/files/chart/templates/service.yaml +0 -13
- package/src/generators/helm-chart/files/chart/templates/serviceaccount.yaml +0 -13
- package/src/generators/helm-chart/files/chart/templates/test/test-connection.yaml +0 -15
- package/src/generators/helm-chart/generator.d.ts +0 -8
- package/src/generators/helm-chart/generator.js +0 -89
- package/src/generators/helm-dependency/generator.d.ts +0 -8
- package/src/generators/helm-dependency/generator.js +0 -2757
- package/src/generators/index.d.ts +0 -2
- package/src/index.d.ts +0 -3
- package/src/plugins/docker/_dockerfile.d.ts +0 -9
- package/src/plugins/docker/index.d.ts +0 -1
- package/src/plugins/docker/index.js +0 -215
- package/src/plugins/index.d.ts +0 -1
- package/src/utils/client.d.ts +0 -31
- package/src/utils/ensure-init.d.ts +0 -9
- package/src/utils/prettier.d.ts +0 -9
- /package/{src → dist/src}/executors/container-publish/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/container-publish/schema.json +0 -0
- /package/{src → dist/src}/executors/helm-package/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/helm-package/schema.json +0 -0
- /package/{src → dist/src}/generators/helm-chart/files/chart/Chart.yaml.template +0 -0
- /package/{src → dist/src}/generators/helm-chart/files/chart/values.yaml +0 -0
- /package/{src → dist/src}/generators/helm-chart/schema.json +0 -0
- /package/{src → dist/src}/generators/helm-dependency/schema.json +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,59 @@
|
|
|
1
|
+
## 0.18.0 (2025-01-20)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **workspace-tools:** Added new scripts and configuration to Nx preset ([a912e765](https://github.com/storm-software/storm-ops/commit/a912e765))
|
|
6
|
+
- **workspace-tools:** Update Nx plugin packages to use new build/dist infrastructure ([67cd3df2](https://github.com/storm-software/storm-ops/commit/67cd3df2))
|
|
7
|
+
|
|
8
|
+
## 0.17.1 (2025-01-09)
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
- **workspace-tools:** Added additional troubleshooting logging to the package
|
|
13
|
+
([c2cbdcc5](https://github.com/storm-software/storm-ops/commit/c2cbdcc5))
|
|
14
|
+
|
|
15
|
+
## 0.17.0 (2025-01-08)
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
- **build-tools:** Enhanced build options resolving to allow plugin list
|
|
20
|
+
overrides
|
|
21
|
+
([94aa9ac4](https://github.com/storm-software/storm-ops/commit/94aa9ac4))
|
|
22
|
+
|
|
23
|
+
## 0.16.0 (2025-01-02)
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
- **storm-ops:** Updated catalog and JSON schema for `StormConfig` object
|
|
28
|
+
([bf99f680](https://github.com/storm-software/storm-ops/commit/bf99f680))
|
|
29
|
+
|
|
30
|
+
## 0.15.0 (2025-01-02)
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
|
|
34
|
+
- **k8s-tools:** Removed old dynamic modules import
|
|
35
|
+
([81805110](https://github.com/storm-software/storm-ops/commit/81805110))
|
|
36
|
+
|
|
37
|
+
## 0.14.0 (2025-01-02)
|
|
38
|
+
|
|
39
|
+
### Features
|
|
40
|
+
|
|
41
|
+
- **config:** Regenerate the `storm.schema.json` file
|
|
42
|
+
([258c3213](https://github.com/storm-software/storm-ops/commit/258c3213))
|
|
43
|
+
|
|
44
|
+
## 0.13.0 (2024-12-30)
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
- **storm-ops:** Completed enhancement around `catalog` and `workspace`
|
|
49
|
+
dependency upgrades
|
|
50
|
+
([5dd13247](https://github.com/storm-software/storm-ops/commit/5dd13247))
|
|
51
|
+
|
|
52
|
+
### Dependency Upgrades
|
|
53
|
+
|
|
54
|
+
- **storm-ops:** Added consistent `@types/node` versions across repository
|
|
55
|
+
([a569536d](https://github.com/storm-software/storm-ops/commit/a569536d))
|
|
56
|
+
|
|
1
57
|
## 0.12.0 (2024-12-22)
|
|
2
58
|
|
|
3
59
|
### Features
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { BaseGeneratorSchema } from "@storm-software/workspace-tools/base/base-generator.d";
|
|
2
|
+
|
|
3
|
+
export interface HelmChartGeneratorSchema extends BaseGeneratorSchema {
|
|
2
4
|
/** Name of the chart */
|
|
3
5
|
name: string;
|
|
4
6
|
/** Name of the project to add the chart to */
|
|
@@ -7,5 +9,6 @@ export interface HelmChartGeneratorSchema {
|
|
|
7
9
|
chartFolder?: string;
|
|
8
10
|
/** Format the generated chart */
|
|
9
11
|
format?: boolean;
|
|
12
|
+
|
|
10
13
|
[k: string]: unknown;
|
|
11
14
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { BaseGeneratorSchema } from "@storm-software/workspace-tools/base/base-generator.d";
|
|
2
|
+
|
|
3
|
+
export interface HelmDependencyGeneratorSchema extends BaseGeneratorSchema {
|
|
2
4
|
/** Project name */
|
|
3
5
|
project: string;
|
|
4
6
|
/** Chart Name of the Dependency */
|
|
@@ -11,5 +13,6 @@ export interface HelmDependencyGeneratorSchema {
|
|
|
11
13
|
repositoryName: string;
|
|
12
14
|
/** Format the generated files */
|
|
13
15
|
format?: boolean;
|
|
16
|
+
|
|
14
17
|
[k: string]: unknown;
|
|
15
18
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Options } from 'prettier';
|
|
2
|
+
|
|
3
|
+
/** Types for the core library */
|
|
4
|
+
/** Interface for objects that can be initialized */
|
|
5
|
+
interface Initializable {
|
|
6
|
+
initialized: boolean;
|
|
7
|
+
initialize(): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
/** Options for packaging a chart */
|
|
10
|
+
interface PackageOptions {
|
|
11
|
+
chartFolder: string;
|
|
12
|
+
outputFolder: string;
|
|
13
|
+
}
|
|
14
|
+
/** Options for pushing a chart */
|
|
15
|
+
interface PushOptions {
|
|
16
|
+
chartPath: string;
|
|
17
|
+
remote: string;
|
|
18
|
+
}
|
|
19
|
+
/** Abstract class for Helm */
|
|
20
|
+
declare abstract class AbstractHelmClient implements Initializable {
|
|
21
|
+
initialized: boolean;
|
|
22
|
+
abstract package(options: PackageOptions): Promise<string | undefined>;
|
|
23
|
+
initialize(): Promise<void>;
|
|
24
|
+
}
|
|
25
|
+
/** Represents an Prettier ignore file. */
|
|
26
|
+
interface PrettierConfig {
|
|
27
|
+
sourceFilepath: string;
|
|
28
|
+
config: Options;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { AbstractHelmClient, type Initializable, type PackageOptions, type PrettierConfig, type PushOptions };
|
|
@@ -1,28 +1,31 @@
|
|
|
1
|
-
import { Options } from
|
|
1
|
+
import { Options } from 'prettier';
|
|
2
|
+
|
|
2
3
|
/** Types for the core library */
|
|
3
4
|
/** Interface for objects that can be initialized */
|
|
4
|
-
|
|
5
|
+
interface Initializable {
|
|
5
6
|
initialized: boolean;
|
|
6
7
|
initialize(): Promise<void>;
|
|
7
8
|
}
|
|
8
9
|
/** Options for packaging a chart */
|
|
9
|
-
|
|
10
|
+
interface PackageOptions {
|
|
10
11
|
chartFolder: string;
|
|
11
12
|
outputFolder: string;
|
|
12
13
|
}
|
|
13
14
|
/** Options for pushing a chart */
|
|
14
|
-
|
|
15
|
+
interface PushOptions {
|
|
15
16
|
chartPath: string;
|
|
16
17
|
remote: string;
|
|
17
18
|
}
|
|
18
19
|
/** Abstract class for Helm */
|
|
19
|
-
|
|
20
|
+
declare abstract class AbstractHelmClient implements Initializable {
|
|
20
21
|
initialized: boolean;
|
|
21
22
|
abstract package(options: PackageOptions): Promise<string | undefined>;
|
|
22
23
|
initialize(): Promise<void>;
|
|
23
24
|
}
|
|
24
25
|
/** Represents an Prettier ignore file. */
|
|
25
|
-
|
|
26
|
+
interface PrettierConfig {
|
|
26
27
|
sourceFilepath: string;
|
|
27
28
|
config: Options;
|
|
28
29
|
}
|
|
30
|
+
|
|
31
|
+
export { AbstractHelmClient, type Initializable, type PackageOptions, type PrettierConfig, type PushOptions };
|
package/executors.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"executors": {
|
|
3
3
|
"helm-package": {
|
|
4
|
-
"implementation": "./src/executors/helm-package/executor",
|
|
5
|
-
"schema": "./src/executors/helm-package/schema.json",
|
|
4
|
+
"implementation": "./dist/src/executors/helm-package/executor",
|
|
5
|
+
"schema": "./dist/src/executors/helm-package/schema.json",
|
|
6
6
|
"description": "Package Helm charts associated with a project"
|
|
7
7
|
},
|
|
8
8
|
"container-publish": {
|
|
9
|
-
"implementation": "./src/executors/container-publish/executor",
|
|
10
|
-
"schema": "./src/executors/container-publish/schema.json",
|
|
9
|
+
"implementation": "./dist/src/executors/container-publish/executor",
|
|
10
|
+
"schema": "./dist/src/executors/container-publish/schema.json",
|
|
11
11
|
"description": "Deploy an OCI Image Format Specification to a container registry"
|
|
12
12
|
}
|
|
13
13
|
}
|
package/generators.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"generators": {
|
|
3
3
|
"helm-chart": {
|
|
4
|
-
"factory": "./src/generators/helm-chart/generator",
|
|
5
|
-
"schema": "./src/generators/helm-chart/schema.json",
|
|
4
|
+
"factory": "./dist/src/generators/helm-chart/generator",
|
|
5
|
+
"schema": "./dist/src/generators/helm-chart/schema.json",
|
|
6
6
|
"aliases": ["add-chart", "chart"],
|
|
7
7
|
"description": "Generate a new Helm chart"
|
|
8
8
|
},
|
|
9
9
|
"helm-dependency": {
|
|
10
|
-
"factory": "./src/generators/helm-dependency/generator",
|
|
11
|
-
"schema": "./src/generators/helm-dependency/schema.json",
|
|
10
|
+
"factory": "./dist/src/generators/helm-dependency/generator",
|
|
11
|
+
"schema": "./dist/src/generators/helm-dependency/schema.json",
|
|
12
12
|
"aliases": ["add-dependency", "dependency"],
|
|
13
13
|
"description": "Generate a new dependency for an existing Helm chart"
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,84 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@storm-software/k8s-tools",
|
|
3
|
-
"version": "0.12.0",
|
|
4
|
-
"type": "commonjs",
|
|
5
|
-
"description": "Tools for managing Kubernetes (k8s) infrastructure within a Nx workspace.",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "github",
|
|
8
|
-
"url": "https://github.com/storm-software/storm-ops",
|
|
9
|
-
"directory": "packages/k8s-tools"
|
|
10
|
-
},
|
|
11
|
-
"homepage": "https://stormsoftware.com",
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/storm-software/storm-ops/issues",
|
|
14
|
-
"email": "support@stormsoftware.com"
|
|
15
|
-
},
|
|
16
|
-
"author": {
|
|
17
|
-
"name": "Storm Software",
|
|
18
|
-
"email": "contact@stormsoftware.com",
|
|
19
|
-
"url": "https://stormsoftware.com"
|
|
20
|
-
},
|
|
21
|
-
"license": "Apache-2.0",
|
|
22
|
-
"private": false,
|
|
23
|
-
"main": "./index.js",
|
|
24
|
-
"exports": {
|
|
25
|
-
".": "./index.js",
|
|
26
|
-
"./package.json": "./package.json",
|
|
27
|
-
"./generators.json": "./generators.json",
|
|
28
|
-
"./generators/*/schema.json": "./src/generators/*/schema.json",
|
|
29
|
-
"./executors.json": "./executors.json",
|
|
30
|
-
"./executors/*/schema.json": "./src/executors/*/schema.json",
|
|
31
|
-
"./plugins/docker": "./src/plugins/docker/index.js"
|
|
32
|
-
},
|
|
33
|
-
"typings": "./declarations.d.ts",
|
|
34
|
-
"keywords": [
|
|
35
|
-
"storm",
|
|
36
|
-
"storm-ops",
|
|
37
|
-
"kubernetes",
|
|
38
|
-
"k8s",
|
|
39
|
-
"helm",
|
|
40
|
-
"storm-stack",
|
|
41
|
-
"sullivanpj",
|
|
42
|
-
"monorepo"
|
|
43
|
-
],
|
|
44
|
-
"peerDependencies": {
|
|
45
|
-
"@nx-tools/container-metadata": "^6.0.2",
|
|
46
|
-
"@nx-tools/nx-container": "^6.0.2",
|
|
47
|
-
"@nx/devkit": "^20.2.2",
|
|
48
|
-
"@nx/workspace": "^20.2.2",
|
|
49
|
-
"nx": "^20.2.2"
|
|
50
|
-
},
|
|
51
|
-
"peerDependenciesMeta": {
|
|
52
|
-
"@nx-tools/container-metadata": {
|
|
53
|
-
"optional": false
|
|
54
|
-
},
|
|
55
|
-
"@nx-tools/nx-container": {
|
|
56
|
-
"optional": false
|
|
57
|
-
},
|
|
58
|
-
"@nx/devkit": {
|
|
59
|
-
"optional": false
|
|
60
|
-
},
|
|
61
|
-
"@nx/workspace": {
|
|
62
|
-
"optional": false
|
|
63
|
-
},
|
|
64
|
-
"nx": {
|
|
65
|
-
"optional": false
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
"dependencies": {
|
|
69
|
-
"js-yaml": "^4.1.0"
|
|
70
|
-
},
|
|
71
|
-
"devDependencies": {
|
|
72
|
-
"@nx-tools/container-metadata": "^6.0.2",
|
|
73
|
-
"@nx-tools/nx-container": "^6.0.2",
|
|
74
|
-
"@nx/devkit": "^20.2.2",
|
|
75
|
-
"@nx/workspace": "^20.2.2",
|
|
76
|
-
"@types/js-yaml": "4.0.9",
|
|
77
|
-
"nx": "^20.2.2"
|
|
78
|
-
},
|
|
79
|
-
"publishConfig": {
|
|
80
|
-
"access": "public"
|
|
81
|
-
},
|
|
82
|
-
"executors": "./executors.json",
|
|
83
|
-
"generators": "./generators.json"
|
|
84
|
-
}
|
|
1
|
+
{"name":"@storm-software/k8s-tools","version":"0.18.0","description":"Tools for managing Kubernetes (k8s) infrastructure within a Nx workspace.","repository":{"type":"github","url":"https://github.com/storm-software/storm-ops","directory":"packages/k8s-tools"},"homepage":"https://stormsoftware.com","bugs":"https://github.com/storm-software/storm-ops/issues","author":{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"},"license":"Apache-2.0","private":false,"main":"dist/index.js","module":"dist/index.mjs","exports":{"./package.json":"./package.json","./docs/*":"./docs/*","./migrations.json":"./migrations.json","./executors.json":"./executors.json","./executors/*/schema.json":"./dist/src/executors/*/schema.json","./generators.json":"./generators.json","./generators/*/schema.json":"./dist/src/generators/*/schema.json",".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./index":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./executors":{"import":{"types":"./dist/executors.d.mts","default":"./dist/executors.mjs"},"require":{"types":"./dist/executors.d.ts","default":"./dist/executors.js"},"default":{"types":"./dist/executors.d.ts","default":"./dist/executors.js"}},"./generators":{"import":{"types":"./dist/generators.d.mts","default":"./dist/generators.mjs"},"require":{"types":"./dist/generators.d.ts","default":"./dist/generators.js"},"default":{"types":"./dist/generators.d.ts","default":"./dist/generators.js"}},"./types":{"import":{"types":"./dist/src/types.d.mts","default":"./dist/src/types.mjs"},"require":{"types":"./dist/src/types.d.ts","default":"./dist/src/types.js"},"default":{"types":"./dist/src/types.d.ts","default":"./dist/src/types.js"}},"./utils":{"import":{"types":"./dist/src/utils/index.d.mts","default":"./dist/src/utils/index.mjs"},"require":{"types":"./dist/src/utils/index.d.ts","default":"./dist/src/utils/index.js"},"default":{"types":"./dist/src/utils/index.d.ts","default":"./dist/src/utils/index.js"}},"./utils/*":{"import":{"types":"./dist/src/utils/*.d.mts","default":"./dist/src/utils/*.mjs"},"require":{"types":"./dist/src/utils/*.d.ts","default":"./dist/src/utils/*.js"},"default":{"types":"./dist/src/utils/*.d.ts","default":"./dist/src/utils/*.js"}},"./executors/*/executor.js":"./dist/src/executors/*/executor.js","./generators/*/generator.js":"./dist/src/generators/*/generator.js","./plugins/docker":"./dist/src/plugins/docker/index.js"},"typings":"dist/index.d.ts","keywords":["helm","k8s","kubernetes","monorepo","storm","storm-ops","storm-stack","sullivanpj"],"peerDependencies":{"@nx-tools/container-metadata":"^6.0.2","@nx-tools/nx-container":"^6.0.2","@nx/devkit":"^20.3.1","@nx/workspace":"^20.3.1","nx":"^20.3.1"},"peerDependenciesMeta":{"@nx-tools/container-metadata":{"optional":false},"@nx-tools/nx-container":{"optional":false},"@nx/devkit":{"optional":false},"@nx/workspace":{"optional":false},"nx":{"optional":false}},"dependencies":{"js-yaml":"^4.1.0"},"devDependencies":{"@nx-tools/container-metadata":"^6.0.2","@nx-tools/nx-container":"^6.0.2","@nx/devkit":"^20.3.1","@nx/workspace":"^20.3.1","@types/js-yaml":"4.0.9","@types/node":"^22.10.2","nx":"^20.3.1","tsup":"8.3.5","typescript":"^5.7.2","untyped":"^1.5.2"},"publishConfig":{"access":"public"},"executors":"./executors.json","generators":"./generators.json"}
|
package/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./src";
|