-
Notifications
You must be signed in to change notification settings - Fork 363
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
api/v1alpha1/connection_types.go
Outdated
// | ||
// +kubebuilder:validation:Minimum=0 | ||
// +kubebuilder:validation:Minimum=1 | ||
Value int64 `json:"value,omitempty"` |
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.
can you also rm omitempty
api/v1alpha1/connection_types.go
Outdated
@@ -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" |
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.
nit: not needed since Value
is now mandatory
Signed-off-by: Guy Daich <[email protected]>
Signed-off-by: Guy Daich <[email protected]>
Signed-off-by: Guy Daich <[email protected]>
Signed-off-by: Guy Daich <[email protected]>
81d5a7f
to
96bc751
Compare
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.
LGTM thanks !
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #4457