Skip to main content

env_override

Function env_override 

Source
pub fn env_override(raw: Option<String>) -> Option<String>
Expand description

An environment value, if the deployment actually supplied one.

A key set to nothing counts as unset: a ConfigMap can carry an empty string, and taking that literally would override good configuration with a URL that cannot parse.

Takes the looked-up value rather than reading the environment so it is testable without mutating process-global state.