-
Notifications
You must be signed in to change notification settings - Fork 541
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
feat: add try-paths plugins #1598
base: main
Are you sure you want to change the base?
Conversation
|
||
| 名称 | 数据类型 | 填写要求 | 默认值 | 描述 | | ||
| -------- | -------- | -------- | -------- | -------- | | ||
| serviceSource | string | 必填 | - | 支持k8s,nacos,ip,dns | |
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.
只支持FQDN格式的serviceName就可以了,这样能简化下配置,不需要配serviceSource
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1598 +/- ##
==========================================
+ Coverage 35.91% 43.47% +7.56%
==========================================
Files 69 76 +7
Lines 11576 12325 +749
==========================================
+ Hits 4157 5358 +1201
+ Misses 7104 6631 -473
- Partials 315 336 +21 |
|
||
| 名称 | 数据类型 | 填写要求 | 默认值 | 描述 | | ||
| -------- | -------- | -------- | -------- | -------- | | ||
| host | string | 必填 | - | FQDN格式的主机名称,比如<bucket name>.oss-cn-hangzhou.aliyuncs.com | |
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.
建议两个配置:
serviceHost 配 oss 域名
serviceName 配FQDN格式的服务名称(控制台服务列表看到的名字)
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.
可以参考 ext-auth 里 endpoint 配置项里的 service_host 和 service_name 的概念:https://higress.cn/docs/latest/plugins/authentication/ext-auth/
Ⅰ. Describe what this PR did
add try-paths wasm go plugin to implement try_files function of nginx。
Ⅱ. Does this pull request fix one issue?
Fix the issue: Add support of try_files usage #840 .
Ⅲ. Why don't you add test cases (unit test/integration test)?
test cases be added in codes.
Ⅳ. Describe how to verify it
enable the plugin on the route, and check its retry function on envoy log or request response.
Ⅴ. Special notes for reviews
no