@intentius/chant-lexicon-helm 0.1.10 → 0.1.12

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,7 +1,7 @@
1
1
  {
2
2
  "algorithm": "sha256",
3
3
  "artifacts": {
4
- "manifest.json": "ef5f7e294c0c8b6ca190fe59db119c9a09a62a7707c2b1aa70de6897f7c0fc0a",
4
+ "manifest.json": "dbce9a807121f61270223fc9566caf5cd1ec15290cab129733f37750c8751e42",
5
5
  "meta.json": "14243c5730a07c6a6edc35ddd351438547d58df5cf345f2233a355b0c7611ccc",
6
6
  "types/index.d.ts": "5377696ca8698cd2999e4680feb8e8e4b54a7b49fb603a87b2f27356114d1794",
7
7
  "rules/chart-metadata.ts": "8f3377e893d5e2828460b7fe5924fca098334245a9a2fdb90f6b67e490eaf091",
@@ -34,5 +34,5 @@
34
34
  "skills/chant-helm-patterns.md": "9e79e6a46391da46709d8aa57e2825a7cd9eb981cd923f02ad60836c49b2561e",
35
35
  "skills/chant-helm-security.md": "bfc367eabceed2e84f1cf94501b407df78aeed963cec104f24a321d0962063c9"
36
36
  },
37
- "composite": "794ebe6ec1f86321a5a64cecbd8e8c0fcaa64dd4cb85d7c93562eaff8cd64cf7"
37
+ "composite": "bb491034e96d1d09a348909b3178016e7684b3822916c685e90696f97adaf2e6"
38
38
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "helm",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "chantVersion": ">=0.1.0",
5
5
  "namespace": "Helm",
6
6
  "intrinsics": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-helm",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
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",
package/src/render.ts CHANGED
@@ -103,11 +103,26 @@ function renderViaHelm(props: HelmRenderProps): string {
103
103
  if (props.version) fetchArgs.push("--version", props.version);
104
104
  }
105
105
 
106
+ // When --repo is set, isolate helm's repository config + cache to a
107
+ // chant-private directory. Without this, helm tries to refresh ALL of the
108
+ // user's existing repo indexes (eks, jetstack, etc.) and fails with
109
+ // "no cached repo found" if any one has gone stale — even though we
110
+ // only care about the single repo the consumer asked for.
111
+ const isolationArgs: string[] = props.repo
112
+ ? [
113
+ "--repository-config",
114
+ "/dev/null",
115
+ "--repository-cache",
116
+ join(CACHE_ROOT, "_helm-repo-cache"),
117
+ ]
118
+ : [];
119
+
106
120
  const args = [
107
121
  "template",
108
122
  props.name,
109
123
  props.chart,
110
124
  ...fetchArgs,
125
+ ...isolationArgs,
111
126
  ...(props.namespace ? ["--namespace", props.namespace] : []),
112
127
  ...valuesArgs,
113
128
  ];