-
Notifications
You must be signed in to change notification settings - Fork 553
ListenerSet adjust PortNumber kubebuilder validations #3750
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
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dprotaso 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 |
f0f9284
to
2797f27
Compare
bump |
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.
Thanks for this PR, @dprotaso! Can we add some validation tests in https://github.com/kubernetes-sigs/gateway-api/blob/main/pkg/test/cel/httproute_standard_test.go, https://github.com/kubernetes-sigs/gateway-api/blob/main/pkg/test/cel/gateway_test.go and add new tests for ListenerSets
?
* formatting * clarify optional port semantics * clarify listener name semantics * clarify attachment/grants semantics - Route attachment without sectionName - re-order policy attachment section - include a section about ReferenceGrants * set proper min/max value for listenerentry.port We had to drop the use of the PortNumber type because of limitations with overriding min max using kubebuilder annotations * Update geps/gep-1713/index.md Co-authored-by: Nick Young <inocuo@gmail.com> * Drop validation markers this is handled in another PR See: #3750 * address Nick's feedback * remove stray backtick * address Rob's feedback * incorporate gep changes into godoc --------- Co-authored-by: Nick Young <inocuo@gmail.com>
bbdc171
to
2314651
Compare
controller-tools only allows this to work on object types and not ref types
2314651
to
ee12cc7
Compare
rebased @mlavacca hey - currently there are no tests - I'm going to do this in a follow up when I add conformance tests etc. |
/assign @youngnick @robscott who wanted me to pull this out of 1.3 |
// | ||
// +optional | ||
// | ||
// +kubebuilder:default=0 |
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.
If the default is now 0, is this not a backward compatible change once it goes to standard? Formerly the port was optional, so there could be widespread omitted-port cases that were already properly handled. Now there could be a completely different way that missing ports are handled. Do we need to worry about that?
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.
If the default is now 0, is this not a backward compatible change once it goes to standard?
I don't think so the ListenerSet is an alpha API so I believe we can make these changes.
Formerly the port was optional
It wasn't actually - maybe that's the confusion here
Uh oh!
There was an error while loading. Please reload this page.