GithubHelp home page GithubHelp logo

polaris.yaml的设计有点糟糕,线上环境多是通过统一配置文件或者环境变量来控制的参数,因为对接北极星硬加一个配置文件来使用,反而增加了不少成本 about polaris-go HOT 4 OPEN

xjiahong avatar xjiahong commented on June 16, 2024
polaris.yaml的设计有点糟糕,线上环境多是通过统一配置文件或者环境变量来控制的参数,因为对接北极星硬加一个配置文件来使用,反而增加了不少成本

from polaris-go.

Comments (4)

chuntaojun avatar chuntaojun commented on June 16, 2024

polaris.yaml 里面的内容可以走 ${xxx} 环境变量的方式进行处理

from polaris-go.

xjiahong avatar xjiahong commented on June 16, 2024

polaris.yaml 里面的内容可以走 ${xxx} 环境变量的方式进行处理

golang里面没有这个吧,文档:https://polarismesh.cn/docs/%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/go%E5%BA%94%E7%94%A8%E5%BC%80%E5%8F%91/sdk/%E9%85%8D%E7%BD%AE%E7%AE%A1%E7%90%86/#sdk%E5%AE%9E%E4%BE%8B%E6%9E%84%E5%BB%BA

from polaris-go.

WTIFS avatar WTIFS commented on June 16, 2024

polaris.yaml 里面的内容可以走 ${xxx} 环境变量的方式进行处理

golang里面没有这个吧,文档:https://polarismesh.cn/docs/%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/go%E5%BA%94%E7%94%A8%E5%BC%80%E5%8F%91/sdk/%E9%85%8D%E7%BD%AE%E7%AE%A1%E7%90%86/#sdk%E5%AE%9E%E4%BE%8B%E6%9E%84%E5%BB%BA

@xjiahong 参考下这个文档里的配置,看看是你想要的效果吗?就近路由

from polaris-go.

xjiahong avatar xjiahong commented on June 16, 2024

polaris.yaml 里面的内容可以走 ${xxx} 环境变量的方式进行处理

golang里面没有这个吧,文档:https://polarismesh.cn/docs/%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/go%E5%BA%94%E7%94%A8%E5%BC%80%E5%8F%91/sdk/%E9%85%8D%E7%BD%AE%E7%AE%A1%E7%90%86/#sdk%E5%AE%9E%E4%BE%8B%E6%9E%84%E5%BB%BA

@xjiahong 参考下这个文档里的配置,看看是你想要的效果吗?就近路由

不是这个意思,是太依赖polaris.yaml这个文件了,我想把一些配置整合到其他配置文件统一管理的话,就比较麻烦需要理解配置的实现过程才能改

from polaris-go.

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.