Configuration Loader¶
Various functions that assist in loading initial configuration for the control plane.
The control plane accepts a main configuration file from the environment
variable SOVEREIGN_CONFIG
which follows the format:
<scheme>://path[,<scheme>://path,...]
Examples:
# Single file
file:///etc/sovereign.yaml
# Multiple files (comma separated)
file:///etc/sovereign/common.yaml,file:///etc/sovereign/dev.yaml
# Other types of sources
http://config.myserver.com/environments/dev.yaml
# Other types of formats
http+json://config.myserver.com/environments/dev.json
http+jinja://config.myserver.com/environments/dev.j2
http+yaml://config.myserver.com/environments/dev.yaml
-
sovereign.config_loader.
load
(spec)¶
-
sovereign.config_loader.
load_env
(variable, loader=None)¶
-
sovereign.config_loader.
load_file
(path, loader)¶
-
sovereign.config_loader.
load_http
(path, loader)¶
-
sovereign.config_loader.
load_module
(name, _=None)¶
-
sovereign.config_loader.
load_package_data
(path, loader)¶