@intentius/chant-lexicon-gcp 0.13.1 → 0.15.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/generated/index.d.ts +92 -8
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/integrity.json +4 -4
- package/dist/lint/audit-catalog.d.ts +7 -0
- package/dist/lint/audit-catalog.d.ts.map +1 -0
- package/dist/manifest.json +1 -1
- package/dist/meta.json +1892 -170
- package/dist/op/activities/gcp-apply.d.ts +278 -0
- package/dist/op/activities/gcp-apply.d.ts.map +1 -0
- package/dist/op/activities/index.d.ts +9 -0
- package/dist/op/activities/index.d.ts.map +1 -0
- package/dist/plugin.d.ts.map +1 -1
- package/dist/spec/fetch.d.ts +1 -1
- package/dist/types/index.d.ts +1434 -236
- package/package.json +7 -2
- package/src/describe-resources.ts +3 -3
- package/src/generated/index.d.ts +1434 -236
- package/src/generated/index.ts +92 -8
- package/src/generated/lexicon-gcp.json +1892 -170
- package/src/import/live-export.ts +2 -2
- package/src/lint/audit-catalog.ts +33 -0
- package/src/lsp/completions.test.ts +10 -5
- package/src/op/activities/gcp-apply.test.ts +475 -0
- package/src/op/activities/gcp-apply.ts +701 -0
- package/src/op/activities/index.ts +46 -0
- package/src/plugin.ts +9 -0
- package/src/serializer.ts +2 -2
- package/src/spec/fetch.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-gcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Google Cloud lexicon for chant — declarative IaC in TypeScript",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://intentius.io/chant",
|
|
@@ -44,6 +44,11 @@
|
|
|
44
44
|
"types": "./dist/detect.d.ts",
|
|
45
45
|
"default": "./src/detect.ts"
|
|
46
46
|
},
|
|
47
|
+
"./op/activities": {
|
|
48
|
+
"development": "./src/op/activities/index.ts",
|
|
49
|
+
"types": "./dist/op/activities/index.d.ts",
|
|
50
|
+
"default": "./src/op/activities/index.ts"
|
|
51
|
+
},
|
|
47
52
|
"./lint/post-synth": {
|
|
48
53
|
"development": "./src/lint/post-synth/index.ts",
|
|
49
54
|
"types": "./dist/lint/post-synth/index.d.ts",
|
|
@@ -71,6 +76,6 @@
|
|
|
71
76
|
"typescript": "^5.9.3"
|
|
72
77
|
},
|
|
73
78
|
"peerDependencies": {
|
|
74
|
-
"@intentius/chant": "^0.
|
|
79
|
+
"@intentius/chant": "^0.15.0"
|
|
75
80
|
}
|
|
76
81
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
import { exec } from "node:child_process";
|
|
16
16
|
import { promisify } from "node:util";
|
|
17
17
|
import type { ResourceMetadata } from "@intentius/chant/lexicon";
|
|
18
|
-
import { hasOwnershipMarker, classifyOwnership } from "@intentius/chant/ownership";
|
|
18
|
+
import { hasOwnershipMarker, classifyOwnership, LABEL_OWNERSHIP_KEYS } from "@intentius/chant/ownership";
|
|
19
19
|
|
|
20
20
|
const execAsync = promisify(exec);
|
|
21
21
|
|
|
@@ -101,7 +101,7 @@ export async function describeResources(options: {
|
|
|
101
101
|
const { stdout } = await execAsync(cmd);
|
|
102
102
|
const obj: KubectlResponse = JSON.parse(stdout);
|
|
103
103
|
// owned filter: skip resources not carrying chant's marker label.
|
|
104
|
-
if (options.owned && !hasOwnershipMarker(obj.metadata?.labels,
|
|
104
|
+
if (options.owned && !hasOwnershipMarker(obj.metadata?.labels, LABEL_OWNERSHIP_KEYS)) {
|
|
105
105
|
continue;
|
|
106
106
|
}
|
|
107
107
|
result[entityName] = {
|
|
@@ -109,7 +109,7 @@ export async function describeResources(options: {
|
|
|
109
109
|
physicalId: obj.metadata?.uid,
|
|
110
110
|
status: statusFromCC(obj),
|
|
111
111
|
lastUpdated: obj.metadata?.creationTimestamp,
|
|
112
|
-
ownership: classifyOwnership(obj.metadata?.labels,
|
|
112
|
+
ownership: classifyOwnership(obj.metadata?.labels, LABEL_OWNERSHIP_KEYS),
|
|
113
113
|
attributes: pruneUndefined({
|
|
114
114
|
namespace: obj.metadata?.namespace,
|
|
115
115
|
labels: obj.metadata?.labels,
|