timonel 2.13.0-beta.1 → 2.13.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
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# [2.13.0](https://github.com/KenkoGeek/timonel/compare/v2.12.2...v2.13.0) (2025-11-24)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **core:** exporting createHelmExpression() from helmYamlSerializer ([#196](https://github.com/KenkoGeek/timonel/issues/196)) ([e9ee2d0](https://github.com/KenkoGeek/timonel/commit/e9ee2d08b6ad305e0652c53e7756240793987861))
|
|
6
|
+
|
|
1
7
|
# [2.13.0-beta.1](https://github.com/KenkoGeek/timonel/compare/v2.12.2...v2.13.0-beta.1) (2025-11-24)
|
|
2
8
|
|
|
3
9
|
### Features
|
package/dist/lib/rutter.js
CHANGED
|
@@ -5,7 +5,7 @@ import { HelmChartWriter } from './helmChartWriter.js';
|
|
|
5
5
|
import { AWSResources } from './resources/cloud/aws/awsResources.js';
|
|
6
6
|
import { createLogger } from './utils/logger.js';
|
|
7
7
|
import { KarpenterResources } from './resources/cloud/aws/karpenterResources.js';
|
|
8
|
-
import { dumpHelmAwareYaml } from './utils/helmYamlSerializer.js';
|
|
8
|
+
import { dumpHelmAwareYaml, isHelmExpression } from './utils/helmYamlSerializer.js';
|
|
9
9
|
import { generateHelpersTemplate } from './utils/helmHelpers.js';
|
|
10
10
|
export class Rutter {
|
|
11
11
|
constructor(props) {
|
|
@@ -169,13 +169,13 @@ ${yamlContent.trim()}
|
|
|
169
169
|
});
|
|
170
170
|
throw new Error('Manifest metadata must have a name');
|
|
171
171
|
}
|
|
172
|
-
if (typeof metadata.name !== 'string') {
|
|
173
|
-
this.logger.error('Validation failed: metadata.name must be a string', {
|
|
172
|
+
if (typeof metadata.name !== 'string' && !isHelmExpression(metadata.name)) {
|
|
173
|
+
this.logger.error('Validation failed: metadata.name must be a string or HelmExpression', {
|
|
174
174
|
operation: 'manifest_validation',
|
|
175
175
|
issue: 'invalid_metadata_name_type',
|
|
176
176
|
actual_type: typeof metadata.name,
|
|
177
177
|
});
|
|
178
|
-
throw new Error('Manifest metadata.name must be a string');
|
|
178
|
+
throw new Error('Manifest metadata.name must be a string or HelmExpression');
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
getMeta() {
|
|
@@ -47,6 +47,9 @@ function preprocessHelmExpressions(obj, depth = 0) {
|
|
|
47
47
|
if (depth > 100) {
|
|
48
48
|
throw new Error('Maximum recursion depth exceeded during Helm preprocessing');
|
|
49
49
|
}
|
|
50
|
+
if (isHelmExpression(obj)) {
|
|
51
|
+
return obj;
|
|
52
|
+
}
|
|
50
53
|
if (typeof obj === 'string') {
|
|
51
54
|
if (detectHelmExpressions(obj).length > 0) {
|
|
52
55
|
return createHelmExpression(obj);
|