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: enforce connection limit value #4458

Merged
merged 6 commits into from
Oct 22, 2024
Merged

Conversation

guydc
Copy link
Contributor

@guydc guydc commented Oct 16, 2024

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #4457

@guydc guydc requested a review from a team as a code owner October 16, 2024 16:03
Copy link

codecov bot commented Oct 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.01%. Comparing base (04fc944) to head (29d433c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4458      +/-   ##
==========================================
+ Coverage   65.97%   66.01%   +0.04%     
==========================================
  Files         203      203              
  Lines       31154    31154              
==========================================
+ Hits        20554    20567      +13     
+ Misses       9415     9404      -11     
+ Partials     1185     1183       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

//
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Minimum=1
Value int64 `json:"value,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you also rm omitempty

@@ -63,13 +63,13 @@ type BackendConnection struct {
SocketBufferLimit *resource.Quantity `json:"socketBufferLimit,omitempty"`
}

// +kubebuilder:validation:XValidation:rule="(has(self.value))",message="value must be specified"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: not needed since Value is now mandatory

arkodg
arkodg previously approved these changes Oct 21, 2024
guydc added 4 commits October 21, 2024 12:34
Signed-off-by: Guy Daich <[email protected]>
Signed-off-by: Guy Daich <[email protected]>
Signed-off-by: Guy Daich <[email protected]>
Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks !

@arkodg arkodg requested review from a team October 21, 2024 23:24
@guydc guydc merged commit 31ff8ff into envoyproxy:main Oct 22, 2024
27 checks passed
@guydc guydc added this to the v1.2.0 milestone Oct 22, 2024
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.

Empty Connection Limit causes XDS rejection
3 participants