Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read config values from env on init command #663

Merged
merged 21 commits into from
Feb 19, 2019

Commits on Feb 7, 2019

  1. Add ApplyEnvVars() to ComponentConfig interface

    * cluster and restapi configs can also get values from environment variables
    * other config components don't read any values from the environment
    
    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 7, 2019
    Configuration menu
    Copy the full SHA
    ed30ac1 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2019

  1. Implement ApplyEnvVars for all ComponentConfigs

    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    032f028 View commit details
    Browse the repository at this point in the history
  2. Remove json config overriding with env vars

    in LoadJSON for restapi and cluster Config
    
    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 8, 2019
    Configuration menu
    Copy the full SHA
    21a5391 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2019

  1. Add ipfsproxy NodeHTTPS config field to ToJSON

    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 11, 2019
    Configuration menu
    Copy the full SHA
    da58eae View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2019

  1. Use ParseDurations when applying json to cluster Config

    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 12, 2019
    Configuration menu
    Copy the full SHA
    15ac8cd View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2019

  1. Use separate envConfigKeys for metrics and tracing

    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    580020d View commit details
    Browse the repository at this point in the history
  2. Implement ApplyEnvVars for ipfshttp Config

    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    aa5d545 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2019

  1. Merge remote-tracking branch 'upstream/master' into issue_656

    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 15, 2019
    Configuration menu
    Copy the full SHA
    47252f8 View commit details
    Browse the repository at this point in the history
  2. Change ApplyEnvVars strategy for all config components

    Get jsonConfig from Config, apply env vars to it, load jsonConfig
    back into Config.
    
    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 15, 2019
    Configuration menu
    Copy the full SHA
    168cf76 View commit details
    Browse the repository at this point in the history
  3. Create LoadJSONFileAndEnv config method for convenience

    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 15, 2019
    Configuration menu
    Copy the full SHA
    523e109 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2019

  1. Fix env config tests

    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    78ac49a View commit details
    Browse the repository at this point in the history
  2. Add ApplyEnvVars test to ipfsproxy config

    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    36ee0f8 View commit details
    Browse the repository at this point in the history
  3. Add ApplyEnvVars test to raft config

    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    bac982c View commit details
    Browse the repository at this point in the history
  4. Add ApplyEnvVars test to disk config

    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    08580c3 View commit details
    Browse the repository at this point in the history
  5. Add ApplyEnvVars test to numpin config

    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    e38ceab View commit details
    Browse the repository at this point in the history
  6. Add ApplyEnvVars test to ipfshttp config

    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    be8c56f View commit details
    Browse the repository at this point in the history
  7. Add ApplyEnvVars test to monbasic config

    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    40d1077 View commit details
    Browse the repository at this point in the history
  8. Add ApplyEnvVars test to pubsubmon config

    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    38886da View commit details
    Browse the repository at this point in the history
  9. Add ApplyEnvVars test to maptracker config

    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    368f1de View commit details
    Browse the repository at this point in the history
  10. Add ApplyEnvVars test to stateless config

    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    50844b9 View commit details
    Browse the repository at this point in the history
  11. Add ApplyEnvVars test to observations config

    License: MIT
    Signed-off-by: Robert Ignat <robert.ignat91@gmail.com>
    roignpar committed Feb 18, 2019
    Configuration menu
    Copy the full SHA
    06482e5 View commit details
    Browse the repository at this point in the history