@intentius/chant-lexicon-k8s 0.124.101 → 0.124.102
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 +2 -2
- package/dist/manifest.json +1 -1
- package/dist/member-report.d.ts +13 -0
- package/dist/member-report.js +17 -0
- package/dist/plugin.js +2 -1
- package/dist/workspace-member.d.ts +1 -7
- package/dist/workspace-member.js +1 -12
- package/package.json +3 -3
package/dist/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "defadd3c131d9628ded87c73ff2bd9e44e9d0e11a0161b1dd58fcf1044f97552",
|
|
5
5
|
"meta.json": "c8a4cb1d36eba59a277083c8b888b150b025384e429b26db4203ec748d5e7f08",
|
|
6
6
|
"types/index.d.ts": "35f6ca4fa77c28ecad363920b444f27ab72f0fe49e82eb20e42824c312ac689b",
|
|
7
7
|
"rules/argo-appset-single-project.ts": "afa9f310753aa2d475f35012b13135b2dfaebed2a35d44edbe185ebc07673674",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"skills/chant-k8s-argo.md": "24c9a85b78a2fc5c6657424baac9cc6d6caff6f47605b8146b2c0082133181cf",
|
|
81
81
|
"skills/chant-k8s-flux.md": "9670efc2e9854bd14686b5adeb707396b9030a4dcaee6529b30abf56efe2c50c"
|
|
82
82
|
},
|
|
83
|
-
"composite": "
|
|
83
|
+
"composite": "82023fe89b405672ec9cd82b83aa75e42c78342e74a34c99c5bb999de2031a8b"
|
|
84
84
|
}
|
package/dist/manifest.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The report of the workspace member read in this process (#3179).
|
|
3
|
+
* `graphMeta` receives only the entities, so the hook that read the member
|
|
4
|
+
* leaves its report here for the hook that publishes it; `chant graph` runs
|
|
5
|
+
* the two in order in one process.
|
|
6
|
+
*
|
|
7
|
+
* Kept apart from ./workspace-member.ts so the plugin can clear and read the
|
|
8
|
+
* report without loading the member reader, which a project with no member
|
|
9
|
+
* never needs (#5219).
|
|
10
|
+
*/
|
|
11
|
+
import type { K8sMemberReport } from "./workspace-member.js";
|
|
12
|
+
export declare function setLastMemberReport(report: K8sMemberReport | undefined): void;
|
|
13
|
+
export declare function lastMemberReport(): K8sMemberReport | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The report of the workspace member read in this process (#3179).
|
|
3
|
+
* `graphMeta` receives only the entities, so the hook that read the member
|
|
4
|
+
* leaves its report here for the hook that publishes it; `chant graph` runs
|
|
5
|
+
* the two in order in one process.
|
|
6
|
+
*
|
|
7
|
+
* Kept apart from ./workspace-member.ts so the plugin can clear and read the
|
|
8
|
+
* report without loading the member reader, which a project with no member
|
|
9
|
+
* never needs (#5219).
|
|
10
|
+
*/
|
|
11
|
+
let lastReport;
|
|
12
|
+
export function setLastMemberReport(report) {
|
|
13
|
+
lastReport = report;
|
|
14
|
+
}
|
|
15
|
+
export function lastMemberReport() {
|
|
16
|
+
return lastReport;
|
|
17
|
+
}
|
package/dist/plugin.js
CHANGED
|
@@ -31,7 +31,7 @@ import { k8sReferenceCatalog } from "./reference-catalog.js";
|
|
|
31
31
|
import { LABEL_OWNERSHIP_KEYS } from "@intentius/chant/ownership";
|
|
32
32
|
import { k8sConfigSchema } from "./config-schema.js";
|
|
33
33
|
import { renderKustomizeRoots } from "./kustomize/root.js";
|
|
34
|
-
import { lastMemberReport,
|
|
34
|
+
import { lastMemberReport, setLastMemberReport } from "./member-report.js";
|
|
35
35
|
import { encryptedSecretBuildRoot } from "./sops/encrypted-secret-file.js";
|
|
36
36
|
import { k8sProjectCodegen } from "./crd/project-codegen.js";
|
|
37
37
|
import { includeBuildRoot } from "./include/resolve.js";
|
|
@@ -105,6 +105,7 @@ export const k8sPlugin = {
|
|
|
105
105
|
setLastMemberReport(undefined);
|
|
106
106
|
const member = ctx.config.k8s?.member;
|
|
107
107
|
if (member) {
|
|
108
|
+
const { readK8sMember } = await import("./workspace-member.js");
|
|
108
109
|
const read = await readK8sMember({ member });
|
|
109
110
|
for (const [name, entity] of read.entities)
|
|
110
111
|
entities.set(name, entity);
|
|
@@ -37,10 +37,4 @@ export declare function readK8sMember(opts: {
|
|
|
37
37
|
warnings: string[];
|
|
38
38
|
report: K8sMemberReport;
|
|
39
39
|
}>;
|
|
40
|
-
|
|
41
|
-
* The report of the read in this process. `graphMeta` receives only the
|
|
42
|
-
* entities, so the hook that read the member leaves its report here for the
|
|
43
|
-
* hook that publishes it; `chant graph` runs the two in order in one process.
|
|
44
|
-
*/
|
|
45
|
-
export declare function setLastMemberReport(report: K8sMemberReport | undefined): void;
|
|
46
|
-
export declare function lastMemberReport(): K8sMemberReport | undefined;
|
|
40
|
+
export { lastMemberReport, setLastMemberReport } from "./member-report.js";
|
package/dist/workspace-member.js
CHANGED
|
@@ -207,15 +207,4 @@ export async function readK8sMember(opts) {
|
|
|
207
207
|
report: { kind: member.kind, ...(rendered === undefined ? {} : { rendered }), ...(reason ? { reason } : {}), objects: entities.size },
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* The report of the read in this process. `graphMeta` receives only the
|
|
213
|
-
* entities, so the hook that read the member leaves its report here for the
|
|
214
|
-
* hook that publishes it; `chant graph` runs the two in order in one process.
|
|
215
|
-
*/
|
|
216
|
-
export function setLastMemberReport(report) {
|
|
217
|
-
lastReport = report;
|
|
218
|
-
}
|
|
219
|
-
export function lastMemberReport() {
|
|
220
|
-
return lastReport;
|
|
221
|
-
}
|
|
210
|
+
export { lastMemberReport, setLastMemberReport } from "./member-report.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-k8s",
|
|
3
|
-
"version": "0.124.
|
|
3
|
+
"version": "0.124.102",
|
|
4
4
|
"description": "Kubernetes lexicon for chant — declarative IaC in TypeScript",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://intentius.io/chant",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"build": "../../scripts/tsc7.sh -p tsconfig.build.json --sourceMap false && tsc-alias -p tsconfig.build.json && cp src/generated/index.d.ts dist/generated/index.d.d.ts && node ../../scripts/copy-lexicon-assets.mjs"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@intentius/chant-lexicon-otel": "^0.124.
|
|
76
|
+
"@intentius/chant-lexicon-otel": "^0.124.102",
|
|
77
77
|
"@intentius/chant-lexicon-prometheus": "^0.124.101",
|
|
78
78
|
"js-yaml": "^4.3.1",
|
|
79
79
|
"@types/js-yaml": "^4.0.9"
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"zod": "^4.3.6",
|
|
88
|
-
"@intentius/chant": "^0.124.
|
|
88
|
+
"@intentius/chant": "^0.124.102",
|
|
89
89
|
"@intentius/chant-k8s-client": "^0.124.101"
|
|
90
90
|
},
|
|
91
91
|
"peerDependenciesMeta": {
|