@intentius/chant-lexicon-helm 0.34.0 → 0.37.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/dist/codegen/docs.d.ts.map +1 -1
- package/dist/integrity.json +2 -2
- package/dist/manifest.json +1 -1
- package/package.json +2 -2
- package/src/codegen/docs.ts +13 -41
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../src/codegen/docs.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA2FH,wBAAsB,YAAY,CAAC,IAAI,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../src/codegen/docs.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA2FH,wBAAsB,YAAY,CAAC,IAAI,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA0W9E"}
|
package/dist/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "710a649f8d78277de5ff4ecb9179b85dc14d0e6109d39f1aec4fd3c7c0f88d34",
|
|
5
5
|
"meta.json": "14243c5730a07c6a6edc35ddd351438547d58df5cf345f2233a355b0c7611ccc",
|
|
6
6
|
"types/index.d.ts": "5377696ca8698cd2999e4680feb8e8e4b54a7b49fb603a87b2f27356114d1794",
|
|
7
7
|
"rules/chart-metadata.ts": "8f3377e893d5e2828460b7fe5924fca098334245a9a2fdb90f6b67e490eaf091",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"skills/chant-helm-patterns.md": "9e79e6a46391da46709d8aa57e2825a7cd9eb981cd923f02ad60836c49b2561e",
|
|
35
35
|
"skills/chant-helm-security.md": "bfc367eabceed2e84f1cf94501b407df78aeed963cec104f24a321d0962063c9"
|
|
36
36
|
},
|
|
37
|
-
"composite": "
|
|
37
|
+
"composite": "56efee1fe4ff8a2baec192e12bf6051935abe4d4cd8895ed5caf26d6a12c3fd5"
|
|
38
38
|
}
|
package/dist/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-helm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0",
|
|
4
4
|
"description": "Helm chart lexicon for chant — declarative IaC in TypeScript",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://intentius.io/chant",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@types/js-yaml": "^4.0.9"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"@intentius/chant": "^0.
|
|
79
|
+
"@intentius/chant": "^0.37.0",
|
|
80
80
|
"typescript": "^5.9.3"
|
|
81
81
|
}
|
|
82
82
|
}
|
package/src/codegen/docs.ts
CHANGED
|
@@ -106,7 +106,17 @@ export async function generateDocs(opts?: { verbose?: boolean }): Promise<void>
|
|
|
106
106
|
overview,
|
|
107
107
|
outputFormat,
|
|
108
108
|
serviceFromType,
|
|
109
|
-
|
|
109
|
+
// `lint-rules` below is helm's rules documentation; the generated `rules`
|
|
110
|
+
// table duplicated it, and helm's own declared rules page was being
|
|
111
|
+
// silently overwritten by that table (#1312).
|
|
112
|
+
suppressPages: ["pseudo-parameters", "rules"],
|
|
113
|
+
// Hand-written pages under docs/src/content/docs/ that no sidebar entry
|
|
114
|
+
// pointed at.
|
|
115
|
+
sidebarExtra: [
|
|
116
|
+
{ label: "Helm Concepts", slug: "helm-concepts" },
|
|
117
|
+
{ label: "Lint Rules", slug: "lint-rules" },
|
|
118
|
+
{ label: "Examples", slug: "examples" },
|
|
119
|
+
],
|
|
110
120
|
extraPages: [
|
|
111
121
|
{
|
|
112
122
|
slug: "getting-started",
|
|
@@ -152,7 +162,7 @@ import { Deployment, Service, Ingress } from "@intentius/chant-lexicon-k8s";
|
|
|
152
162
|
`,
|
|
153
163
|
},
|
|
154
164
|
{
|
|
155
|
-
slug: "intrinsics",
|
|
165
|
+
slug: "intrinsics-guide",
|
|
156
166
|
title: "Intrinsics Reference",
|
|
157
167
|
description: "All Helm template intrinsics and how they map to Go template expressions",
|
|
158
168
|
content: `## Values proxy
|
|
@@ -224,7 +234,7 @@ const job = new Job({
|
|
|
224
234
|
slug: "composites",
|
|
225
235
|
title: "Composites",
|
|
226
236
|
description: "Pre-built Helm chart patterns",
|
|
227
|
-
content: `When a composite call like these is assigned directly to a top-level \`export const\` — or destructured into a top-level export, e.g. \`export const { chart, values, deployment } = HelmWebApp({...})\` — it's one of the patterns [
|
|
237
|
+
content: `When a composite call like these is assigned directly to a top-level \`export const\` — or destructured into a top-level export, e.g. \`export const { chart, values, deployment } = HelmWebApp({...})\` — it's one of the patterns [folding](/chant/concepts/typescript-as-data/#folded-vs-run) can reduce with no module execution (chant #1023). It still runs like any other call if it isn't a top-level export, or if its result is only reached through a nested value inside another resource's properties.
|
|
228
238
|
|
|
229
239
|
## Available composites
|
|
230
240
|
|
|
@@ -260,44 +270,6 @@ const result = HelmWebApp({
|
|
|
260
270
|
|
|
261
271
|
// result.chart, result.values, result.deployment, result.service, result.ingress, result.hpa
|
|
262
272
|
\`\`\`
|
|
263
|
-
`,
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
slug: "rules",
|
|
267
|
-
title: "Lint Rules",
|
|
268
|
-
description: "Pre-synth and post-synth lint rules for Helm charts",
|
|
269
|
-
content: `## Pre-synth rules (AST-level)
|
|
270
|
-
|
|
271
|
-
| Rule | Severity | Description |
|
|
272
|
-
|------|----------|-------------|
|
|
273
|
-
| WHM001 | error | Chart must have name, version, and apiVersion |
|
|
274
|
-
| WHM002 | warning | Values should not contain bare secrets (password, token, key) |
|
|
275
|
-
| WHM003 | warning | Container images should use values references, not hardcoded tags |
|
|
276
|
-
|
|
277
|
-
## Post-synth checks (output validation)
|
|
278
|
-
|
|
279
|
-
| Check | Severity | Description |
|
|
280
|
-
|-------|----------|-------------|
|
|
281
|
-
| WHM101 | error | Chart.yaml has required fields and apiVersion v2 |
|
|
282
|
-
| WHM102 | warning | values.schema.json present when Values type used |
|
|
283
|
-
| WHM103 | error | Go template syntax valid (balanced braces) |
|
|
284
|
-
| WHM104 | info | NOTES.txt exists for application charts |
|
|
285
|
-
| WHM105 | warning | _helpers.tpl exists |
|
|
286
|
-
| WHM201 | info | Resources have standard Helm labels |
|
|
287
|
-
| WHM202 | info | Hook weights defined for multi-hook charts |
|
|
288
|
-
| WHM203 | info | Values entries documented |
|
|
289
|
-
| WHM204 | warning | Dependencies use semver ranges |
|
|
290
|
-
| WHM301 | info | At least one test for application charts |
|
|
291
|
-
| WHM302 | info | Resource limits set (via values or defaults) |
|
|
292
|
-
| WHM401 | warning | Image uses :latest tag or no tag |
|
|
293
|
-
| WHM402 | warning | runAsNonRoot not set in security context |
|
|
294
|
-
| WHM403 | info | readOnlyRootFilesystem not set |
|
|
295
|
-
| WHM404 | error | privileged: true detected |
|
|
296
|
-
| WHM405 | warning | Resource spec missing cpu/memory detail |
|
|
297
|
-
| WHM406 | info | CRDs in crds/ — Helm never upgrades/deletes them |
|
|
298
|
-
| WHM407 | warning | Secret with inline data, no ExternalSecret/SealedSecret |
|
|
299
|
-
| WHM501 | info | Values keys defined but never referenced in templates |
|
|
300
|
-
| WHM502 | warning | Deprecated or invalid K8s API versions |
|
|
301
273
|
`,
|
|
302
274
|
},
|
|
303
275
|
{
|