You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2023/01/02 14:59:28 UTC
[GitHub] [apisix-ingress-controller] ikatlinsky opened a new pull request, #1578: fix: allow passing plugin config name for route with no backends
ikatlinsky opened a new pull request, #1578:
URL: https://github.com/apache/apisix-ingress-controller/pull/1578
<!-- Please answer these questions before submitting a pull request -->
### Type of change:
<!-- Please delete options that are not relevant. -->
- [x] Bugfix
- [ ] New feature provided
- [ ] Improve performance
- [ ] Backport patches
### What this PR does / why we need it:
This PR fixes the issue of ignoring passed PluginConfigName in case ApisixRoute definition contains only upstreams and not backends configuration.
The issue is described here in detail - https://github.com/apache/apisix-ingress-controller/issues/1577.
### Pre-submission checklist:
<!--
Please follow the requirements:
1. Use Draft if the PR is not ready to be reviewed
2. Test is required for the feat/fix PR, unless you have a good reason
3. Doc is required for the feat PR
4. Use a new commit to resolve review instead of `push -f`
5. Use "request review" to notify the reviewer once you have resolved the review
-->
* [x] Did you explain what problem does this PR solve? Or what new features have been added?
* [x] Have you added corresponding test cases?
* [x] Have you modified the corresponding document?
* [x] Is this PR backward compatible? **If it is not backward compatible, please discuss on the [mailing list](https://github.com/apache/apisix-ingress-controller#community) first**
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] AlinsRan commented on pull request #1578: fix: allow passing plugin config name for route with no backends
Posted by GitBox <gi...@apache.org>.
AlinsRan commented on PR #1578:
URL: https://github.com/apache/apisix-ingress-controller/pull/1578#issuecomment-1369409961
Please add relevant e2e test cases
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tao12345666333 commented on pull request #1578: fix: allow passing plugin config name for route with no backends
Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on PR #1578:
URL: https://github.com/apache/apisix-ingress-controller/pull/1578#issuecomment-1370530960
@ikatlinsky good job! This location is fine.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] ikatlinsky commented on pull request #1578: fix: allow passing plugin config name for route with no backends
Posted by GitBox <gi...@apache.org>.
ikatlinsky commented on PR #1578:
URL: https://github.com/apache/apisix-ingress-controller/pull/1578#issuecomment-1375179433
@tao12345666333 is anything else required from my side to push forward this fix for being merged?
thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tao12345666333 commented on pull request #1578: fix: allow passing plugin config name for route with no backends
Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on PR #1578:
URL: https://github.com/apache/apisix-ingress-controller/pull/1578#issuecomment-1369514309
When this PR is merged, I will cherry-pick it into v1.6.1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] ikatlinsky commented on pull request #1578: fix: allow passing plugin config name for route with no backends
Posted by GitBox <gi...@apache.org>.
ikatlinsky commented on PR #1578:
URL: https://github.com/apache/apisix-ingress-controller/pull/1578#issuecomment-1369536189
> As @AlinsRan said, you can use the use case you described in #1577 as an e2e test case to easily verify that this function works as expected. Thanks
yep, just trying to configure the environment locally for e2e tests, have a couple of issues to solve with existing tests, like following one
```
Begin Captured StdOut/StdErr Output >>
2023-01-03T10:10:21+01:00 error apisix/route.go:118 failed to list routes: Get "http://localhost:31358/apisix/admin/routes": dial tcp [::1]:31358: connect: connection refused
2023-01-03T10:10:21+01:00 error apisix/cluster.go:222 failed to list routes in APISIX: Get "http://localhost:31358/apisix/admin/routes": dial tcp [::1]:31358: connect: connection refused
2023-01-03T10:10:23+01:00 error apisix/route.go:118 failed to list routes: Get "http://localhost:31358/apisix/admin/routes": dial tcp [::1]:31358: connect: connection refused
2023-01-03T10:10:23+01:00 error apisix/cluster.go:222 failed to list routes in APISIX: Get "http://localhost:31358/apisix/admin/routes": dial tcp [::1]:31358: connect: connection refused
2023-01-03T10:10:25+01:00 error apisix/route.go:118 failed to list routes: Get "http://localhost:31358/apisix/admin/routes": dial tcp [::1]:31358: connect: connection refused
2023-01-03T10:10:25+01:00 error apisix/cluster.go:222 failed to list routes in APISIX: Get "http://localhost:31358/apisix/admin/routes": dial tcp [::1]:31358: connect: connection refused
2023-01-03T10:10:25+01:00 error apisix/cluster.go:182 failed to sync cache {"cost_time": "8.016621029s", "cluster": ""}
<< End Captured StdOut/StdErr Output
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tao12345666333 commented on pull request #1578: fix: allow passing plugin config name for route with no backends
Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on PR #1578:
URL: https://github.com/apache/apisix-ingress-controller/pull/1578#issuecomment-1369513744
As @AlinsRan said, you can use the use case you described in #1577 as an e2e test case to easily verify that this function works as expected. Thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] codecov-commenter commented on pull request #1578: fix: allow passing plugin config name for route with no backends
Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on PR #1578:
URL: https://github.com/apache/apisix-ingress-controller/pull/1578#issuecomment-1369304745
# [Codecov](https://codecov.io/gh/apache/apisix-ingress-controller/pull/1578?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
> Merging [#1578](https://codecov.io/gh/apache/apisix-ingress-controller/pull/1578?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (b430a26) into [master](https://codecov.io/gh/apache/apisix-ingress-controller/commit/486b46abd1c9665005e83036433af213aaa28f21?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (486b46a) will **increase** coverage by `0.08%`.
> The diff coverage is `100.00%`.
```diff
@@ Coverage Diff @@
## master #1578 +/- ##
==========================================
+ Coverage 41.44% 41.52% +0.08%
==========================================
Files 87 87
Lines 7420 7420
==========================================
+ Hits 3075 3081 +6
+ Misses 3990 3986 -4
+ Partials 355 353 -2
```
| [Impacted Files](https://codecov.io/gh/apache/apisix-ingress-controller/pull/1578?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
|---|---|---|
| [pkg/providers/apisix/translation/apisix\_route.go](https://codecov.io/gh/apache/apisix-ingress-controller/pull/1578/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cGtnL3Byb3ZpZGVycy9hcGlzaXgvdHJhbnNsYXRpb24vYXBpc2l4X3JvdXRlLmdv) | `31.21% <100.00%> (+0.81%)` | :arrow_up: |
:mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-ingress-controller] tao12345666333 merged pull request #1578: fix: allow passing plugin config name for route with no backends
Posted by GitBox <gi...@apache.org>.
tao12345666333 merged PR #1578:
URL: https://github.com/apache/apisix-ingress-controller/pull/1578
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org