-
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
Disable user snippets per default #10393
Disable user snippets per default #10393
Conversation
✅ Deploy Preview for kubernetes-ingress-nginx canceled.
|
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. |
lint error |
yup, there's something weird with the env preparation actually. I can run it locally, probably something on the action.Will check later |
915b45e
to
0126813
Compare
0126813
to
ff5beef
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
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rikatz, tao12345666333 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 |
@rikatz since this is marked as a breaking change, and your docs mention that ingress-nginx follows semver, shouldn't this have been released as a new major version? Or am I misunderstanding the release process of ingress-nginx? |
Something broke in our ingress as well related to snippets. I assume this is the reason. Will try adding |
Ran into same issue when using charts which create NGINX ingress for you with server snippet inside (for example, Argo CD chart). @perosb, adding Would have been nice if this workaround was documented in the release notes. |
I've missed the docs, sorry @iamdmitrij do you mind opening a PR for it and tagging me and @longwuyuan ? Maybe also add on the description of snippet annotations that they need to be enabled by ingress-admin. Thanks |
We've talked about this change for several releases and in the community meetings multiple times. It is documented what it does in the docs https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#allow-snippet-annotations and it's highlighted in the release notes and we also did a beta release for folks to test it. |
The docs note the default would change in the next major release. It was not a major release. I'm just asking for clarification on that, as it seems to go against your protocol which states you use semver. |
@rouke-broersma I'm assuming they use the term "semver" loosely the same way as Kubernetes does, where minor versions are used as major versions and the project remains in v1 indefinitely. Only the helm chart version seems to adhere to strict semver. |
The Helm chart also did not receive a major version bump. |
Probably because releasing v1.9.0 of the controller did not require a breaking change in the chart |
We apologize to folks who missed the release notes and other notifications about this change, we strive to make these change known as soon as possible. No need for philosophical debate about whether a config change is major minor or even a patch change. We gave what we believed to be ample warning about this change. We invite you to the community meetings to discuss future changes with us. We are also discussing v2.0.0 which will have architecture changes in it as well. |
We can discuss if default config changes should reflect a minor change like we did in 1.9.0 in our next community meeting. I'll make sure to put it on the agenda. |
They changed the default value in the chart, that is a breaking change any way you look at it. They may have forgotten sure but there's no rational reason for it not to be a major version bump. In any case I noticed it myself before upgrading anyway so that's not the issue. I just want clarification from the release team on if it was a mistake or if we need to be extra mindful of these kinds of changes in any new release instead of depending on semver to inform our decisions, that's all. |
I can confirm that: ---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: nginx-ingress
spec:
values:
controller:
allowSnippetAnnotations: true # <- resolves the issue. |
This broke our environment as well. I even went through the changelog before upgrading the controller but I didn't pay enough attention to EDIT: I see this was actually highlighted on the releases page. I looked at the changelogs in the
|
@indrekj we had the same problem - I also missed the "testing section", because these things are usually tagged with a BREAKING note in the release notes 😞 |
Placing it in a duplicate "Changelog" section with a regular font weight isn't considered "highlighting". Should've placed it in a "Breaking Changes" section at the top. Changes like this are undoubtedly considered breaking. |
I would also suggest a much stronger wording in the documentation: I would expect something like
Instead of a vague "might be disabled in multi tenant clusters" |
Thank you for the feedback. Feel free to open a PR and/or join the community meeting tomorrow to discuss more. |
What this PR does / why we need it:
Disables user snippets per default
Types of changes
Which issue/s this PR fixes
Part of #10186
How Has This Been Tested?