Giter VIP home page Giter VIP logo

Comments (4)

askuy avatar askuy commented on May 22, 2024

1 因为viper有些接口没暴露,比如想输出格式化配置,还有他设置一些远程配置,需要加载etcd依赖,并且config协议不能统一。
希望的是--config=config.toml, --config=etcd:///xxx.com/, --confg=k8s:///xxx.com/ddd这样统一配置
2 这个比较复杂,而且特别小众场景
3 k8s config map就可以了。

from ego.

go-slark avatar go-slark commented on May 22, 2024
  1. 多配置源的场景还是有的,如从环境变量和配置文件读取,一些通过配置文件,一些依赖环境变量,
  2. 意思是从配置文件读取配置后覆盖写configmap吗?
  3. 多配置源还需考虑配置加载顺序

from ego.

askuy avatar askuy commented on May 22, 2024
  1. 多配置源的场景还是有的,如从环境变量和配置文件读取,一些通过配置文件,一些依赖环境变量,
  2. 意思是从配置文件读取配置后覆盖写configmap吗?
  3. 多配置源还需考虑配置加载顺序

明白你的意思了。这个跟viper一样吧。

from ego.

askuy avatar askuy commented on May 22, 2024
  1. 多配置源的场景还是有的,如从环境变量和配置文件读取,一些通过配置文件,一些依赖环境变量,
  2. 意思是从配置文件读取配置后覆盖写configmap吗?
  3. 多配置源还需考虑配置加载顺序

之前考虑过这个场景,但是后续并没有继续这么做,你要不要来改造试试。

from ego.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.