Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

feat(infra): a kustomization DEPLOYS the charts it inflates

Martin Vogel35833e1f9149
diff --git a/README.md b/README.md
index 93022fcf8..9ff713e0e 100644
--- a/README.md
+++ b/README.md
@@ -252,7 +252,7 @@ The install script placed beside the binary is **reported, not deleted** — uni
- `INFRA_MAPS` — a Kubernetes Service to each workload whose pod labels carry every `key: value` of the Service's selector, within one namespace
- `CONNECTS_TO` — a Kubernetes workload or compose service to the Service its containers' environment addresses (`PRODUCT_CATALOG_SERVICE_ADDR: productcatalogservice:3550`, a URL's host, `<svc>.<ns>.svc...`, a bare name on an `*_ADDR` / `*_HOST` / `*_URL` / ... key; compose: the project's `.env` interpolated): a Kubernetes Service of the same bundle and namespace, or a compose service of the same file. The edge keeps `via: env`, `key` and `container` — never the value
- `USAGE` with `ref: image` — a Kubernetes workload (any pod template: containers, initContainers, CronJobs, custom resources) or a docker compose service to the `Image` it runs
-- `DEPLOYS` — what puts manifests, kustomizations or charts on a cluster, to what it puts there: a Flux Kustomization or Argo Application to the kustomizations / manifests / chart of its path, a Flux HelmRelease to its chart (`spec.chart` or `chartRef` → OCIRepository), a shell command or Make recipe (`kubectl apply -f/-k`, `kustomize build | kubectl apply`, `helm install/upgrade/template`), a Go installer loading a chart with the Helm SDK, a Terraform `helm_release`. A chart outside the repository is a shared external `Chart`; the edge says `via` (`flux`, `argo`, `helmrelease`, `kubectl`, `kustomize`, `helm`, `helm-sdk`, `terraform`, ...)
+- `DEPLOYS` — what puts manifests, kustomizations or charts on a cluster, to what it puts there: a Flux Kustomization or Argo Application to the kustomizations / manifests / chart of its path, a Flux HelmRelease to its chart (`spec.chart` or `chartRef` → OCIRepository), a shell command or Make recipe (`kubectl apply -f/-k`, `kustomize build | kubectl apply`, `helm install/upgrade/template`), a Go installer loading a chart with the Helm SDK, a Terraform `helm_release`, a kustomization inflating a chart (`helmCharts`; its values file an `IMPORTS`). A chart outside the repository is a shared external `Chart`; the edge says `via` (`flux`, `argo`, `helmrelease`, `kubectl`, `kustomize`, `helm`, `helm-sdk`, `terraform`, `helmcharts`, ...)
- `DEPENDS_ON` — a Helm chart to the charts it declares (the local chart for a resolvable `file://` repository, otherwise an external `Chart`; the edge keeps `repository`), and a `go.mod` / `requirements.txt` file to an external `Package`; a Dockerfile to the `Image`s it builds on (`via: from`, `copy-from`); an `Image` to the Dockerfile it is built from (`via: build`; `tool`: `skaffold`, `compose`, `docker-build` for `docker` / `podman` / `nerdctl` / `buildah` build commands in scripts, Make and CI); a compose service to the services its `depends_on` / `links` name
- `CONFIGURES` — code reading an environment variable to the shared `EnvVar` of that name (`strategy: env_access`); a Kubernetes container, compose service or Dockerfile (`ENV` of the image) setting one to that container's own `EnvVar` (`strategy: env_set`, with `source`: `value`, `configMapKeyRef`, `secretKeyRef`, `fieldRef`, ..., `compose`, `dockerfile` — values are never stored); and that container's `EnvVar` to the code reading the name inside the files its image is built from (`strategy: env_read`, with `dockerfile`) — the image's files are the sources its Dockerfile's `COPY` / `ADD` put into it, less the context's `.dockerignore`
- `OVERRIDE` with `via: patch` — a Kustomize patch to each object of its kustomization's build it changes (child → base): a patch file's documents to the object of the same kind and name; an inline patch (from the kustomization) or a JSON6902 operation file to what its `target` selects (group, version, kind, name, namespace); a component's in the build of each kustomization including it. The edge keeps `kustomization`, `patch` and `line`; a patch file is an `IMPORTS` (`local_name: patches`) of its kustomization, never a member of the build
diff --git a/internal/cbm/cbm.h b/internal/cbm/cbm.h
index cf3343865..bf2965186 100644
--- a/internal/cbm/cbm.h
+++ b/internal/cbm/cbm.h
@@ -708,7 +708,10 @@ typedef struct {
* CBM_K8S_FACT_CRD: the CRD def_index declares kind `kind` in group `name`.
* CBM_K8S_FACT_DEPLOY: object def_index (a Flux Kustomization, an Argo
* Application) deploys the repository directory `name` into namespace
- * `ns` (NULL: the objects' own); via "flux" / "argo".
+ * `ns` (NULL: the objects' own); via "flux" / "argo". via "kustomize"
+ * (def_index -1: the kustomization itself): a `helmCharts` entry
+ * inflates chart `name` of repository `url` at `version` as release
+ * `release` into namespace `ns`, with values file `path`.
* CBM_K8S_FACT_ROUTE: object def_index (an Ingress, an HTTPRoute) exposes
* `route` ("<host or *><path>") and sends it to the kind/ns/name backend
* (name NULL: none); via "ingress" / "httproute".
@@ -751,6 +754,8 @@ typedef struct {
const char *group; /* PATCH: the API group named ("core"), NULL: any */
const char *version; /* PATCH: the API version named, NULL: any */
const char *path; /* PATCH: the patch file, NULL: inline */
+ const char *url; /* DEPLOY (kustomize): the chart repository */
+ const char *release; /* DEPLOY (kustomize): the release name */
int line;
} CBMK8sFact;
diff --git a/internal/cbm/extract_k8s.c b/internal/cbm/extract_k8s.c
index 429e7e70e..8a827c354 100644
--- a/internal/cbm/extract_k8s.c
+++ b/internal/cbm/extract_k8s.c
@@ -453,6 +453,64 @@ static void emit_kustomize_patches(CBMExtractCtx *ctx, TSNode seq) {
}
}
+// The `helmCharts` list of a kustomization: each chart it inflates into its
+// build is a DEPLOY fact (via "kustomize") the K8s pass draws to that chart;
+// its values file an import (local name "valuesFile").
+static void emit_kustomize_charts(CBMExtractCtx *ctx, TSNode seq) {
+ CBMArena *a = ctx->arena;
+ k8s_kids_t items = k8s_kids(seq);
+ TSNode item;
+ while (k8s_kid(&items, false, &item)) {
+ TSNode map = strcmp(ts_node_type(item), "block_sequence_item") == 0
+ ? kust_item_mapping(item)
+ : (TSNode){0};
+ if (ts_node_is_null(map)) {
+ continue;
+ }
+ CBMK8sFact f = {.fact = CBM_K8S_FACT_DEPLOY,
+ .def_index = -1,
+ .via = "kustomize",
+ .edge = "DEPLOYS",
+ .line = (int)ts_node_start_point(item).row + TS_LINE_OFFSET};
+ k8s_kids_t pairs = k8s_kids(map);
+ TSNode pair;
+ while (k8s_kid(&pairs, false, &pair)) {
+ if (strcmp(ts_node_type(pair), "block_mapping_pair") != 0) {
+ continue;
+ }
+ const char *key = get_scalar_text(a, ts_node_named_child(pair, 0), ctx->source);
+ TSNode v = unwrap_pair_value(pair);
+ const char *val =
+ key && !ts_node_is_null(v) ? get_scalar_text(a, v, ctx->source) : NULL;
+ if (!val || !val[0]) {
+ continue;
+ }
+ if (strcmp(key, "name") == 0) {
+ f.name = val;
+ } else if (strcmp(key, "repo") == 0) {
+ f.url = val;
+ } else if (strcmp(key, "version") == 0) {
+ f.version = val;
+ } else if (strcmp(key, "releaseName") == 0) {
+ f.release = val;
+ } else if (strcmp(key, "namespace") == 0) {
+ f.ns = val;
+ } else if (strcmp(key, "valuesFile") == 0) {
+ f.path = val;
+ }
+ }
+ if (!f.name) {
+ continue;
+ }
+ if (f.path) {
+ CBMImport imp = {.local_name = cbm_arena_strdup(a, "valuesFile"),
+ .module_path = cbm_arena_strdup(a, f.path)};
+ cbm_imports_push(&ctx->result->imports, a, imp);
+ }
+ cbm_k8sfact_push(&ctx->result->k8s_facts, a, f);
+ }
+}
+
// Process a single block_mapping_pair for kustomize list keys.
static void process_kustomize_pair(CBMExtractCtx *ctx, TSNode pair) {
if (strcmp(ts_node_type(pair), "block_mapping_pair") != 0) {
@@ -463,14 +521,20 @@ static void process_kustomize_pair(CBMExtractCtx *ctx, TSNode pair) {
return;
}
const char *key_text = get_scalar_text(ctx->arena, key_node, ctx->source);
- if (!key_text || !is_kustomize_list_key(key_text)) {
+ if (!key_text) {
return;
}
-
TSNode val_node = unwrap_pair_value(pair);
if (ts_node_is_null(val_node) || strcmp(ts_node_type(val_node), "block_sequence") != 0) {
return;
}
+ if (strcmp(key_text, "helmCharts") == 0) {
+ emit_kustomize_charts(ctx, val_node);
+ return;
+ }
+ if (!is_kustomize_list_key(key_text)) {
+ return;
+ }
emit_kustomize_sequence(ctx, val_node, key_text);
if (strcmp(key_text, "patches") == 0) {
emit_kustomize_patches(ctx, val_node);
diff --git a/src/pipeline/pass_k8s.c b/src/pipeline/pass_k8s.c
index 1a233aa90..0182cddda 100644
--- a/src/pipeline/pass_k8s.c
+++ b/src/pipeline/pass_k8s.c
@@ -1226,6 +1226,18 @@ typedef struct {
int line;
} k8s_patch_t;
+/* A chart a kustomization inflates into its build (`helmCharts`). */
+typedef struct {
+ char *kust; /* the kustomization file */
+ char *chart; /* the chart name */
+ char *url; /* its repository, NULL when unset */
+ char *version; /* NULL when unset */
+ char *release; /* the release name, NULL when unset */
+ char *ns; /* the release namespace, NULL when unset */
+ char *values; /* the values file (repository path), NULL when none */
+ int line;
+} k8s_kchart_t;
+
typedef struct {
k8s_ref_t *refs;
int ref_n;
@@ -1251,6 +1263,9 @@ typedef struct {
k8s_patch_t *patches;
int patch_n;
int patch_cap;
+ k8s_kchart_t *kcharts;
+ int kchart_n;
+ int kchart_cap;
} k8s_facts_t;
static void k8s_facts_free(k8s_facts_t *f) {
@@ -1296,6 +1311,17 @@ static void k8s_facts_free(k8s_facts_t *f) {
cbm_free(CBM_MEM_CLASS_OTHER, p->ns);
}
cbm_free(CBM_MEM_CLASS_OTHER, f->patches);
+ for (int i = 0; i < f->kchart_n; i++) {
+ k8s_kchart_t *c = &f->kcharts[i];
+ cbm_free(CBM_MEM_CLASS_OTHER, c->kust);
+ cbm_free(CBM_MEM_CLASS_OTHER, c->chart);
+ cbm_free(CBM_MEM_CLASS_OTHER, c->url);
+ cbm_free(CBM_MEM_CLASS_OTHER, c->version);
+ cbm_free(CBM_MEM_CLASS_OTHER, c->release);
+ cbm_free(CBM_MEM_CLASS_OTHER, c->ns);
+ cbm_free(CBM_MEM_CLASS_OTHER, c->values);
+ }
+ cbm_free(CBM_MEM_CLASS_OTHER, f->kcharts);
cbm_free(CBM_MEM_CLASS_OTHER, f->envs);
cbm_free(CBM_MEM_CLASS_OTHER, f->hrs);
cbm_free(CBM_MEM_CLASS_OTHER, f->srcs);
@@ -3423,6 +3449,45 @@ static void k8s_link_chart_refs(k8s_dep_link_t *l, const k8s_hr_t *oci) {
}
}
+/* `, "<key>":"<val>"` (escaped) at out + *w when `val` is set. */
+static void k8s_prop_add(char *out, size_t out_sz, int *w, const char *key, const char *val) {
+ if (!val || *w < 0 || (size_t)*w >= out_sz) {
+ return;
+ }
+ char esc[CBM_SZ_1K];
+ cbm_json_escape(esc, (int)sizeof(esc), val);
+ *w += snprintf(out + *w, out_sz - (size_t)*w, ",\"%s\":\"%s\"", key, esc);
+}
+
+/* A chart a kustomization inflates (`helmCharts`) is deployed with its
+ * build: DEPLOYS {via: helmcharts, external, chart, url, version, release,
+ * namespace, values, line} from the kustomization (its Kustomization
+ * Resource, else its File -- the unit a Flux / Argo deploy reaches) to the
+ * shared external Chart of that name. */
+static void k8s_link_kcharts(k8s_dep_link_t *l, const k8s_facts_t *f) {
+ for (int i = 0; i < f->kchart_n; i++) {
+ const k8s_kchart_t *c = &f->kcharts[i];
+ if (!c->chart || strchr(c->chart, '/') || strchr(c->chart, '$')) {
+ continue;
+ }
+ int64_t src = k8s_first_id(l->kusts, c->kust);
+ src = src > 0 ? src : k8s_first_id(l->files, c->kust);
+ char props[CBM_SZ_4K];
+ int w = snprintf(props, sizeof(props), "{\"via\":\"helmcharts\",\"external\":true");
+ k8s_prop_add(props, sizeof(props), &w, "chart", c->chart);
+ k8s_prop_add(props, sizeof(props), &w, "url", c->url);
+ k8s_prop_add(props, sizeof(props), &w, "version", c->version);
+ k8s_prop_add(props, sizeof(props), &w, "release", c->release);
+ k8s_prop_add(props, sizeof(props), &w, "namespace", c->ns);
+ k8s_prop_add(props, sizeof(props), &w, "values", c->values);
+ if (w < 0 || (size_t)w >= sizeof(props) - CBM_SZ_32) {
+ continue;
+ }
+ snprintf(props + w, sizeof(props) - (size_t)w, ",\"line\":%d}", c->line);
+ k8s_deploys_edge(l, src, k8s_external_chart(l, c->chart, c->kust), props);
+ }
+}
+
/* A container image an object runs: USAGE {ref:image, container} to its
* Image node -- the node a Dockerfile building or building on that image
* joins; the container names whose environment runs it. */
@@ -3463,25 +3528,50 @@ static char *k8s_dup_opt(const char *s) {
return s ? cbm_mem_strdup(CBM_MEM_CLASS_OTHER, s) : NULL;
}
-/* Keep a kustomization's PATCH facts, each patch file as a repository path
- * (one that leaves the repository, or a URL, names no file of it). */
-static void k8s_patches_keep(k8s_facts_t *f, const char *kust, const CBMFileResult *res) {
+/* The repository path of `rel`, relative to directory `dir`; false when it
+ * leaves the repository (or is a URL). */
+static bool k8s_repo_path(const char *dir, const char *rel, char *out, size_t out_sz) {
+ char joined[CBM_SZ_2K];
+ snprintf(joined, sizeof(joined), "%s%s%s", dir, dir[0] ? "/" : "", rel);
+ return k8s_norm_dir(joined, out, out_sz);
+}
+
+static void k8s_kchart_keep(k8s_facts_t *f, const char *kust, const CBMK8sFact *x,
+ const char *values) {
+ if (!k8s_grow((void **)&f->kcharts, &f->kchart_cap, f->kchart_n, sizeof(*f->kcharts))) {
+ return;
+ }
+ f->kcharts[f->kchart_n++] = (k8s_kchart_t){.kust = cbm_mem_strdup(CBM_MEM_CLASS_OTHER, kust),
+ .chart = k8s_dup_opt(x->name),
+ .url = k8s_dup_opt(x->url),
+ .version = k8s_dup_opt(x->version),
+ .release = k8s_dup_opt(x->release),
+ .ns = k8s_dup_opt(x->ns),
+ .values = k8s_dup_opt(values),
+ .line = x->line};
+}
+
+/* Keep a kustomization's facts: its patches (PATCH) and the charts it
+ * inflates (DEPLOY via "kustomize"), each file as a repository path -- a
+ * patch file outside the repository (or a URL) names no file of it, a values
+ * file there is left out. */
+static void k8s_kustomize_keep(k8s_facts_t *f, const char *kust, const CBMFileResult *res) {
char dir[CBM_SZ_1K];
k8s_dirname(kust, dir, sizeof(dir));
for (int i = 0; res && i < res->k8s_facts.count; i++) {
const CBMK8sFact *x = &res->k8s_facts.items[i];
- char path[CBM_SZ_1K];
- if (x->fact != CBM_K8S_FACT_PATCH) {
+ bool chart = x->fact == CBM_K8S_FACT_DEPLOY && x->via && strcmp(x->via, "kustomize") == 0;
+ if (x->fact != CBM_K8S_FACT_PATCH && !chart) {
continue;
}
- if (x->path) {
- char joined[CBM_SZ_2K];
- snprintf(joined, sizeof(joined), "%s%s%s", dir, dir[0] ? "/" : "", x->path);
- if (!k8s_norm_dir(joined, path, sizeof(path))) {
- continue;
- }
+ char path[CBM_SZ_1K];
+ bool in_repo = x->path && k8s_repo_path(dir, x->path, path, sizeof(path));
+ if (chart) {
+ k8s_kchart_keep(f, kust, x, in_repo ? path : NULL);
+ continue;
}
- if (!k8s_grow((void **)&f->patches, &f->patch_cap, f->patch_n, sizeof(*f->patches))) {
+ if ((x->path && !in_repo) ||
+ !k8s_grow((void **)&f->patches, &f->patch_cap, f->patch_n, sizeof(*f->patches))) {
continue;
}
f->patches[f->patch_n++] =
@@ -3767,7 +3857,7 @@ static void k8s_link_patches(cbm_pipeline_ctx_t *ctx, const k8s_kusts_t *ks, k8s
static void k8s_link_deploys(cbm_pipeline_ctx_t *ctx, k8s_kusts_t *ks, k8s_bundles_t *b,
const k8s_facts_t *f) {
- if (f->dep_n == 0 && f->hr_n == 0 && f->src_n == 0) {
+ if (f->dep_n == 0 && f->hr_n == 0 && f->src_n == 0 && f->kchart_n == 0) {
return;
}
k8s_dep_link_t l = {.ctx = ctx,
@@ -3841,6 +3931,9 @@ static void k8s_link_deploys(cbm_pipeline_ctx_t *ctx, k8s_kusts_t *ks, k8s_bundl
for (int s = 0; l.files && l.charts && s < f->src_n; s++) {
k8s_link_chart_refs(&l, &f->srcs[s]);
}
+ if (l.files && l.kusts) {
+ k8s_link_kcharts(&l, f);
+ }
cbm_free(CBM_MEM_CLASS_OTHER, (void *)members.items);
cbm_free(CBM_MEM_CLASS_OTHER, (void *)units.items);
cbm_free(CBM_MEM_CLASS_OTHER, (void *)manifests.items);
@@ -3918,7 +4011,7 @@ int cbm_pipeline_pass_k8s(cbm_pipeline_ctx_t *ctx, const cbm_file_info_t *files,
case K8S_KUSTOMIZE:
k8s_kusts_push(&kusts, rel, k8s_kustomize_namespace(p->source),
k8s_kustomize_component(p->source));
- k8s_patches_keep(&facts, rel, p->res);
+ k8s_kustomize_keep(&facts, rel, p->res);
break;
case K8S_MANIFEST:
handle_k8s_manifest(ctx, rel, p->source, p->res, &recs, &facts);
diff --git a/src/pipeline/pipeline_internal.h b/src/pipeline/pipeline_internal.h
index e37bd7785..0f6ed676a 100644
--- a/src/pipeline/pipeline_internal.h
+++ b/src/pipeline/pipeline_internal.h
@@ -1497,7 +1497,8 @@ int cbm_pipeline_build_fresh_semantic_manifest(cbm_pipeline_t *p, const char *pr
* curl / wget HTTP_CALLS the Route of the URL it states (pass_shell.c).
* A kustomize patch OVERRIDEs the objects of its build it changes, its
* file an IMPORTS of the kustomization; a Resource keeps the version of
- * its apiVersion (extract_k8s.c, pass_k8s.c). An index built before
+ * its apiVersion; a kustomization DEPLOYS the charts it inflates
+ * (helmCharts) (extract_k8s.c, pass_k8s.c). An index built before
* holds none of them, so it rebuilds once on upgrade. */
enum { CBM_SEMANTIC_INDEX_VERSION = 9 };
diff --git a/tests/test_grammar_probe_f.c b/tests/test_grammar_probe_f.c
index 98fa40119..05c45be25 100644
--- a/tests/test_grammar_probe_f.c
+++ b/tests/test_grammar_probe_f.c
@@ -2701,6 +2701,69 @@ TEST(probe_kustomize_patches_override_their_base) {
PASS();
}
+/* Every kustomize chart deploy as "<source file> <source label> -> <target
+ * label>/<target name> <properties less line>", then "values imports <n>". */
+static char *gpf_kcharts(const GpfFile *files, int nfiles) {
+ GpfProj lp;
+ cbm_store_t *store = gpf_index_files(&lp, files, nfiles);
+ char *out = NULL;
+ if (store) {
+ sqlite3_stmt *st = NULL;
+ const char *sql =
+ "SELECT coalesce((SELECT group_concat(x, char(10)) FROM (SELECT s.file_path || ' ' || "
+ "s.label || ' -> ' || t.label || '/' || t.name || ' ' || json_remove(e.properties, "
+ "'$.line') AS x FROM edges e JOIN nodes s ON s.id=e.source_id JOIN nodes t ON "
+ "t.id=e.target_id WHERE e.project=?1 AND e.type='DEPLOYS' AND "
+ "json_extract(e.properties,'$.via')='helmcharts' ORDER BY x)), '') || char(10) || "
+ "'values imports ' || (SELECT COUNT(*) FROM edges e WHERE e.project=?1 AND "
+ "e.type='IMPORTS' AND json_extract(e.properties,'$.local_name')='valuesFile')";
+ if (sqlite3_prepare_v2(cbm_store_get_db(store), sql, -1, &st, NULL) == SQLITE_OK) {
+ sqlite3_bind_text(st, 1, lp.project, -1, SQLITE_STATIC);
+ if (sqlite3_step(st) == SQLITE_ROW) {
+ out = strdup((const char *)sqlite3_column_text(st, 0));
+ }
+ }
+ sqlite3_finalize(st);
+ }
+ gpf_cleanup(&lp, store);
+ return out;
+}
+
+/* A chart a kustomization inflates (`helmCharts`) DEPLOYS from that
+ * kustomization -- its Kustomization Resource, else (no `kind:` line) its
+ * File -- to the shared external Chart of the name, keeping repository,
+ * version, release, namespace and values file; two kustomizations of one
+ * chart share it. A chart name with a path names nothing; a values file
+ * outside the repository is not kept; one inside is an import. */
+TEST(probe_kustomize_helm_charts_deploy_their_chart) {
+ static const GpfFile files[] = {
+ {"obs/kustomization.yaml",
+ "apiVersion: kustomize.config.k8s.io/v1beta1\nkind: Kustomization\nhelmCharts:\n"
+ "- name: loki\n repo: https://grafana.github.io/helm-charts\n version: 6.46.0\n"
+ " releaseName: logs\n namespace: obs\n valuesFile: values.yaml\n"
+ "- name: org/thing\n repo: https://example.com/charts\n"},
+ {"obs/values.yaml", "loki:\n auth_enabled: false\n"},
+ {"plain/kustomization.yaml",
+ "helmCharts:\n- name: loki\n repo: oci://registry.example.com/charts\n"
+ " valuesFile: ../../../../outside.yaml\n"}};
+ int n = (int)(sizeof(files) / sizeof(files[0]));
+ char *got = gpf_kcharts(files, n);
+ static const char want[] =
+ "obs/kustomization.yaml Resource -> Chart/loki {\"via\":\"helmcharts\",\"external\":true,"
+ "\"chart\":\"loki\",\"url\":\"https://grafana.github.io/helm-charts\",\"version\":\"6.46.0\","
+ "\"release\":\"logs\",\"namespace\":\"obs\",\"values\":\"obs/values.yaml\"}\n"
+ "plain/kustomization.yaml File -> Chart/loki {\"via\":\"helmcharts\",\"external\":true,"
+ "\"chart\":\"loki\",\"url\":\"oci://registry.example.com/charts\"}\n"
+ "values imports 1";
+ if (!got || strcmp(got, want) != 0) {
+ fprintf(stderr, "kustomize charts got:\n%s\nwant:\n%s\n", got ? got : "(null)", want);
+ free(got);
+ FAIL("kustomize chart deploys");
+ }
+ free(got);
+ PASS();
+}
+
/* Every script HTTP_CALLS edge as "<source file> <route QN>", then a line
* "edgeless routes <n>": the Route nodes no edge touches. */
static char *gpf_script_http(const GpfFile *files, int nfiles) {
@@ -5137,6 +5200,7 @@ SUITE(grammar_probe_f) {
RUN_TEST(probe_env_address_connects_to_its_service);
RUN_TEST(probe_script_http_request_calls_its_route);
RUN_TEST(probe_kustomize_patches_override_their_base);
+ RUN_TEST(probe_kustomize_helm_charts_deploy_their_chart);
RUN_TEST(probe_image_hub_splits_by_component);
RUN_TEST(probe_gitops_objects_deploy_their_units);
RUN_TEST(probe_shell_kubectl_deploys_what_it_applies);