-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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 ingressclass for ingress_nginx #10091
Add ingressclass for ingress_nginx #10091
Conversation
Hi @peschmae. 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. |
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.
/cc @oomichi
...ubernetes-apps/ingress_controller/ingress_nginx/templates/ds-ingress-nginx-controller.yml.j2
Show resolved
Hide resolved
401b8e9
to
c412f15
Compare
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
...ubernetes-apps/ingress_controller/ingress_nginx/templates/ds-ingress-nginx-controller.yml.j2
Show resolved
Hide resolved
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 @peschmae
Could you rebase this pull request on the latest master branch? /ok-to-test |
c656579
to
63c3f04
Compare
Rebased & squashed commits |
Thank you for doing that. /lgtm |
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.
/retest
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.
/retest
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.
/retest
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.
/retest
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.
/retest
Hello @peschmae Please squash your commits and rebase if needed. |
68c5994
to
a9b70fa
Compare
Rebased & squashed I think I've also found the issue with the CI pipeline failing, as the failing build is the only one with ingress_nginx enabled. |
roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/ingressclass-nginx.yml.j2
Show resolved
Hide resolved
a9b70fa
to
0ac3897
Compare
/retest |
Try pushing an empty commit. /ok-to-test |
Add option to configure class as the default class Add option to disable wathcing for ingresses without class Remove redundant if that always evaluates to true Fix default value missing for ingress_nginx_default
0ac3897
to
fe80a29
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mzaian, peschmae 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 |
/lgtm |
…-sigs#10091) Add option to configure class as the default class Add option to disable wathcing for ingresses without class Remove redundant if that always evaluates to true Fix default value missing for ingress_nginx_default
What type of PR is this?
/kind feature
What this PR does / why we need it:
Starting with Kubernetes 1.18 the ingress class resources was introduced to replace the widely adapted (but never formalised)
kubernetes.io/ingress.class
annotation.This PR adds the ingressClass for nginx, and adds options to configure it as the default, as well as disabling the
watch-ingress-without-class
attribute for the nginx-controllerWhich issue(s) this PR fixes:
Fixes #9936
Fixes #10014
Special notes for your reviewer:
As the ingress_nginx daemonset isn't configured for multiple ingresses in one deployment, the ingressClass resource is scoped to the cluster (which is the default)
Does this PR introduce a user-facing change?: