Skip to content
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

fix: always parse domain when host is domain name #9332

Merged
merged 9 commits into from
May 6, 2023

Conversation

okaybase
Copy link
Member

@okaybase okaybase commented Apr 18, 2023

Description

Plugin: traffic-split

Use a service-name as the host of weighted_upstreams's nodes, when redeploying the service (the pods ip changes), will result in the request 502.

image

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@leslie-tsang
Copy link
Member

Hello there, need a test case to make sure it was fixed.

@okaybase
Copy link
Member Author

Hello there, need a test case to make sure it was fixed.

okay, i write the test case later, thanks ~

@okaybase okaybase changed the title fix: parse domain when the service's pod ip changes fix: always parse domain when host is domain name Apr 23, 2023
@monkeyDluffy6017
Copy link
Contributor

@okaybase please make the ci pass

@monkeyDluffy6017
Copy link
Contributor

Try to merge the master branch

@okaybase
Copy link
Member Author

okaybase commented May 4, 2023

Try to merge the master branch

merged~

@okaybase
Copy link
Member Author

okaybase commented May 4, 2023

@okaybase please make the ci pass

okay, done~

@monkeyDluffy6017 monkeyDluffy6017 merged commit 6b66fb5 into apache:master May 6, 2023
@okaybase okaybase deleted the u-traffic-split branch May 6, 2023 01:26
hongbinhsu added a commit to fitphp/apix that referenced this pull request May 13, 2023
* upstream/master: (42 commits)
  fix: add `rust-check` target to the makefile for deps pre-checking (apache#9453)
  test: remove duplicate `proto` unit test file and tweak test case title (apache#9445)
  feat: proxy-mirror add grpc and grpcs support (apache#9388)
  test: replace all httpbin upstream (apache#9452)
  fix: 404 error in ci test (apache#9447)
  fix: body-transformer plugin return raw body anytime (apache#9446)
  fix(ci): fips: ensure apisix compiles with openssl3 (apache#9427)
  chore(deps): bump actions/stale from 7 to 8 (apache#9159)
  chore(deps): bump actions/setup-node from 3.5.1 to 3.6.0 (apache#8625)
  chore(test): split the access log of apisix and test server (apache#8819)
  docs: fix grammar (apache#9395)
  fix(wolf-rbac): other plugin in consumer not effective when consumer used wolf-rbac plugin (apache#9287) (apache#9298)
  docs: use shell instead of Python to configure protos resources (apache#9414)
  docs: add guide to authenticate websocket connections (apache#9369)
  docs: updated Stream Proxy doc (apache#9367)
  feat: proxy_rewrite support miltiple regex pattern matching (apache#9194)
  feat: route-level MTLS (apache#9322)
  ci: tcp logger with real logger server (apache#9392)
  fix: always parse domain when host is domain name (apache#9332)
  docs: CHANGELOG.md Chinese docs lint (apache#9411)
  ...
AlinsRan pushed a commit to AlinsRan/apisix that referenced this pull request Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants