@intentius/chant-lexicon-k3d 0.41.19 → 0.42.1
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/okf/index.md +7 -0
- package/dist/okf/types/Cluster.md +29 -0
- package/package.json +2 -2
- package/src/package-cli.ts +2 -19
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: resource-type
|
|
3
|
+
title: Cluster
|
|
4
|
+
description: k3d resource type K3d::Cluster
|
|
5
|
+
name: Cluster
|
|
6
|
+
lexicon: k3d
|
|
7
|
+
resource_type: K3d::Cluster
|
|
8
|
+
---
|
|
9
|
+
`K3d::Cluster`, a resource type of the k3d lexicon.
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
- `apiVersion` (`"k3d.io/v1alpha5"`, required)
|
|
14
|
+
- `kind` (`"Simple"`, required)
|
|
15
|
+
- `agents` (`number`, optional)
|
|
16
|
+
- `env` (`EnvVar[]`, optional)
|
|
17
|
+
- `files` (`File[]`, optional)
|
|
18
|
+
- `hostAliases` (`HostAlias[]`, optional): Additional IP to multiple hostnames mappings
|
|
19
|
+
- `image` (`string`, optional)
|
|
20
|
+
- `kubeAPI` (`KubeAPI`, optional)
|
|
21
|
+
- `metadata` (`Metadata`, optional)
|
|
22
|
+
- `network` (`string`, optional)
|
|
23
|
+
- `options` (`Options`, optional)
|
|
24
|
+
- `ports` (`Port[]`, optional)
|
|
25
|
+
- `registries` (`Registries`, optional)
|
|
26
|
+
- `servers` (`number`, optional)
|
|
27
|
+
- `subnet` (`string`, optional)
|
|
28
|
+
- `token` (`string`, optional)
|
|
29
|
+
- `volumes` (`Volume[]`, optional)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-k3d",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"src/",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@intentius/chant": "^0.
|
|
55
|
+
"@intentius/chant": "^0.42.1",
|
|
56
56
|
"typescript": "^5.9.3"
|
|
57
57
|
},
|
|
58
58
|
"description": "k3d lexicon for chant — a local Kubernetes cluster as declarable data",
|
package/src/package-cli.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { generate, writeGeneratedFiles } from "./codegen/generate";
|
|
6
6
|
import { packageLexicon } from "./codegen/package";
|
|
7
|
-
import {
|
|
7
|
+
import { writeBundleSpec } from "@intentius/chant/codegen/package";
|
|
8
8
|
import { join, dirname } from "path";
|
|
9
9
|
import { fileURLToPath } from "url";
|
|
10
10
|
|
|
@@ -18,24 +18,7 @@ writeGeneratedFiles(genResult);
|
|
|
18
18
|
const { spec, stats } = await packageLexicon({ verbose: true });
|
|
19
19
|
|
|
20
20
|
const distDir = join(dirname(pkgDir), "dist");
|
|
21
|
-
|
|
22
|
-
mkdirSync(join(distDir, "rules"), { recursive: true });
|
|
23
|
-
mkdirSync(join(distDir, "skills"), { recursive: true });
|
|
24
|
-
|
|
25
|
-
writeFileSync(join(distDir, "manifest.json"), JSON.stringify(spec.manifest, null, 2));
|
|
26
|
-
writeFileSync(join(distDir, "meta.json"), spec.registry);
|
|
27
|
-
writeFileSync(join(distDir, "types", "index.d.ts"), spec.typesDTS);
|
|
28
|
-
|
|
29
|
-
for (const [name, content] of spec.rules) {
|
|
30
|
-
writeFileSync(join(distDir, "rules", name), content);
|
|
31
|
-
}
|
|
32
|
-
for (const [name, content] of spec.skills) {
|
|
33
|
-
writeFileSync(join(distDir, "skills", name), content);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
if (spec.integrity) {
|
|
37
|
-
writeFileSync(join(distDir, "integrity.json"), JSON.stringify(spec.integrity, null, 2));
|
|
38
|
-
}
|
|
21
|
+
writeBundleSpec(spec, distDir);
|
|
39
22
|
|
|
40
23
|
console.error(`Packaged ${stats.resources} entities, ${stats.ruleCount} rules, ${stats.skillCount} skills`);
|
|
41
24
|
console.error(`dist/ written to ${distDir}`);
|