Skip to content

Commit df5ab47

Browse files
docs(procmgr): point config gate env bindings at schema source of truth
Replace outdated module comments that referenced hand-written Go BindEnvAndSetDefault setup with schema YAML env_vars and schema.codegen.
1 parent 0dd7f10 commit df5ab47

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

pkg/procmgr/rust/src/config_gate/env_bindings.rs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@
55

66
//! Config-key → environment-variable bindings for procmgr config gates.
77
//!
8-
//! Keys listed in [`ENV_BINDINGS`] use **only** the named env vars (mirrors Go
9-
//! `BindEnvAndSetDefault` when explicit names are passed). All other keys use the
10-
//! agent convention `DD_<KEY_WITH_UNDERSCORES>`.
8+
//! Source of truth: `env_vars` on each setting in `pkg/config/schema/yaml/`
9+
//! (merged via `dda inv schema.codegen` into generated Go init settings).
1110
//!
12-
//! Keep in sync with `pkg/config/setup/process.go` (`procBindEnvAndSetDefault`),
13-
//! `pkg/config/setup/process_settings.go`, `pkg/config/setup/system_probe_settings.go`,
14-
//! and `pkg/config/setup/common_settings.go`.
11+
//! Keys listed in [`ENV_BINDINGS`] use **only** the named env vars. All other
12+
//! keys use the agent convention `DD_<KEY_WITH_UNDERSCORES>`.
1513
//!
16-
//! On Windows, config gates resolve `DD_*` values from the core Agent service
17-
//! (`datadogagent`) SCM `Environment` registry first, then dd-procmgr's process
18-
//! environment, so service-local overrides match agent config resolution.
14+
//! This table covers only keys evaluated by config gates (`GATED_KEY_SPECS` in
15+
//! `config_gate.rs`). Keep it in sync with the schema `env_vars` for those keys.
16+
//!
17+
//! On Windows, config gates resolve `DD_*` from the core Agent SCM `Environment`
18+
//! registry first, then dd-procmgr's process environment, so service-local
19+
//! overrides match agent config resolution.
1920
2021
struct EnvBinding {
2122
key: &'static str,

0 commit comments

Comments
 (0)