change: refactor logic for enabling L4/L7 proxy#9607
Conversation
Signed-off-by: revolyssup <[email protected]>
|
@leslie-tsang @monkeyDluffy6017 Please review and make suggestions. |
Co-authored-by: leslie <[email protected]>
| local stream = "stream" | ||
| if yaml_conf.apisix.proxy_mode then | ||
| -- check for "http" as prefix | ||
| if string.sub(yaml_conf.apisix.proxy_mode,1,#http) ~= http then |
There was a problem hiding this comment.
Literally compare with "http", "stream" and "http&stream" here.
| proxy_mode = { | ||
| type = "string", | ||
| enum = {"http", "stream", "http&stream"}, | ||
| }, |
Signed-off-by: revolyssup <[email protected]>
…o revolyssup/fix9600
Signed-off-by: revolyssup <[email protected]>
Signed-off-by: revolyssup <[email protected]>
|
Hi @Revolyssup, test cases are needed |
|
You need to remove the configuration |
Co-authored-by: Liu Wei <[email protected]>
Co-authored-by: Liu Wei <[email protected]>
Signed-off-by: revolyssup <[email protected]>
Signed-off-by: revolyssup <[email protected]>
Signed-off-by: revolyssup <[email protected]>
I have changed all test files to respect |
Co-authored-by: Liu Wei <[email protected]>
|
@monkeyDluffy6017 Please approve CI again. |
|
@Revolyssup I find that many places in our code rely on the |
|
Please search |
|
Please make the ci pass |
Signed-off-by: revolyssup <[email protected]>
done |
Signed-off-by: revolyssup <[email protected]>
|
@Revolyssup Please make the ci pass |
@monkeyDluffy6017 Yeah, I am trying to figure out this is failing Details |
|
It says |
Signed-off-by: revolyssup <[email protected]>
Signed-off-by: revolyssup <[email protected]>
|
@monkeyDluffy6017 approve CI please |
|
Most tests failed because of unrelated single reason. I think we need to re run the tests. |
Signed-off-by: revolyssup <[email protected]>
Signed-off-by: Ashish Tiwari <[email protected]>
Signed-off-by: Ashish Tiwari <[email protected]>
Signed-off-by: Ashish Tiwari <[email protected]>
|
@leslie-tsang pls take a review . |
Description
Fixes #9600
This PR refactors the logic as explained in the issue above.
Checklist