@intentius/chant-lexicon-helm 0.20.0 → 0.22.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.
|
@@ -2,8 +2,8 @@ export declare const Chart: new (props: Record<string, unknown>, attributes?: Re
|
|
|
2
2
|
export declare const Values: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, string>;
|
|
3
3
|
export declare const HelmTest: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, string>;
|
|
4
4
|
export declare const HelmNotes: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, string>;
|
|
5
|
-
export declare const HelmHook: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
6
|
-
export declare const HelmDependency: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
7
|
-
export declare const HelmMaintainer: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
5
|
+
export declare const HelmHook: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
6
|
+
export declare const HelmDependency: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
7
|
+
export declare const HelmMaintainer: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
8
8
|
export declare const HelmCRD: new (props: Record<string, unknown>, attributes?: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, string>;
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK,+IAA4C,CAAC;AAC/D,eAAO,MAAM,MAAM,+IAA6C,CAAC;AACjE,eAAO,MAAM,QAAQ,+IAA2C,CAAC;AACjE,eAAO,MAAM,SAAS,+IAA4C,CAAC;AACnE,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK,+IAA4C,CAAC;AAC/D,eAAO,MAAM,MAAM,+IAA6C,CAAC;AACjE,eAAO,MAAM,QAAQ,+IAA2C,CAAC;AACjE,eAAO,MAAM,SAAS,+IAA4C,CAAC;AACnE,eAAO,MAAM,QAAQ,0GAAuC,CAAC;AAC7D,eAAO,MAAM,cAAc,0GAA6C,CAAC;AACzE,eAAO,MAAM,cAAc,0GAA6C,CAAC;AACzE,eAAO,MAAM,OAAO,+IAA0C,CAAC"}
|
package/dist/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "ace89122d519542293b268c44d547f58633d8b9f89eaa5eaba27256ec4ff3965",
|
|
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": "37ba9947bc8cebb2aaf874ae0db64aaae7f391ea9a01df7f470f4a5fb16d3d6a"
|
|
38
38
|
}
|
package/dist/manifest.json
CHANGED
package/dist/resources.d.ts
CHANGED
|
@@ -38,19 +38,19 @@ export declare const HelmNotes: new (props: Record<string, unknown>, attributes?
|
|
|
38
38
|
* Wraps a K8s resource with helm.sh/hook annotations.
|
|
39
39
|
* Props: { hook: string, weight?: number, deletePolicy?: string, resource: Declarable }
|
|
40
40
|
*/
|
|
41
|
-
export declare const HelmHook: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
41
|
+
export declare const HelmHook: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
42
42
|
/**
|
|
43
43
|
* Helm::Dependency — Chart dependency entry.
|
|
44
44
|
*
|
|
45
45
|
* Props: { name, version, repository, condition?, tags?, enabled?, importValues?, alias? }
|
|
46
46
|
*/
|
|
47
|
-
export declare const HelmDependency: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
47
|
+
export declare const HelmDependency: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
48
48
|
/**
|
|
49
49
|
* Helm::Maintainer — Chart maintainer entry.
|
|
50
50
|
*
|
|
51
51
|
* Props: { name, email?, url? }
|
|
52
52
|
*/
|
|
53
|
-
export declare const HelmMaintainer: new (props: Record<string, unknown>) => Record<string, unknown>;
|
|
53
|
+
export declare const HelmMaintainer: new (props: Record<string, unknown>) => import("packages/core/src").Declarable & Record<string, unknown>;
|
|
54
54
|
/**
|
|
55
55
|
* Helm::ValuesOverride — Generate a named YAML override file.
|
|
56
56
|
*
|
package/dist/resources.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../src/resources.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH;;;;;GAKG;AACH,eAAO,MAAM,KAAK,+IAA6C,CAAC;AAEhE;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,+IAA8C,CAAC;AAElE;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,+IAA4C,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,SAAS,+IAA6C,CAAC;AAIpE;;;;;GAKG;AACH,eAA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oD,CAAC;AAC7E,eAAO,MAAM,kBAAkB,+IAA2D,CAAC;AAC3F,eAAO,MAAM,IAAI,+IAA6C,CAAC;AAC/D,eAAO,MAAM,WAAW,+IAAoD,CAAC;AAC7E,eAAO,MAAM,cAAc,+IAAkE,CAAC;AAC9F,eAAO,MAAM,cAAc,+IAA6D,CAAC;AACzF,eAAO,MAAM,cAAc,+IAA6D,CAAC;AACzF,eAAO,MAAM,WAAW,+IAA2D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-helm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.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.22.0",
|
|
80
80
|
"typescript": "^5.9.3"
|
|
81
81
|
}
|
|
82
82
|
}
|
package/src/serializer.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
import type { Declarable } from "@intentius/chant/declarable";
|
|
17
|
-
import { isPropertyDeclarable } from "@intentius/chant/declarable";
|
|
17
|
+
import { isPropertyDeclarable, isResourceDeclarable } from "@intentius/chant/declarable";
|
|
18
18
|
import { INTRINSIC_MARKER } from "@intentius/chant/intrinsic";
|
|
19
19
|
import type { Serializer, SerializerResult } from "@intentius/chant/serializer";
|
|
20
20
|
import type { LexiconOutput } from "@intentius/chant/lexicon-output";
|
|
@@ -57,7 +57,7 @@ function helmVisitor(): SerializerVisitor {
|
|
|
57
57
|
attrRef: (name, _attr) => name,
|
|
58
58
|
resourceRef: (name) => name,
|
|
59
59
|
propertyDeclarable: (entity, walk) => {
|
|
60
|
-
if (!(
|
|
60
|
+
if (!isResourceDeclarable(entity) || typeof entity.props !== "object" || entity.props === null) {
|
|
61
61
|
return undefined;
|
|
62
62
|
}
|
|
63
63
|
const props = entity.props as Record<string, unknown>;
|