-
Notifications
You must be signed in to change notification settings - Fork 563
feat: Support APISIX_PROFILE for env-specific configuration #2238
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
Conversation
Hi @kevinw66 ,it looks great. |
Codecov Report
@@ Coverage Diff @@
## master #2238 +/- ##
==========================================
+ Coverage 65.08% 69.85% +4.76%
==========================================
Files 184 184
Lines 7274 7277 +3
Branches 829 829
==========================================
+ Hits 4734 5083 +349
+ Misses 2256 1899 -357
- Partials 284 295 +11
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Hi @kevinw66, please take a look at the CI 😄 |
@juzhiyuan It looks like the CI failed due to unstable CI, I found stream route test untill very unstable, the part of the test is easy to fail. |
I just rerun the CI, wait for a moment. |
I merged new commits from master. |
We can use |
I tried to run failed test |
Hi @zaunist, could you please give some hints on executing tests locally? |
I also have this problem in my PR submission. @bzp2010 more familiar with this, any solutions? |
Hi, @zaunist. |
Hi, @kevinw66. It's great to see you contributing to the project. But do we really need this feature? As far as I know, we can now rewrite the config file path using the Thanks. |
When we download bin file and use it directly, -c is enough. But if we have to redevelop from source code, mostly we will create env-specific config, and the -c may not so quite useful. |
Hi, @kevinw66. Sorry to reply to your delay, I miss it when dealing with PR, I have learned the purpose of this function, this feature is also used in Apache APISIX, I think it is no problem, but can you add some tests to it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still need some testing to ensure it works fine. 🤔
Why submit this pull request?
What changes will this PR take into?
Support env config just like apisix
https://apisix.apache.org/zh/docs/apisix/profile/
Related issues
fix/resolve #2194