timonel 0.1.2 → 0.1.5
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 +42 -0
- package/README.md +4 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,48 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.5] - 2025-01-02
|
|
11
|
+
|
|
12
|
+
### Linting
|
|
13
|
+
|
|
14
|
+
- Excluded example directories from main lint script to resolve CI errors
|
|
15
|
+
- Ensure both lint and security:lint scripts ignore example imports
|
|
16
|
+
|
|
17
|
+
## [0.1.4] - 2025-01-02
|
|
18
|
+
|
|
19
|
+
### Updated
|
|
20
|
+
|
|
21
|
+
- Updated TypeScript configuration to use Node16 module and moduleResolution
|
|
22
|
+
- Resolved deprecated moduleResolution warning for TypeScript 7.0 compatibility
|
|
23
|
+
- Modernized module resolution while maintaining CommonJS compatibility
|
|
24
|
+
|
|
25
|
+
### CI
|
|
26
|
+
|
|
27
|
+
- Excluded example directories from security linting to resolve CI import errors
|
|
28
|
+
|
|
29
|
+
## [0.1.3] - 2025-01-02
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
- Fixed Helm chart generation issues with numeric values in YAML
|
|
34
|
+
- Corrected environment variable handling for complex objects
|
|
35
|
+
- Fixed PersistentVolumeClaim volume references
|
|
36
|
+
- Resolved Service port type casting issues
|
|
37
|
+
- Updated examples to use literal numeric values instead of numberRef for critical fields
|
|
38
|
+
|
|
39
|
+
### Changed
|
|
40
|
+
|
|
41
|
+
- Simplified WordPress example to use string environment variables instead of valueFrom objects
|
|
42
|
+
- Updated AWS 2048 example to use literal ports and replicas
|
|
43
|
+
- Improved README documentation with corrected deployment examples
|
|
44
|
+
- Removed redundant DEPLOYMENT.md file from aws-game-2048 example
|
|
45
|
+
|
|
46
|
+
### Documentation
|
|
47
|
+
|
|
48
|
+
- Enhanced main README with better examples and troubleshooting
|
|
49
|
+
- Updated example READMEs with working deployment commands
|
|
50
|
+
- Added notes about numeric value handling in Helm templates
|
|
51
|
+
|
|
10
52
|
## [0.1.2] - 2024-12-19
|
|
11
53
|
|
|
12
54
|
### Added
|
package/README.md
CHANGED
|
@@ -142,11 +142,11 @@ const factory = new ChartFactory({
|
|
|
142
142
|
factory.addDeployment({
|
|
143
143
|
name: 'my-app',
|
|
144
144
|
image: `${valuesRef('image.repository')}:${valuesRef('image.tag')}`,
|
|
145
|
-
replicas:
|
|
145
|
+
replicas: 2,
|
|
146
146
|
containerPort: 80,
|
|
147
147
|
});
|
|
148
148
|
|
|
149
|
-
factory.addService({ name: 'my-app', port:
|
|
149
|
+
factory.addService({ name: 'my-app', port: 80 });
|
|
150
150
|
|
|
151
151
|
// Use a named helper in annotations (example)
|
|
152
152
|
factory.addDeployment({
|
|
@@ -165,9 +165,10 @@ factory.write('dist/charts/my-app');
|
|
|
165
165
|
- You can pass these strings directly into cdk8s constructs; they are preserved in the YAML.
|
|
166
166
|
- `template(name, ctx='.')` and `include(name, ctx='.')`: inject calls to helpers defined in `_helpers.tpl`.
|
|
167
167
|
- `numberRef(path)`, `boolRef(path)`: cast `.Values.*` to numeric/boolean using Sprig
|
|
168
|
-
(`int`, `toBool`). Use
|
|
168
|
+
(`int`, `toBool`). Use for template strings, not direct numeric fields.
|
|
169
169
|
- `stringRef(path)`, `floatRef(path)`: cast `.Values.*` to string/float using Sprig
|
|
170
170
|
(`toString`, `float64`).
|
|
171
|
+
- For numeric fields (ports, replicas), use literal values or template strings with proper casting.
|
|
171
172
|
|
|
172
173
|
## Multi-environment values
|
|
173
174
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "timonel",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Timonel: programmatic Helm chart factory using cdk8s (TypeScript)",
|
|
5
5
|
"bin": {
|
|
6
6
|
"timonel": "dist/cli.js",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"prepare": "husky",
|
|
26
26
|
"prepack": "pnpm build",
|
|
27
27
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
28
|
-
"lint": "eslint . --ext .ts,.tsx",
|
|
28
|
+
"lint": "eslint . --ext .ts,.tsx --ignore-pattern 'example/**'",
|
|
29
29
|
"lint:fix": "eslint . --ext .ts,.tsx --fix",
|
|
30
30
|
"format": "prettier --write .",
|
|
31
31
|
"format:check": "prettier --check .",
|
|
32
|
-
"security:lint": "eslint . --ext .ts,.tsx",
|
|
32
|
+
"security:lint": "eslint . --ext .ts,.tsx --ignore-pattern 'example/**'",
|
|
33
33
|
"security:audit": "pnpm audit --audit-level=moderate",
|
|
34
34
|
"security:check": "pnpm run security:lint && pnpm run security:audit",
|
|
35
35
|
"deps:check": "pnpm outdated",
|