@otwld/nx-helm 0.0.8-staging.1 → 0.0.9

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.
Files changed (67) hide show
  1. package/executors.json +15 -10
  2. package/generators.json +3 -15
  3. package/package.json +8 -8
  4. package/src/executors/commands.d.ts +22 -0
  5. package/src/executors/commands.js +113 -0
  6. package/src/executors/commands.js.map +1 -0
  7. package/src/executors/lint.schema.json +9 -0
  8. package/src/executors/package.schema.json +7 -0
  9. package/src/executors/release-publish.schema.json +10 -0
  10. package/src/executors/template.schema.json +12 -0
  11. package/src/generators/chart.d.ts +9 -0
  12. package/src/generators/chart.js +97 -0
  13. package/src/generators/chart.js.map +1 -0
  14. package/src/generators/chart.schema.json +17 -0
  15. package/src/index.d.ts +3 -6
  16. package/src/index.js +3 -11
  17. package/src/index.js.map +1 -1
  18. package/src/plugin.d.ts +7 -0
  19. package/src/plugin.js +65 -0
  20. package/src/plugin.js.map +1 -0
  21. package/src/release/version-actions.d.ts +10 -56
  22. package/src/release/version-actions.js +30 -97
  23. package/src/release/version-actions.js.map +1 -1
  24. package/CHANGELOG.md +0 -48
  25. package/README.md +0 -26
  26. package/src/chart-manifest.d.ts +0 -22
  27. package/src/chart-manifest.js +0 -57
  28. package/src/chart-manifest.js.map +0 -1
  29. package/src/executors/package/package.d.ts +0 -10
  30. package/src/executors/package/package.js +0 -58
  31. package/src/executors/package/package.js.map +0 -1
  32. package/src/executors/package/schema.d.ts +0 -7
  33. package/src/executors/package/schema.json +0 -18
  34. package/src/executors/project-directory.d.ts +0 -8
  35. package/src/executors/project-directory.js +0 -24
  36. package/src/executors/project-directory.js.map +0 -1
  37. package/src/executors/release-publish/release-publish.d.ts +0 -10
  38. package/src/executors/release-publish/release-publish.js +0 -103
  39. package/src/executors/release-publish/release-publish.js.map +0 -1
  40. package/src/executors/release-publish/schema.d.ts +0 -9
  41. package/src/executors/release-publish/schema.json +0 -22
  42. package/src/executors/run-helm.d.ts +0 -7
  43. package/src/executors/run-helm.js +0 -33
  44. package/src/executors/run-helm.js.map +0 -1
  45. package/src/executors/validate/schema.d.ts +0 -11
  46. package/src/executors/validate/schema.json +0 -29
  47. package/src/executors/validate/validate.d.ts +0 -16
  48. package/src/executors/validate/validate.js +0 -51
  49. package/src/executors/validate/validate.js.map +0 -1
  50. package/src/generators/chart/chart.d.ts +0 -10
  51. package/src/generators/chart/chart.js +0 -102
  52. package/src/generators/chart/chart.js.map +0 -1
  53. package/src/generators/chart/schema.d.ts +0 -13
  54. package/src/generators/chart/schema.json +0 -43
  55. package/src/generators/init/init.d.ts +0 -9
  56. package/src/generators/init/init.js +0 -38
  57. package/src/generators/init/init.js.map +0 -1
  58. package/src/generators/init/schema.d.ts +0 -5
  59. package/src/generators/init/schema.json +0 -15
  60. package/src/generators/stack/schema.d.ts +0 -27
  61. package/src/generators/stack/schema.json +0 -50
  62. package/src/generators/stack/stack.d.ts +0 -4
  63. package/src/generators/stack/stack.js +0 -230
  64. package/src/generators/stack/stack.js.map +0 -1
  65. package/src/plugins/plugin.d.ts +0 -38
  66. package/src/plugins/plugin.js +0 -353
  67. package/src/plugins/plugin.js.map +0 -1
@@ -1,112 +1,45 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const node_path_1 = require("node:path");
4
- const release_1 = require("nx/release");
5
- const chart_manifest_1 = require("../chart-manifest");
6
- /**
7
- * Updates the root Chart.yaml owned by one standalone Helm Nx project.
8
- * Chart appVersion values remain independent application metadata.
9
- */
10
- class HelmVersionActions extends release_1.VersionActions {
11
- /** Chart.yaml is the only source manifest managed by this implementation. */
1
+ import { VersionActions } from 'nx/release';
2
+ import { join } from 'node:path';
3
+ import { parseDocument } from 'yaml';
4
+ /** Nx Release version-phase actions for standalone Helm charts. */
5
+ export default class HelmVersionActions extends VersionActions {
12
6
  validManifestFilenames = ['Chart.yaml'];
13
- /**
14
- * Configures the one root manifest for the release lifecycle.
15
- * @returns Nothing; the root manifest path is stored for the release lifecycle.
16
- */
17
- async init() {
18
- const preserveLocalDependencyProtocols = this.finalConfigForProject.preserveLocalDependencyProtocols ?? true;
19
- this.manifestsToUpdate = [
20
- {
21
- manifestPath: this.chartManifestPath,
22
- preserveLocalDependencyProtocols,
23
- },
24
- ];
25
- }
26
- /**
27
- * Validates the root Chart.yaml and its release metadata.
28
- * @param tree Nx's release file tree.
29
- * @returns A resolved promise after validation succeeds.
30
- */
31
- async validate(tree) {
32
- const content = tree.read(this.chartManifestPath, 'utf8');
33
- if (content === null) {
34
- throw new Error(`[nx-helm] Could not find Helm manifest ${this.chartManifestPath}.`);
35
- }
36
- (0, chart_manifest_1.readChartMetadata)(content, this.chartManifestPath);
37
- }
38
- /**
39
- * Reads the current chart version from the root Chart.yaml.
40
- * @param tree Nx's release file tree.
41
- * @returns The current version and manifest path.
42
- */
43
7
  async readCurrentVersionFromSourceManifest(tree) {
44
- const metadata = this.readMetadata(tree);
45
- return {
46
- currentVersion: metadata.version,
47
- manifestPath: this.chartManifestPath,
48
- };
8
+ const manifestPath = join(this.projectGraphNode.data.root, 'Chart.yaml');
9
+ const chart = readChart(tree, manifestPath);
10
+ if (typeof chart.get('version') !== 'string')
11
+ throw new Error(`[nx-helm] ${manifestPath} requires a string version.`);
12
+ return { currentVersion: chart.get('version'), manifestPath };
49
13
  }
50
- /**
51
- * Helm OCI registries are not used for version resolution.
52
- * @returns Null so Nx can report an unsupported registry resolver clearly.
53
- */
54
14
  async readCurrentVersionFromRegistry() {
55
15
  return null;
56
16
  }
57
- /**
58
- * Helm chart dependencies are not represented as Nx package dependencies.
59
- * @returns No dependency version information.
60
- */
61
17
  async readCurrentVersionOfDependency() {
62
- return {
63
- currentVersion: null,
64
- dependencyCollection: null,
65
- };
18
+ return { currentVersion: null, dependencyCollection: null };
66
19
  }
67
- /**
68
- * Writes the new chart version to the root Chart.yaml.
69
- * @param tree Nx's release file tree.
70
- * @param newVersion New semantic chart version.
71
- * @returns A log message for the Nx release output.
72
- */
73
20
  async updateProjectVersion(tree, newVersion) {
74
- const content = tree.read(this.chartManifestPath, 'utf8');
75
- if (content === null) {
76
- throw new Error(`[nx-helm] Could not find Helm manifest ${this.chartManifestPath}.`);
21
+ const messages = [];
22
+ for (const manifest of this.manifestsToUpdate) {
23
+ const chart = readChart(tree, manifest.manifestPath);
24
+ chart.set('version', newVersion);
25
+ tree.write(manifest.manifestPath, chart.toString());
26
+ messages.push(`✍️ New version ${newVersion} written to manifest: ${manifest.manifestPath}`);
77
27
  }
78
- tree.write(this.chartManifestPath, (0, chart_manifest_1.updateChartVersion)(content, this.chartManifestPath, newVersion));
79
- return [
80
- `New Helm chart version ${newVersion} written to ${this.chartManifestPath}`,
81
- ];
28
+ return messages;
82
29
  }
83
- /**
84
- * Helm dependency updates are not supported until chart dependencies have
85
- * corresponding Nx project graph edges.
86
- * @returns No dependency update log messages.
87
- */
88
- async updateProjectDependencies() {
30
+ async updateProjectDependencies(_tree, _projectGraph, dependenciesToUpdate) {
31
+ if (Object.keys(dependenciesToUpdate).length)
32
+ throw new Error('[nx-helm] Helm charts do not update Nx project dependencies during versioning.');
89
33
  return [];
90
34
  }
91
- /**
92
- * Workspace-relative root Chart.yaml path for this release project.
93
- * @returns The root Chart.yaml path.
94
- */
95
- get chartManifestPath() {
96
- return (0, node_path_1.join)(this.projectGraphNode.data.root, 'Chart.yaml');
97
- }
98
- /**
99
- * Reads metadata from the root chart manifest.
100
- * @param tree Nx's release file tree.
101
- * @returns Chart metadata.
102
- */
103
- readMetadata(tree) {
104
- const content = tree.read(this.chartManifestPath, 'utf8');
105
- if (content === null) {
106
- throw new Error(`[nx-helm] Could not find Helm manifest ${this.chartManifestPath}.`);
107
- }
108
- return (0, chart_manifest_1.readChartMetadata)(content, this.chartManifestPath);
109
- }
110
35
  }
111
- exports.default = HelmVersionActions;
36
+ function readChart(tree, path) {
37
+ const content = tree.read(path, 'utf8');
38
+ if (!content)
39
+ throw new Error(`[nx-helm] Missing ${path}.`);
40
+ const chart = parseDocument(content);
41
+ if (chart.errors.length)
42
+ throw new Error(`[nx-helm] Invalid ${path}: ${chart.errors[0].message}`);
43
+ return chart;
44
+ }
112
45
  //# sourceMappingURL=version-actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version-actions.js","sourceRoot":"","sources":["../../../../../../plugins/nx/helm/src/release/version-actions.ts"],"names":[],"mappings":";;AAAA,yCAAiC;AAGjC,wCAA4C;AAE5C,sDAA0E;AAE1E;;;GAGG;AACH,MAAqB,kBAAmB,SAAQ,wBAAc;IAC5D,6EAA6E;IAC7E,sBAAsB,GAAG,CAAC,YAAY,CAAC,CAAC;IAExC;;;OAGG;IACM,KAAK,CAAC,IAAI;QACjB,MAAM,gCAAgC,GACpC,IAAI,CAAC,qBAAqB,CAAC,gCAAgC,IAAI,IAAI,CAAC;QACtE,IAAI,CAAC,iBAAiB,GAAG;YACvB;gBACE,YAAY,EAAE,IAAI,CAAC,iBAAiB;gBACpC,gCAAgC;aACjC;SACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACM,KAAK,CAAC,QAAQ,CAAC,IAAU;QAChC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;QAC1D,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;YACrB,MAAM,IAAI,KAAK,CACb,0CAA0C,IAAI,CAAC,iBAAiB,GAAG,CACpE,CAAC;QACJ,CAAC;QAED,IAAA,kCAAiB,EAAC,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACrD,CAAC;IAED;;;;OAIG;IACM,KAAK,CAAC,oCAAoC,CAAC,IAAU;QAC5D,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QAEzC,OAAO;YACL,cAAc,EAAE,QAAQ,CAAC,OAAO;YAChC,YAAY,EAAE,IAAI,CAAC,iBAAiB;SACrC,CAAC;IACJ,CAAC;IAED;;;OAGG;IACM,K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AAQ,CAAC,YAAY,CAAC,CAAC;YACrD,KAAK,CAAC,GAAG,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;YACjC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;YACpD,QAAQ,CAAC,IAAI,CACX,mBAAmB,UAAU,yBAAyB,QAAQ,CAAC,YAAY,EAAE,CAC9E,CAAC;QACJ,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,yBAAyB,CAC7B,KAAW,EACX,aAA2B,EAC3B,oBAA4C;QAE5C,IAAI,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,MAAM;YAC1C,MAAM,IAAI,KAAK,CACb,gFAAgF,CACjF,CAAC;QACJ,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AAED,SAAS,SAAS,CAAC,IAAU,EAAE,IAAY;IACzC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACxC,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,qBAAqB,IAAI,GAAG,CAAC,CAAC;IAC5D,MAAM,KAAK,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IACrC,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM;QACrB,MAAM,IAAI,KAAK,CAAC,qBAAqB,IAAI,KAAK,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;IAC3E,OAAO,KAAK,CAAC;AACf,CAAC"}
package/CHANGELOG.md DELETED
@@ -1,48 +0,0 @@
1
- ## Unreleased
2
-
3
- ### Breaking Changes
4
-
5
- - Build chart dependencies from the committed lockfile without refreshing Helm
6
- repositories.
7
-
8
- ## 0.0.5 (2026-08-12)
9
-
10
- ### Breaking Changes
11
-
12
- - Infer cache, outputs, and Helm-version runtime inputs directly on standalone
13
- chart targets.
14
- - Replace workspace `validateTarget`, `packageTarget`, and `registry` options
15
- with `validate`, `package`, and `publish.registry`.
16
- - Infer `nx-release-publish` only for configured OCI registries; project
17
- `metadata.helm` can override registry and validation settings or disable
18
- publishing.
19
- - Stop injecting target defaults during plugin initialization and stop adding
20
- organization-specific chart tags.
21
-
22
- ## 0.0.4 (2026-08-12)
23
-
24
- ### 🚀 Features
25
-
26
- - **plugins:** add nx helm and argo plugins ([eb30b828](https://github.com/otwld/devops/commit/eb30b828))
27
-
28
- ### ❤️ Thank You
29
-
30
- - Tréhout Nathan
31
-
32
- ## 0.0.3 (2026-08-12)
33
-
34
- ### 🚀 Features
35
-
36
- - **helm:** add inferred chart projects and nx add setup ([2061556](https://github.com/otwld/monorepo-starter/commit/2061556))
37
- - create nx-helm plugin with validate as a the first executor ([b7784f3](https://github.com/otwld/monorepo-starter/commit/b7784f3))
38
-
39
- ### ❤️ Thank You
40
-
41
- - Tréhout Nathan
42
-
43
- ## 0.0.2 (2026-08-12)
44
-
45
- ### Features
46
-
47
- - Add inferred Helm chart projects and initialization.
48
- - Add Helm validation, packaging, and release publishing.
package/README.md DELETED
@@ -1,26 +0,0 @@
1
- # @otwld/nx-helm
2
-
3
- Nx generators and inferred targets for Helm chart projects. A chart boundary has
4
- `Chart.yaml`, `values.yaml`, templates, and `project.json`.
5
-
6
- ```bash
7
- pnpm exec nx g @otwld/nx-helm:chart service
8
- pnpm exec nx g @otwld/nx-helm:stack public
9
- ```
10
-
11
- Inferred targets include:
12
-
13
- - `helm:validate`: strict lint and rendering;
14
- - `helm:package`: package output under `dist/`;
15
- - `helm:dependency-build`: committed local dependency lock and chart output;
16
- - `nx-release-publish`: only when an OCI registry is configured.
17
-
18
- Workspace defaults live in `nx.json`; project overrides belong in
19
- `project.json` under `metadata.helm`. Dependency builds use committed lockfiles
20
- without refreshing repositories.
21
-
22
- ```bash
23
- pnpm exec nx build nx-helm
24
- pnpm exec nx lint nx-helm
25
- pnpm exec nx test nx-helm
26
- ```
@@ -1,22 +0,0 @@
1
- /** Metadata required to package and publish a Helm chart. */
2
- export interface ChartMetadata {
3
- /** The chart name used in the packaged archive name. */
4
- name: string;
5
- /** The chart version used in the packaged archive name and OCI tag. */
6
- version: string;
7
- }
8
- /**
9
- * Reads and validates the package metadata in a Chart.yaml document.
10
- * @param content Chart.yaml contents.
11
- * @param filePath Chart.yaml path used in validation errors.
12
- * @returns The chart name and semantic version.
13
- */
14
- export declare function readChartMetadata(content: string, filePath: string): ChartMetadata;
15
- /**
16
- * Updates only the Chart.yaml version while retaining the document structure.
17
- * @param content Chart.yaml contents.
18
- * @param filePath Chart.yaml path used in validation errors.
19
- * @param newVersion New semantic chart version.
20
- * @returns Updated Chart.yaml contents.
21
- */
22
- export declare function updateChartVersion(content: string, filePath: string, newVersion: string): string;
@@ -1,57 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.readChartMetadata = readChartMetadata;
4
- exports.updateChartVersion = updateChartVersion;
5
- const semver_1 = require("semver");
6
- const yaml_1 = require("yaml");
7
- /**
8
- * Reads and validates the package metadata in a Chart.yaml document.
9
- * @param content Chart.yaml contents.
10
- * @param filePath Chart.yaml path used in validation errors.
11
- * @returns The chart name and semantic version.
12
- */
13
- function readChartMetadata(content, filePath) {
14
- const document = parseChartDocument(content, filePath);
15
- const name = document.get('name');
16
- const version = document.get('version');
17
- if (typeof name !== 'string' || !name.trim()) {
18
- throw new Error(`Chart ${filePath} must define a non-empty name.`);
19
- }
20
- if (typeof version !== 'string' || !(0, semver_1.valid)(version)) {
21
- throw new Error(`Chart ${filePath} must define a valid semantic version in version.`);
22
- }
23
- return { name, version };
24
- }
25
- /**
26
- * Updates only the Chart.yaml version while retaining the document structure.
27
- * @param content Chart.yaml contents.
28
- * @param filePath Chart.yaml path used in validation errors.
29
- * @param newVersion New semantic chart version.
30
- * @returns Updated Chart.yaml contents.
31
- */
32
- function updateChartVersion(content, filePath, newVersion) {
33
- const document = parseChartDocument(content, filePath);
34
- const currentVersion = document.get('version');
35
- if (typeof currentVersion !== 'string' || !(0, semver_1.valid)(currentVersion)) {
36
- throw new Error(`Chart ${filePath} must define a valid semantic version in version.`);
37
- }
38
- if (!(0, semver_1.valid)(newVersion)) {
39
- throw new Error(`Release version ${newVersion} is not valid semantic version.`);
40
- }
41
- document.set('version', newVersion);
42
- return document.toString();
43
- }
44
- /**
45
- * Parses one Chart.yaml document and reports syntax errors with its path.
46
- * @param content Chart.yaml contents.
47
- * @param filePath Chart.yaml path used in validation errors.
48
- * @returns Parsed YAML document.
49
- */
50
- function parseChartDocument(content, filePath) {
51
- const document = (0, yaml_1.parseDocument)(content, { prettyErrors: false });
52
- if (document.errors.length > 0) {
53
- throw new Error(`Chart ${filePath} contains invalid YAML: ${document.errors[0].message}`);
54
- }
55
- return document;
56
- }
57
- //# sourceMappingURL=chart-manifest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chart-manifest.js","sourceRoot":"","sources":["../../../../../plugins/nx/helm/src/chart-manifest.ts"],"names":[],"mappings":";;AAiBA,8CAkBC;AASD,gDAqBC;AAjED,mCAA+B;AAC/B,+BAAqC;AAUrC;;;;;GAKG;AACH,SAAgB,iBAAiB,CAC/B,OAAe,EACf,QAAgB;IAEhB,MAAM,QAAQ,GAAG,kBAAkB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACvD,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAClC,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAExC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC;QAC7C,MAAM,IAAI,KAAK,CAAC,SAAS,QAAQ,gCAAgC,CAAC,CAAC;IACrE,CAAC;IACD,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,CAAC,IAAA,cAAK,EAAC,OAAO,CAAC,EAAE,CAAC;QACnD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} from './schema';
3
- /**
4
- * Packages the root chart owned by an Nx project into a versioned archive.
5
- * @param options Executor options supplied by Nx.
6
- * @param context Nx's executor context.
7
- * @returns Whether the Helm package operation completed successfully.
8
- */
9
- declare const runExecutor: PromiseExecutor<PackageExecutorSchema>;
10
- export default runExecutor;
@@ -1,58 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const node_fs_1 = require("node:fs");
4
- const node_path_1 = require("node:path");
5
- const chart_manifest_1 = require("../../chart-manifest");
6
- const project_directory_1 = require("../project-directory");
7
- const run_helm_1 = require("../run-helm");
8
- /**
9
- * Packages the root chart owned by an Nx project into a versioned archive.
10
- * @param options Executor options supplied by Nx.
11
- * @param context Nx's executor context.
12
- * @returns Whether the Helm package operation completed successfully.
13
- */
14
- const runExecutor = async (options, context) => {
15
- const projectDirectory = (0, project_directory_1.getProjectDirectory)(context, 'packaging');
16
- if (!projectDirectory) {
17
- return { success: false };
18
- }
19
- const outputDirectory = (0, node_path_1.resolve)(context.root, options.outputPath);
20
- const dryRun = isDryRun(options.dryRun);
21
- try {
22
- const chartFilePath = (0, node_path_1.join)(projectDirectory, 'Chart.yaml');
23
- const metadata = (0, chart_manifest_1.readChartMetadata)((0, node_fs_1.readFileSync)(chartFilePath, 'utf8'), chartFilePath);
24
- const archivePath = (0, node_path_1.join)(outputDirectory, `${metadata.name}-${metadata.version}.tgz`);
25
- if (dryRun) {
26
- console.log(`[nx-helm] Would package chart to ${archivePath}`);
27
- return { success: true };
28
- }
29
- (0, node_fs_1.mkdirSync)(outputDirectory, { recursive: true });
30
- console.log(`[nx-helm] Packaging chart ${projectDirectory}`);
31
- if (!(await (0, run_helm_1.runHelm)(['package', '.', '--destination', outputDirectory], projectDirectory))) {
32
- return { success: false };
33
- }
34
- }
35
- catch (error) {
36
- console.error(`[nx-helm] Could not package chart ${projectDirectory}: ${getErrorMessage(error)}`);
37
- return { success: false };
38
- }
39
- return { success: true };
40
- };
41
- /**
42
- * Checks the Nx dry-run environment and executor option.
43
- * @param optionDryRun Explicit executor dry-run option.
44
- * @returns Whether the operation must avoid filesystem changes.
45
- */
46
- function isDryRun(optionDryRun) {
47
- return optionDryRun === true || process.env['NX_DRY_RUN'] === 'true';
48
- }
49
- /**
50
- * Converts unknown caught values into useful command-line text.
51
- * @param error Caught value.
52
- * @returns Human-readable error text.
53
- */
54
- function getErrorMessage(error) {
55
- return error instanceof Error ? error.message : String(error);
56
- }
57
- exports.default = runExecutor;
58
- //# sourceMappingURL=package.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"package.js","sourceRoot":"","sources":["../../../../../../../plugins/nx/helm/src/executors/package/package.ts"],"names":[],"mappings":";;AAAA,qCAAkD;AAClD,yCAA0C;AAI1C,yDAAyD;AACzD,4DAA2D;AAC3D,0CAAsC;AAGtC;;;;;GAKG;AACH,MAAM,WAAW,GAA2C,KAAK,EAC/D,OAAO,EACP,OAAO,EACP,EAAE;IACF,MAAM,gBAAgB,GAAG,IAAA,uCAAmB,EAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IACnE,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC5B,CAAC;IAED,MAAM,eAAe,GAAG,IAAA,mBAAO,EAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IAClE,MAAM,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAExC,IAAI,CAAC;QACH,MAAM,aAAa,GAAG,IAAA,gBAAI,EAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;QAC3D,MAAM,QAAQ,GAAG,IAAA,kCAAiB,EAChC,IAAA,sBAAY,EAAC,aAAa,EAAE,MAAM,CAAC,EACnC,aAAa,CACd,CAAC;QACF,MAAM,WAAW,GAAG,IAAA,gBAAI,EACtB,eAAe,EACf,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,OAAO,MAAM,CAC3C,CAAC;QAEF,IAAI,MAAM,EAAE,CAAC;YACX,OAAO,CAAC,GAAG,CAAC,oCAAoC,WAAW,EAAE,CAAC,CAAC;YAC/D,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;QAC3B,CAAC;QAED,IAAA,mBAAS,EAAC,eAAe,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAChD,OAAO,CAAC,GAAG,CAAC,6BAA6B,gBAAgB,EAAE,CAAC,CAAC;QAC7D,IACE,CAAC,CAAC,MAAM,IAAA,kBAAO,EACb,CAAC,SAAS,EAAE,GAAG,EAAE,eAAe,EAAE,eAAe,CAAC,EAClD,gBAAgB,CACjB,CAAC,EACF,CAAC;YACD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC5B,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CACX,qCAAqC,gBAAgB,KAAK,eAAe,CAAC,KAAK,CAAC,EAAE,CACnF,CAAC;QACF,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC5B,CAAC;IAED,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC3B,CAAC,CAAC;AAEF;;;;GAIG;AACH,SAAS,QAAQ,CAAC,YAAiC;IACjD,OAAO,YAAY,KAAK,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,KAAK,MAAM,CAAC;AACvE,CAAC;AAED;;;;GAIG;AACH,SAAS,eAAe,CAAC,KAAc;IACrC,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,kBAAe,WAAW,CAAC"}
@@ -1,7 +0,0 @@
1
- /** Options accepted by the Helm package executor. */
2
- export interface PackageExecutorSchema {
3
- /** Workspace-relative directory where the chart archive is written. */
4
- outputPath: string;
5
- /** Whether to report the package operation without writing an archive. */
6
- dryRun?: boolean;
7
- }
@@ -1,18 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/schema",
3
- "version": 2,
4
- "title": "Package executor",
5
- "description": "Package the root Helm chart into a versioned archive.",
6
- "type": "object",
7
- "properties": {
8
- "outputPath": {
9
- "type": "string",
10
- "description": "Workspace-relative directory where the chart archive is written."
11
- },
12
- "dryRun": {
13
- "type": "boolean",
14
- "description": "Report the package operation without writing an archive."
15
- }
16
- },
17
- "required": ["outputPath"]
18
- }
@@ -1,8 +0,0 @@
1
- import type { ExecutorContext } from '@nx/devkit';
2
- /**
3
- * Resolves the owning Nx project directory for a Helm executor.
4
- * @param context Nx's executor context.
5
- * @param operation Operation requiring the project directory.
6
- * @returns The absolute project directory, or undefined when unavailable.
7
- */
8
- export declare function getProjectDirectory(context: ExecutorContext, operation: string): string | undefined;
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getProjectDirectory = getProjectDirectory;
4
- const node_path_1 = require("node:path");
5
- /**
6
- * Resolves the owning Nx project directory for a Helm executor.
7
- * @param context Nx's executor context.
8
- * @param operation Operation requiring the project directory.
9
- * @returns The absolute project directory, or undefined when unavailable.
10
- */
11
- function getProjectDirectory(context, operation) {
12
- const projectName = context.projectName;
13
- if (!projectName) {
14
- console.error(`[nx-helm] Helm ${operation} requires an Nx project context.`);
15
- return undefined;
16
- }
17
- const project = context.projectsConfigurations.projects[projectName];
18
- if (!project) {
19
- console.error(`[nx-helm] Could not resolve Nx project "${projectName}".`);
20
- return undefined;
21
- }
22
- return (0, node_path_1.resolve)(context.root, project.root);
23
- }
24
- //# sourceMappingURL=project-directory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"project-directory.js","sourceRoot":"","sources":["../../../../../../plugins/nx/helm/src/executors/project-directory.ts"],"names":[],"mappings":";;AASA,kDAmBC;AA3BD,yCAAoC;AAEpC;;;;;GAKG;AACH,SAAgB,mBAAmB,CACjC,OAAwB,EACxB,SAAiB;IAEjB,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IACxC,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO,CAAC,KAAK,CACX,kBAAkB,SAAS,kCAAkC,CAC9D,CAAC;QACF,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,OAAO,GAAG,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IACrE,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,2CAA2C,WAAW,IAAI,CAAC,CAAC;QAC1E,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,IAAA,mBAAO,EAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;AAC7C,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { PromiseExecutor } from '@nx/devkit';
2
- import type { ReleasePublishExecutorSchema } from './schema';
3
- /**
4
- * Pushes the root chart archive during `nx release publish`.
5
- * @param options Executor options supplied by Nx.
6
- * @param context Nx's executor context.
7
- * @returns Whether the Helm chart was published successfully.
8
- */
9
- declare const runExecutor: PromiseExecutor<ReleasePublishExecutorSchema>;
10
- export default runExecutor;
@@ -1,103 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const node_fs_1 = require("node:fs");
4
- const node_path_1 = require("node:path");
5
- const chart_manifest_1 = require("../../chart-manifest");
6
- const project_directory_1 = require("../project-directory");
7
- const run_helm_1 = require("../run-helm");
8
- /**
9
- * Pushes the root chart archive during `nx release publish`.
10
- * @param options Executor options supplied by Nx.
11
- * @param context Nx's executor context.
12
- * @returns Whether the Helm chart was published successfully.
13
- */
14
- const runExecutor = async (options, context) => {
15
- const projectDirectory = (0, project_directory_1.getProjectDirectory)(context, 'publishing');
16
- if (!projectDirectory) {
17
- return { success: false };
18
- }
19
- const registry = normalizeRegistry(options.registry);
20
- if (!registry) {
21
- console.error('[nx-helm] Helm release publishing requires an OCI registry such as ' +
22
- 'oci://registry.company.test/charts.');
23
- return { success: false };
24
- }
25
- const outputDirectory = (0, node_path_1.resolve)(context.root, options.outputPath);
26
- const dryRun = isDryRun(options.dryRun);
27
- if (!(await publishChart(projectDirectory, outputDirectory, registry, dryRun))) {
28
- return { success: false };
29
- }
30
- return { success: true };
31
- };
32
- /**
33
- * Normalizes and validates the Helm OCI repository reference.
34
- * @param registry Configured registry repository.
35
- * @returns A normalized OCI repository, or undefined when invalid.
36
- */
37
- function normalizeRegistry(registry) {
38
- let normalized = registry?.trim();
39
- if (!normalized) {
40
- return undefined;
41
- }
42
- while (normalized.endsWith('/')) {
43
- normalized = normalized.slice(0, -1);
44
- }
45
- return normalized.startsWith('oci://') ? normalized : undefined;
46
- }
47
- /**
48
- * Packages an absent archive and pushes one chart archive.
49
- * @param projectDirectory Owning Nx project directory.
50
- * @param outputDirectory Workspace package output directory.
51
- * @param registry OCI repository to receive the chart.
52
- * @param dryRun Whether to avoid package and push operations.
53
- * @returns Whether the chart publish operation succeeded.
54
- */
55
- async function publishChart(projectDirectory, outputDirectory, registry, dryRun) {
56
- try {
57
- const chartFilePath = (0, node_path_1.join)(projectDirectory, 'Chart.yaml');
58
- const metadata = (0, chart_manifest_1.readChartMetadata)((0, node_fs_1.readFileSync)(chartFilePath, 'utf8'), chartFilePath);
59
- const archivePath = (0, node_path_1.join)(outputDirectory, `${metadata.name}-${metadata.version}.tgz`);
60
- if (dryRun) {
61
- if (!(0, node_fs_1.existsSync)(archivePath)) {
62
- console.log(`[nx-helm] Would package chart to ${archivePath}`);
63
- }
64
- console.log(`[nx-helm] Would push ${archivePath} to ${registry}`);
65
- return true;
66
- }
67
- if (!(0, node_fs_1.existsSync)(archivePath)) {
68
- (0, node_fs_1.mkdirSync)(outputDirectory, { recursive: true });
69
- console.log(`[nx-helm] Packaging chart ${projectDirectory}`);
70
- if (!(await (0, run_helm_1.runHelm)(['package', '.', '--destination', outputDirectory], projectDirectory))) {
71
- return false;
72
- }
73
- }
74
- if (!(0, node_fs_1.existsSync)(archivePath)) {
75
- console.error(`[nx-helm] Helm did not create ${archivePath}.`);
76
- return false;
77
- }
78
- console.log(`[nx-helm] Publishing chart ${metadata.name}:${metadata.version}`);
79
- return (0, run_helm_1.runHelm)(['push', archivePath, registry], projectDirectory);
80
- }
81
- catch (error) {
82
- console.error(`[nx-helm] Could not publish chart ${projectDirectory}: ${getErrorMessage(error)}`);
83
- return false;
84
- }
85
- }
86
- /**
87
- * Checks the Nx dry-run environment and executor option.
88
- * @param optionDryRun Explicit executor dry-run option.
89
- * @returns Whether the operation must avoid publishing.
90
- */
91
- function isDryRun(optionDryRun) {
92
- return optionDryRun === true || process.env['NX_DRY_RUN'] === 'true';
93
- }
94
- /**
95
- * Converts unknown caught values into useful command-line text.
96
- * @param error Caught value.
97
- * @returns Human-readable error text.
98
- */
99
- function getErrorMessage(error) {
100
- return error instanceof Error ? error.message : String(error);
101
- }
102
- exports.default = runExecutor;
103
- //# sourceMappingURL=release-publish.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"release-publish.js","sourceRoot":"","sources":["../../../../../../../plugins/nx/helm/src/executors/release-publish/release-publish.ts"],"names":[],"mappings":";;AAAA,qCAA8D;AAC9D,yCAA0C;AAI1C,yDAAyD;AACzD,4DAA2D;AAC3D,0CAAsC;AAGtC;;;;;GAKG;AACH,MAAM,WAAW,GAAkD,KAAK,EACtE,OAAO,EACP,OAAO,EACP,EAAE;IACF,MAAM,gBAAgB,GAAG,IAAA,uCAAmB,EAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IACpE,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC5B,CAAC;IAED,MAAM,QAAQ,GAAG,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACrD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,CA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,CACX,qCAAqC,gBAAgB,KAAK,eAAe,CAAC,KAAK,CAAC,EAAE,CACnF,CAAC;QACF,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,SAAS,QAAQ,CAAC,YAAiC;IACjD,OAAO,YAAY,KAAK,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,KAAK,MAAM,CAAC;AACvE,CAAC;AAED;;;;GAIG;AACH,SAAS,eAAe,CAAC,KAAc;IACrC,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,kBAAe,WAAW,CAAC"}
@@ -1,9 +0,0 @@
1
- /** Options accepted by the Helm Nx Release publish executor. */
2
- export interface ReleasePublishExecutorSchema {
3
- /** Workspace-relative directory containing the packaged chart archive. */
4
- outputPath: string;
5
- /** OCI registry repository without chart name or version tag. */
6
- registry?: string;
7
- /** Whether to report the publish operation without pushing an archive. */
8
- dryRun?: boolean;
9
- }
@@ -1,22 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/schema",
3
- "version": 2,
4
- "title": "Release publish executor",
5
- "description": "Push the packaged root Helm chart to an OCI registry during nx release publish.",
6
- "type": "object",
7
- "properties": {
8
- "outputPath": {
9
- "type": "string",
10
- "description": "Workspace-relative directory containing the packaged chart archive."
11
- },
12
- "registry": {
13
- "type": "string",
14
- "description": "OCI registry repository without chart name or version tag."
15
- },
16
- "dryRun": {
17
- "type": "boolean",
18
- "description": "Report the publish operation without pushing an archive."
19
- }
20
- },
21
- "required": ["outputPath"]
22
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * Runs one Helm command without invoking a shell.
3
- * @param arguments_ Helm command arguments.
4
- * @param cwd Working directory for the Helm process.
5
- * @returns Whether Helm exited successfully.
6
- */
7
- export declare function runHelm(arguments_: string[], cwd: string): Promise<boolean>;