question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Common config: enhancement to reactor_config prebuild plugin

See original GitHub issue

The 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:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
twaughcommented, Oct 3, 2017

Even better would be to use 3.6.1’s ConfigMap support for BuildConfigs, i.e.

  strategy:
    customStrategy:
      env:
        - name: ...
          valueFrom:
            - configMapKeyRef:
                name: ...
                key: ...
                optional: true/false

and have get_config() parse a base64-encoded environment variable populated that way.

0reactions
twaughcommented, Nov 16, 2018

We now use common config.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found