@intentius/chant-lexicon-k8s 0.52.1 → 0.52.2
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/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "8c38ac289db7248c19f6121bcf6da58f55e2e4b2913f7360182ac3d2dab47d3c",
|
|
5
5
|
"meta.json": "8b999bc142f448b0b627ecdc9e2388bbe672c8a1f7aae5303135624cf2fe65e3",
|
|
6
6
|
"types/index.d.ts": "5f67de738adb455805e72600948940af9c664283785fb68c9fd8f5ea90d42cc3",
|
|
7
7
|
"rules/argo-appset-single-project.ts": "afa9f310753aa2d475f35012b13135b2dfaebed2a35d44edbe185ebc07673674",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"skills/chant-k8s-argo.md": "b1a0b826559d8c5033a479c5781efaf650320f0aee4419d8841170bd3393cea5",
|
|
66
66
|
"skills/chant-k8s-flux.md": "9670efc2e9854bd14686b5adeb707396b9030a4dcaee6529b30abf56efe2c50c"
|
|
67
67
|
},
|
|
68
|
-
"composite": "
|
|
68
|
+
"composite": "44c1bb3c6bb1936028519380b4728c7905e1731246ed65937bc21e57f56660fa"
|
|
69
69
|
}
|
package/dist/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-k8s",
|
|
3
|
-
"version": "0.52.
|
|
3
|
+
"version": "0.52.2",
|
|
4
4
|
"description": "Kubernetes 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
|
"optionalDependencies": {
|
|
79
|
-
"@intentius/chant-k8s-client": "^0.52.
|
|
79
|
+
"@intentius/chant-k8s-client": "^0.52.2"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@intentius/chant": "*",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
86
|
"zod": "^4.3.6",
|
|
87
|
-
"@intentius/chant": "^0.52.
|
|
87
|
+
"@intentius/chant": "^0.52.2",
|
|
88
88
|
"typescript": "^5.9.3"
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -2221,6 +2221,29 @@ describe("WK8501/WK8502: custom resource spec validated against the shipped CRD
|
|
|
2221
2221
|
expect(wk8502.check(ctx)).toEqual([]);
|
|
2222
2222
|
});
|
|
2223
2223
|
|
|
2224
|
+
// chant #2013 — the Argo AppProject from behold's example-argo-estate, as
|
|
2225
|
+
// YAML text rather than JSON on purpose: `sourceRepos` is a list of bare
|
|
2226
|
+
// URLs, and the core parser used to hand this check `{ https: "//github…" }`
|
|
2227
|
+
// for each one. WK8502 then reported an object on a field the source had
|
|
2228
|
+
// declared, and the emitter had written, as a string.
|
|
2229
|
+
test.skipIf(!hasLexicon)("a bare URL in an AppProject's sourceRepos reaches the check as a string", () => {
|
|
2230
|
+
const ctx = makeCtx([
|
|
2231
|
+
"apiVersion: argoproj.io/v1alpha1",
|
|
2232
|
+
"kind: AppProject",
|
|
2233
|
+
"metadata:",
|
|
2234
|
+
" name: estate",
|
|
2235
|
+
"spec:",
|
|
2236
|
+
" sourceRepos:",
|
|
2237
|
+
" - https://github.com/INTENTIUS/behold",
|
|
2238
|
+
" destinations:",
|
|
2239
|
+
" - namespace: '*'",
|
|
2240
|
+
" server: https://kubernetes.default.svc",
|
|
2241
|
+
"",
|
|
2242
|
+
].join("\n"));
|
|
2243
|
+
expect(wk8501.check(ctx)).toEqual([]);
|
|
2244
|
+
expect(wk8502.check(ctx)).toEqual([]);
|
|
2245
|
+
});
|
|
2246
|
+
|
|
2224
2247
|
test("open objects and int-or-string accept anything (stub registry)", () => {
|
|
2225
2248
|
setCrdSchemaRegistry(new Map([[
|
|
2226
2249
|
"example.com/v1/Widget",
|