-
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
Add portNamePreffix Helm chart parameter #8458
Conversation
@pauljamm: 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/test-infra repository. |
Welcome @pauljamm! |
Hi @pauljamm. 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/test-infra repository. |
da403d1
to
8f4f546
Compare
Hi @pauljamm , Although this PR is targeted for Yandex Cloud users, do you know if the same functionality will work for non-Yandex provider clusters ? |
@pauljamm, sorry for asking but which file & line number is mapping a "string" name to a tcp/port number, in this change. |
Hi @longwuyuan, This PR just adds ability to specify preffix for loadbalancer service ports names. So it does not contain any changes that should be "supported" by other clouds or Kubernetes clusters. But anyway it's just a manipulation with a port name, which is supported by Kubernetes by itself. |
The origin of a port naming in the ingress Helm chart was
and set it as port number in service and add port name in the form
My patch adds additional preffix (if specified by user) to all tcp or udp port names, not changing the original logic of port-name mapping. the first line adds a port name in the form
|
d4edac0
to
25e5224
Compare
@pauljamm , I think its looking good, but please comment if you will write a test. Just to deploy on a |
@longwuyuan, I defenetly will, but could you provide some examples (or may be guide) of such tests for this repo? |
@longwuyuan if you mean this kind of tests, it's already being tested under the similar conditions here. It's just another string preffix for service port name. |
|
/ok-to-test |
/approve @longwuyuan feel free to lgtm as soon as this is fixed! Thank you all :) |
Yeah, we should make progress but if there is no test that shows a TCP/UDP port getting named and then used in a working functional K8S object related to ingress-nginx-controller, then I prefer to hold until the test is available. |
@pauljamm , hope you are doing great. |
25e5224
to
804b876
Compare
@longwuyuan sorry for not answering for a long time.
Just to be clear, this is the name of a port. See above - this is a port object ingress-nginx/test/e2e/tcpudp/tcp.go Line 113 in 1a8c70d
And this is the name of a service ingress-nginx/test/e2e/tcpudp/tcp.go Line 107 in 1a8c70d
|
@longwuyuan sorry, but it's not clear for me, why should we create duplicated tests, which besides just tests built in basic Kubernetes functionality. |
/lgtm |
/assign @rikatz @ChiefAlexander @cpanato |
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
lgtm but can you bump the chart version?
804b876
to
1178e8d
Compare
Allow user to set custom preffix for TCP and UDP ports
1178e8d
to
7b91cc4
Compare
@cpanato |
/lgtm |
Thanks |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: longwuyuan, pauljamm, rikatz 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 |
Allow user to set custom preffix for TCP and UDP ports
Allow user to set custom preffix for TCP and UDP ports
What this PR does / why we need it:
Allow users to add custom preffix in Helm chart for TCP and UDP ports.
This is required as some clouds (e.g. Yandex Cloud) doesn't allow ports with names started with numbers.
E.g. for Yandex Cloud apllicable names are /[a-z][-a-z0-9]{1,61}[a-z0-9]/
This issue was mensioned here #6416
And there were a couple of tries to fix it with a head-on solution:
#7515
#7276
Types of changes
Which issue/s this PR fixes
fixes #6416
How Has This Been Tested?
Made sure the load balancer is provisioned successfully after installing the patched chart.
Tested on Yandex Managed Service for Kubernetes.
Also was added test Helm values, and ran e2e Helm tests.
Checklist: