@storm-software/k8s-tools 0.17.1 → 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 +7 -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 -1
- package/index.d.ts +0 -1
- package/index.js +0 -3269
- package/meta.json +0 -654
- 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 -242
- 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 -79
- package/src/generators/helm-dependency/generator.d.ts +0 -8
- package/src/generators/helm-dependency/generator.js +0 -2747
- 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 -206
- 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,10 @@
|
|
|
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
|
+
|
|
1
8
|
## 0.17.1 (2025-01-09)
|
|
2
9
|
|
|
3
10
|
### Bug Fixes
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"name":"@storm-software/k8s-tools","version":"0.
|
|
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";
|