-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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: upstreamName(ns, backend) outputs same name for different backends #11942
base: main
Are you sure you want to change the base?
fix: upstreamName(ns, backend) outputs same name for different backends #11942
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Revolution1 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 |
This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The 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-sigs/prow repository. |
Hi @Revolution1. Thanks for your PR. I'm waiting for a kubernetes 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-sigs/prow repository. |
✅ Deploy Preview for kubernetes-ingress-nginx canceled.
|
is not really true in the practical use-case context
|
@Revolution1 It seems that your claim of a bug is based on a manifest, in which the same port number 80 is given 2 names. Once the name is
|
Its not an improvement to change to using underscores, but wait for comments from others on that. |
/hold |
@Gacko Hi there. All existing unit and e2e tests passed. Does this change need a new unit or e2e test? If so, for this case, I'm not sure how to write one. Is there any guide or something. |
@Revolution1 your statement below
is false. I have copy/pasted the test details here and in the related issue, that clearly shows that the function
You have defined 2 names for the same portNumber in your test like this
but you are not explaining why |
I'm holding this as I agree with Long. I didn't have the time to dig into the root cause, but what I read while scrolling through leaves the impression we first need more evidence before we can actually implement any changes. Would you therefore please, if possible, stick to the issue and not discuss this in the PR? |
@Gacko However, I'm struggling to explain to Long when he edited my case and claimed he couldn't reproduce the issue. And it's frustrating because the definition of a "bug" seems to be a matter of basic common sense. If you don’t have time, I understand—I’m short on time too. I've been patient enough with these unproductive conversations. @longwuyuan do not reply to me anymore please. If Long was the only one I can explain this Bug to. |
As I'm being emotional in the last comment, I just want to clarify that, I'm not rasing a PR in order to argue with anyone. I've benifit from this project, and I want to make it better. But I'm so tired of dealing with these conversations. This is not the first time I open a PR to this project, but probably the last time. |
This is stale, but we won't close it automatically, just bare in mind the maintainers may be busy with other tasks and will reach your issue ASAP. If you have any question or request to prioritize this, please reach |
The This bot removes
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /remove-lifecycle frozen |
What this PR does / why we need it:
The original upstreamName function can outputs the same name for different ingress backends.
While the names in k8s must follow RFC1123, which means they cannot have underscore character(
_
)So my fix use underscore to join the names to avoid conflicts.
Types of changes
Which issue/s this PR fixes
fixes #11938 #11937
How Has This Been Tested?
I built a image myself and tested in my local kind using the manifests from #11938
This function does not have unit test before, I'm still thinking how to make one.
Checklist: