-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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: issue where canary overwrites default backend #10072
base: main
Are you sure you want to change the base?
Conversation
0bec4f4
to
868943d
Compare
4f0ef5a
to
c4d4afa
Compare
/kind bug |
/triage accepted |
/assign @tao12345666333 |
I am reading the full context of this PR and issue, it will take some time. Thanks |
c4d4afa
to
84d2d02
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Spazzy757 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Possible candidate for 1.9.0 |
@tao12345666333 @Spazzy757 @strongjz any news on this PR? |
@tao12345666333 @Spazzy757 |
I will rebase the PR, but I am waiting on @tao12345666333 or @strongjz to approve this. As I believe the concern is that it's a breaking change |
3615993
to
bb89ea0
Compare
bb89ea0
to
c0ae368
Compare
Thanks 🙏 let me do a review today |
@tao12345666333 Friendly reminder 😊👌 |
I'll try rebase again tomorrow @tao12345666333 @strongjz |
c0ae368
to
68a77ab
Compare
Signed-off-by: Spazzy <[email protected]>
68a77ab
to
64229d2
Compare
f.HTTPTestClient(). | ||
GET("/status/401"). | ||
WithHeader("Host", host). | ||
Expect(). | ||
Status(http.StatusUnauthorized). | ||
Body(). | ||
Contains("401") |
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.
Due to the passage of time, I need to reload some memories.
Can this case cover the actual scenarios in that issue?
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.
Yes, the test case was written specifically to reproduce the issue, before fixing it
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.
Means we are good to go? ;)
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.
I have been trying to find time to verify what would happen with this test case before the Lua part modification.
This is the only issue that I am currently worried about.
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.
@dfl-aeb @Spazzy757 Sorry for the delay, very busy with daily work.
Can you help me verify the result of this test case when there are no modifications to the Lua part? Other than that, I have no other concerns about this PR.
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.
Sorry to bother you again @Spazzy757
Do you think you can find some time in the next few weeks?
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.
I can try do this next week and paste the results, I wrote the test before making changes to the Lua to verify the issue.
I also tested this, manually using the same method I used in #9944
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.
Do you have any updates @Spazzy757 ?
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.
@Spazzy757 @tao12345666333 friendly reminder :)
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.
@Spazzy757 could you please share your test results?
@Spazzy757 @tao12345666333 are we good to go? |
I assume so but not sure when it will be merged |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@Spazzy757 @tao12345666333 @longwuyuan |
It's @Spazzy757's branch. |
@Spazzy757 could you find time to rebase the branch ? |
What this PR does / why we need it:
We have a bug in the case of canary deployments where if the canary deployment returns an error code it will ignore the custom-error codes and custom default backend setup.
This is due to how we overwrite the balancer in the function
route_to_alternative_balancer
as it will take precedence over any balancer that is setNOTE: Majority of the code added here is around E2E testing for this specific scenario. This code will be simplified with the work in #9948
Types of changes
Which issue/s this PR fixes
fixes: #9944
How Has This Been Tested?
Checklist:
/kind bug