-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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 non tls ingress still able to listen on a https port #10685
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for kubernetes-ingress-nginx canceled.
|
Welcome @izanami-01! |
Hi @izanami-01. 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: izanami-01 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 |
c94b907
to
f926414
Compare
Something is off with golangci-lint and the k8s e2e don't even start, can you rebase and try the test locally and then push that change. Can you also check that there is an e2e test for this case. /triage accepted |
f926414
to
ba8d39d
Compare
ba8d39d
to
c5cadcc
Compare
9e4456f
to
e0ee1c1
Compare
Hi @rikatz @strongjz could you provide suggestion on the below scenario: I tried updating
|
8d414b2
to
c525936
Compare
What this PR does / why we need it:
In the ingress resource if tls section is not defined, then the current behaviour of the controller is to expose even the https port for that ingress path. This is not correct.
When we create an ingress resource without tls section, below is the
kubectl get ingress
output. As we can see only port 80 is defined indicating only http. However ingress-nginx controller exposes the https portThis is not the expected behaviour.
This PR fixes this bug by not rendering the https port when ingress resource is not having the tls section.
Types of changes
Which issue/s this PR fixes
How Has This Been Tested?
With fix:
This changes fixes the above issue.
nginx.conf when ingress resource consists of tls section
nginx.conf when ingress resource doesn't consists of tls section
Checklist: