-
Notifications
You must be signed in to change notification settings - Fork 338
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: support regex in path #779
Conversation
69c1764
to
978b344
Compare
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.
We may also add some test cases.
ebd0747
to
6e7f685
Compare
have written more test cases. |
By say adding test cases, we'd better also add the E2E test cases. |
working on it. |
Codecov Report
@@ Coverage Diff @@
## master #779 +/- ##
==========================================
+ Coverage 32.42% 32.91% +0.49%
==========================================
Files 65 65
Lines 6872 6929 +57
==========================================
+ Hits 2228 2281 +53
- Misses 4396 4397 +1
- Partials 248 251 +3
Continue to review full report at Codecov.
|
1d0e27c
to
33dd6c4
Compare
@tokers @tao12345666333 @lingsamuel @gxthrj finally got the e2e testing work. |
33dd6c4
to
a01a4fd
Compare
Thanks! I have put it in my list. PS: I will submit a PR to fix the problem of e2e failure (Ingress LB status case) |
In addition, can you please add documentation to introduce this feature? |
sure. |
pkg/kube/translation/ingress.go
Outdated
@@ -29,16 +29,23 @@ import ( | |||
|
|||
"github.com/apache/apisix-ingress-controller/pkg/id" | |||
apisixv12 "github.com/apache/apisix-ingress-controller/pkg/kube/apisix/apis/config/v1" | |||
configv2alpha1 "github.com/apache/apisix-ingress-controller/pkg/kube/apisix/apis/config/v2alpha1" |
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.
Please merge master, the v2alpha1
no longer exist, use v2beta3
instead.
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.
a lot of changes were made.
I've done the changes
fbadc91
to
1faf7cf
Compare
1faf7cf
to
973d745
Compare
done for docs |
973d745
to
f0f5775
Compare
Signed-off-by: lxm <lxm.xupt@gmail.com>
f0f5775
to
0742306
Compare
@gxthrj @tao12345666333 need a review I think the e2e failure has nothing to do with this pr |
re-run all jobs. |
E2E tests failed with "check the ingress lb status is updated" this time, maybe something wrong with test cases. I can pass this case with single run in a private environment. |
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.
LGTM
Thd code LGTM I added the label of Do you have a strong demand for this feature? @lxm |
right, I want to use apisix-ingress-controller to replace the nginx-ingress-controller without this feature, this can not be done. |
ok I understand your situation, I have added it to v1.4. |
Please answer these questions before submitting a pull request
Why submit this pull request?
New feature provided
Related issues request help: path like /api/*/action #768
New feature or improvement
k8s.apisix.apache.org/use-regex
which to change path behavior using apisix's vars