-
Notifications
You must be signed in to change notification settings - Fork 8.5k
feat(annotations): introduce enable-custom-http-errors annotation #8385
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
base: main
Are you sure you want to change the base?
Conversation
|
Hi @aslafy-z. 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. |
|
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
|
/remove-lifecycle stale |
|
@aslafy-z tht annotation is named aptly and does what it is names as. If you are looking for a new feature to handle a case where no existing ingress rule matches a incoming http request and as a result instead of the default-backend of the project handling the response, you want your own behaviour, then I think the documented procedure is to create your own image and use that to create a backend to be configured as a default-backend. Changing an existing annotation that is sort of not named after your desired behaviour does not seem like an improvement. There are several such changes made earlier that has led to unmaintained and unsupportable features and the project is now in a 6 month phase to clean up and stabilize the code. This is my opinion so lets wait for other comments. But I vote for not doing this change you are proposing. I hope the project steers away from such changes that only one user benefits from and that is not deeply thought over and elaborated. But I am not a developer so I could be wrong so lets hope there is enough info posted here about a deep dive analysis on how the change you propose is a improvement for a large number of users. |
92a369f to
134cf3c
Compare
|
Just to clarify, the problem is the following:
Happy to provide examples of such applications. 👉 Currently, there is no easy way to disable I don't know if the PR addresses the problem in the best way, there are many different ways to achieve this like with another annotation |
|
@Diaoul it seems like the fair & reasonable choice when you state the alternative of a new annotation. Precisely aiming at enabling/disabling custom-http-error-codes in one annotation and actually setting the error codes using the currently existing annotation sounds appropriate. |
644752f to
bfe0e1c
Compare
|
@aslafy-z I see that you changed this to be a new dedicated annotation. thanks. Can you please rebase and try to run the related e2e test with env var FOCUS locally https://kubernetes.github.io/ingress-nginx/developer-guide/getting-started/ |
|
You can also try |
|
@longwuyuan I fixed tests |
|
any news here? We have a similar issue |
|
@aslafy-z can you rebase to get the latest changes and squash the commits into 1. /ok-to-test |
Signed-off-by: GitHub <noreply@github.com>
|
@strongjz Commits have been squashed, the branch has been rebased, and tests are passing! 🚀 |
|
/uncc |
|
/uncc |
What this PR does / why we need it:
Allows setting an empty value to the custom-http-errors in order to disable them altogether.
Types of changes
Which issue/s this PR fixes
fixes #8384
fixes #10066
How Has This Been Tested?
Checklist: