-
Notifications
You must be signed in to change notification settings - Fork 482
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
Ensure listener name must be unique within a Gateway #1854
Ensure listener name must be unique within a Gateway #1854
Conversation
|
Welcome @muyuan0! |
Hi @muyuan0. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
||
// ValidateListenerNames validates the names of the listeners | ||
// must be unique within the Gateway | ||
func ValidateListenerNames(listeners []gatewayv1b1.Listener, path *field.Path) field.ErrorList { |
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.
This func should be called by validateGatewayListeners()
to be included in the admission webhook.
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.
Added in the validateGatewayListeners
above
Yeah.
…On Mon, Mar 20, 2023 at 19:17 Shane Utt ***@***.***> wrote:
I think we should sort out some of the discussions in the following
related issues prior to merging this change
#1842 <#1842> #1713
<#1713>
So just to be clear you're asking that this PR be put on *hold* until
both #1842 <#1842>
and #1713 <#1713>
are resolved?
—
Reply to this email directly, view it on GitHub
<#1854 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAERAQE4S7ZFEMQM7ENZRDW5DQR5ANCNFSM6AAAAAAWA2NVYQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I'm not feeling very compelled to block here, it seems unique listener name checking is something we would want in any case, no? |
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 @muyuan0 !
@dprotaso I'm not sure I see the connection between this and the issues you linked, can you help clarify why they should block this? |
Yeah #1842 doesn't apply to For #1713 I wondered if we're merging Gateways would we allow listeners on different Gateways to merge with the same |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: arkodg, hzxuzhonghu, muyuan0, shaneutt The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@muyuan0 just need to change your commit message as per #1854 (comment) and then we're all set 👍 |
@shaneutt |
Yes that's fine! Thank you! Re-request my review when you're done 👍 |
Thanks @muyuan0! This LGTM as well once the commit message is fixed. |
Signed-off-by: muyuan0 <[email protected]>
45af2e0
to
7401c20
Compare
Thanks @muyuan0! /lgtm |
Signed-off-by: muyuan0 [email protected]
What type of PR is this?
/kind bug
What this PR does / why we need it:
Check if the listener names are unique within a Gateway
Which issue(s) this PR fixes:
Fixes #1845
Does this PR introduce a user-facing change?: