-
Notifications
You must be signed in to change notification settings - Fork 97
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
Remove zone size for invalid backend ref #1931
Remove zone size for invalid backend ref #1931
Conversation
I went with @pleshakov 's suggestion:
Am I missing anything else? |
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.
@bjee19 In the PR description you mentioned that you changed a unit test but I don't see any test changes....
Oops, by changing the constant |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1931 +/- ##
==========================================
- Coverage 86.72% 86.71% -0.01%
==========================================
Files 88 88
Lines 5972 5971 -1
Branches 50 50
==========================================
- Hits 5179 5178 -1
Misses 741 741
Partials 52 52 ☔ View full report in Codecov by Sentry. |
18d635a
to
c80c559
Compare
c80c559
to
80f1b06
Compare
Proposed changes
Remove zone size for invalid backend ref.
Problem: The invalid-backend-ref size of 32k is too small for some environments causing an inability of the gateway to program.
Solution: Do not specify zone size for
invalid-backend-ref
so that NGINX does not share upstream state across backends. This is ok for this specific upstream because we will only ever proxy to one backend.Testing: Adjusted unit test to match. Deployed NGF with HTTPRoutes and verified it correctly still generates zone sizes for normal upstreams, an upstream missing its endpoint (service is present but no deployment/pod), and
invalid-backend-ref
:Note: This PR does not test if the fix would work in the bug-submitter's environment. Recreating the exact test environment is probably not worth the effort.
Closes #1794
Checklist
Before creating a PR, run through this checklist and mark each as complete.
Release notes
If this PR introduces a change that affects users and needs to be mentioned in the release notes,
please add a brief note that summarizes the change.