@intentius/chant-lexicon-helm 0.124.41 → 0.124.42
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helm-upgrade.d.ts","sourceRoot":"","sources":["../../src/components/helm-upgrade.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,wCAAwC,CAAC;AAYxF,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wEAAwE;IACxE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,4EAA4E;IAC5E,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sEAAsE;IACtE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,qFAAqF;IACrF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,uEAAuE;AACvE,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,oGAAoG;AACpG,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CA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A;CAAE,CAAC,CAAC;AAiC1E,6FAA6F;AAC7F,wBAAgB,2BAA2B,CACzC,GAAG,GAAE,UAAsB,GAC1B,UAAU,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAiClD;AAED,eAAO,MAAM,qBAAqB,kDAAgC,CAAC"}
|
|
@@ -74,6 +74,8 @@ function upgradeCommand(input, context) {
|
|
|
74
74
|
export function createHelmUpgradeCapability(run = execAsync) {
|
|
75
75
|
return {
|
|
76
76
|
kind: "helm-upgrade",
|
|
77
|
+
// #4300: `helm upgrade` installs the whole release, so there is nothing to narrow.
|
|
78
|
+
targets: { refuse: "helm upgrade applies the whole release, so helm-upgrade can't narrow to some of its objects" },
|
|
77
79
|
async run(ctx, input) {
|
|
78
80
|
const context = await resolveContext(input, ctx.env);
|
|
79
81
|
const { stdout } = await run(upgradeCommand(input, context));
|
package/dist/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "75beac7d623157695106f5724f567b1c56614ee5ad44ca75615953fca1ace301",
|
|
5
5
|
"meta.json": "14243c5730a07c6a6edc35ddd351438547d58df5cf345f2233a355b0c7611ccc",
|
|
6
6
|
"types/index.d.ts": "5377696ca8698cd2999e4680feb8e8e4b54a7b49fb603a87b2f27356114d1794",
|
|
7
7
|
"rules/chart-metadata.ts": "3ac9183a3bd42c657d1c4b7e45ddb302a75baf126d62284fa9d6f6226c2734cc",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"skills/chant-helm-patterns.md": "9e79e6a46391da46709d8aa57e2825a7cd9eb981cd923f02ad60836c49b2561e",
|
|
37
37
|
"skills/chant-helm-security.md": "bfc367eabceed2e84f1cf94501b407df78aeed963cec104f24a321d0962063c9"
|
|
38
38
|
},
|
|
39
|
-
"composite": "
|
|
39
|
+
"composite": "6d9140f49cd0ae9ebc5c61f2360ba0ed8887301bec13333be54ee0cfcd15f7da"
|
|
40
40
|
}
|
package/dist/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-helm",
|
|
3
|
-
"version": "0.124.
|
|
3
|
+
"version": "0.124.42",
|
|
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",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"build": "../../scripts/tsc7.sh -p tsconfig.build.json --sourceMap false && tsc-alias -p tsconfig.build.json"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@intentius/chant-lexicon-k8s": "^0.124.
|
|
80
|
+
"@intentius/chant-lexicon-k8s": "^0.124.42",
|
|
81
81
|
"js-yaml": "^4.3.1"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@types/js-yaml": "^4.0.9"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"@intentius/chant": "^0.124.
|
|
89
|
+
"@intentius/chant": "^0.124.42",
|
|
90
90
|
"zod": "^4.3.6"
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -100,3 +100,10 @@ describe("helm-upgrade capability (#1495 piece 4)", () => {
|
|
|
100
100
|
await expect(cap.run(ctx, { release: "api", chart: "repo/api" })).rejects.toThrow(/UPGRADE FAILED/);
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
|
+
|
|
104
|
+
describe("helm-upgrade targets (#4300)", () => {
|
|
105
|
+
test("refuses targets by name: a release applies whole", async () => {
|
|
106
|
+
const { targetRefusal } = await import("@intentius/chant/components/capability");
|
|
107
|
+
expect(targetRefusal(helmUpgradeCapability)).toMatch(/helm-upgrade can't narrow/);
|
|
108
|
+
});
|
|
109
|
+
});
|
|
@@ -123,6 +123,8 @@ export function createHelmUpgradeCapability(
|
|
|
123
123
|
): Capability<HelmUpgradeInput, HelmUpgradeOutcome> {
|
|
124
124
|
return {
|
|
125
125
|
kind: "helm-upgrade",
|
|
126
|
+
// #4300: `helm upgrade` installs the whole release, so there is nothing to narrow.
|
|
127
|
+
targets: { refuse: "helm upgrade applies the whole release, so helm-upgrade can't narrow to some of its objects" },
|
|
126
128
|
async run(ctx: DeployContext, input: HelmUpgradeInput): Promise<HelmUpgradeOutcome> {
|
|
127
129
|
const context = await resolveContext(input, ctx.env);
|
|
128
130
|
const { stdout } = await run(upgradeCommand(input, context));
|