Skip to main content

Module resolve

Module resolve 

Source
Expand description

Compile-time resolution of shared plugin configs (config_ref).

resolve_plugin_configs validates the plugin_configs definitions and returns an in-memory copy of the gateway config where every node’s config_ref — in policies and supernode definitions alike — has been materialized: effective config = shared config with the node’s local keys written over it (shallow, top-level, local wins), config_ref cleared. Runs at the top of SharedState::compile_routes (before supernode expansion, so instances inherit resolved inner configs) and in the debug sandbox. The resolved copy is never stored: gateway.yaml, the Admin API, etcd, and the export endpoint always keep the reference form.

Constants§

RESERVED_TYPES 🔒
Types that may not be used as a shared config’s type: pipeline endpoints, supernode instances, and supernode boundary pseudo-nodes.

Functions§

resolve_nodes 🔒
Materializes config_ref on each node in place: shared config first, then the node’s own keys written over it (local wins), ref cleared.
resolve_plugin_configs
Validates shared plugin configs and materializes every config_ref.