Common config: enhancement to reactor_config prebuild plugin
See original GitHub issueThe reactor_config
plugin could take additional parameters and use them to update the config object it stores. For this to be useful it should be possible not to specify a config_path parameter.
This could be used to store configuration required by multiple plugins, for example Koji information (URLs, certificates) etc.
The benefit of this is that configuration does not have to be set for each and every plugin requiring a particular configuration value.
Example:
{
"name": "reactor_config",
"args": {
"config_path": "/var/run/secrets/config.yaml",
"integrations": {
"koji": {
"kojihub": "...",
"kojiroot": "...",
"target": "...",
"koji_proxy_user": "...",
"koji_ssl_certs_dir": "...",
...
}
}
},
{
"name": "koji"
}
}
Resulting object returned by get_config()
would be something like:
{
"version: 1,
"clusters": {
...
},
"integrations": {
"koji": {
"kojihub": "...",
"kojiroot": "...",
"target": "...",
"koji_proxy_user": "...",
"koji_ssl_certs_dir": "...",
...
}
}
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Adobe ColdFusion Anthology - Springer Link
The output effect can be enhanced by adding the output attribute to the tag and setting its value to. Boolean true (true/yes/!0), ...
Read more >Twisted PDF | PDF | Unit Testing | Port (Computer Networking)
We can also supply easy configuration for common cases with a makeService method ... enhance your software in a way that is loosely...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Even better would be to use 3.6.1’s ConfigMap support for BuildConfigs, i.e.
and have
get_config()
parse a base64-encoded environment variable populated that way.We now use common config.