MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / extract_kustomize

Function extract_kustomize

internal/cbm/extract_k8s.c:191–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191static void extract_kustomize(CBMExtractCtx *ctx) {
192 TSNode root = ctx->root;
193 uint32_t root_n = ts_node_child_count(root);
194 for (uint32_t si = 0; si < root_n; si++) {
195 TSNode stream_child = ts_node_child(root, si);
196 if (strcmp(ts_node_type(stream_child), "document") != 0) {
197 continue;
198 }
199 TSNode mapping = unwrap_block_mapping(stream_child);
200 if (ts_node_is_null(mapping)) {
201 continue;
202 }
203
204 emit_kustomize_kind_def(ctx, mapping);
205
206 uint32_t pair_n = ts_node_child_count(mapping);
207 for (uint32_t pi = 0; pi < pair_n; pi++) {
208 process_kustomize_pair(ctx, ts_node_child(mapping, pi));
209 }
210 }
211}
212
213// ---------------------------------------------------------------------------
214// K8s manifest extraction

Callers 1

cbm_extract_k8sFunction · 0.85

Calls 3

unwrap_block_mappingFunction · 0.85
emit_kustomize_kind_defFunction · 0.85
process_kustomize_pairFunction · 0.85

Tested by

no test coverage detected