-
Notifications
You must be signed in to change notification settings - Fork 2k
Move proxy values balancing to the beginning of parsing #8133
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
Merged
Merged
Changes from 53 commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
07b9230
add helper function to enable proxy_buffers if proxy_buffer_size is e…
AlexFenlon 820d620
add a safe way to enable proxy_buffers and proxy_buffer_size
AlexFenlon e9f0274
add `nginx.org/proxy-busy-buffers-size` annotation to ingress
AlexFenlon f32d163
add `proxy-busy-buffer-size` to configmap, improve validation
AlexFenlon 1573082
rename ProxyBusyBufferSize to ProxyBusyBuffersSize to be more accurate
AlexFenlon b46e413
Add ProxyBusyBuffersSize to VirtualServer as `busy-buffers-size`
AlexFenlon ded1e22
make validation better
AlexFenlon dc78b16
make validation better
AlexFenlon be0fa51
Update tests
AlexFenlon 14e6a4d
Update tests, improve validation
AlexFenlon a7bcc2e
fix validation
AlexFenlon 5372bb8
Put back the proxy max temp filesize data
javorszky c67ff54
Create a new typed unit to store sizes and offsets
javorszky 57afcfb
Move new units to internal configs
javorszky ce03f44
Move data types to their own file
javorszky 14491db
Move proxy units into common package
javorszky 0add8ec
Adjust templates to make them pass
javorszky a4148e4
Normalise parsing of bad / unknown to mb
javorszky af72ed6
Return emptystring if numbersize is zero
javorszky f40a39d
Create BalanceProxy function and tests
javorszky 235e2b4
Reconcile the proxy values after parsing them
javorszky 3ec9d63
Fix logic in clamping behaviour
javorszky 73f5b4b
Fix tests, make another test parallel
javorszky 1333ddd
Account for proxies not being present if invalid
javorszky 16e7750
Simplify tests for data types
javorszky c9b3445
Fix tests
javorszky d271802
Fix more tests
javorszky 9baff51
Add proxy balancing to virtualservers
javorszky 6f026c7
Add validation to validateUpstreams
javorszky 96a4067
Add autoadjust flag and propagate it
javorszky 2000d52
fix nil pointer
AlexFenlon 7031835
Add upper bound check between int and uint64
javorszky 63c37c9
fix helm flag
AlexFenlon 59f501b
Default proxy buffer number is 8, not 2
javorszky 755ee45
Adjust spacing for proxy directives in templates
javorszky 7949c38
add helm validation for flag and fix unsigned int
AlexFenlon c1ad046
Merge branch 'main' into feat/fixed-safe-buffer-config
AlexFenlon fe71f34
fix unsigned int
AlexFenlon ca97952
Merge remote-tracking branch 'origin/feat/fixed-safe-buffer-config' i…
AlexFenlon fc00fd3
Merge branch 'main' into feat/fixed-safe-buffer-config
AlexFenlon f63c4d2
fix vs not working
AlexFenlon 958b8f4
fix vs placement?
AlexFenlon 2aa6acc
Fix VS autoadjust
AlexFenlon 415fb74
Fix ingress autoadjust
AlexFenlon 2199db2
Merge remote-tracking branch 'origin/main' into feat/fixed-safe-buffe…
AlexFenlon 13f1e0a
Fix lint
AlexFenlon ac26551
Merge branch 'main' into feat/fixed-safe-buffer-config
AlexFenlon 39e1a89
add missing validation for annotation
AlexFenlon 19fcb6d
Expand comment on why we need that method
javorszky 6c8f88c
We don't need proxy busy buffer size annotations
javorszky 06b957b
Merge branch 'main' into feat/fixed-safe-buffer-config
AlexFenlon 2e8da11
Apply suggestions from code review
AlexFenlon c516385
Update internal/validation/data_types.go
AlexFenlon 6075682
address comments on pr
AlexFenlon 248fae7
Update cmd/nginx-ingress/flags.go
AlexFenlon 0305674
move isDirectiveAutoadjustEnabled from Configurator to StaticConfigPa…
AlexFenlon 3b7bab0
fix ingress annotation not being enabled
AlexFenlon b7a9875
Merge branch 'main' into feat/fixed-safe-buffer-config
AlexFenlon 3167c1b
Merge branch 'main' into feat/fixed-safe-buffer-config
javorszky 349c087
Merge branch 'main' into feat/fixed-safe-buffer-config
javorszky f00c78d
Merge branch 'main' into feat/fixed-safe-buffer-config
javorszky 1800e6d
Rename constants for consistency
javorszky 7f9712d
Clamp the number of buffers to the correct place
javorszky dc6907d
Do not clamp without flag
javorszky a93e96e
add more test cases
AlexFenlon cf9083a
Update internal/configs/parsing_helpers_test.go
AlexFenlon d863c20
fix tests
AlexFenlon 7fd146e
Merge branch 'main' into feat/fixed-safe-buffer-config
AlexFenlon a35cf61
Merge branch 'main' into feat/fixed-safe-buffer-config
AlexFenlon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AlexFenlon marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.