-
Notifications
You must be signed in to change notification settings - Fork 14.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
Document annotation nginx.ingress.kubernetes.io/configuration-snippet #43950
Document annotation nginx.ingress.kubernetes.io/configuration-snippet #43950
Conversation
/language en |
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
/retitle Document annotation nginx.ingress.kubernetes.io/configuration-snippet |
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.
Thank you.
I don't think this PR fixes #43698
Please edit the PR description if you agree.
Documenting the one annotation that the issue lists as an example is helpful, but falls short of doing all the work required. To fix that, change the description of this PR.
Example: `nginx.ingress.kubernetes.io/configuration-snippet: | | ||
more_set_headers "Request-Id: $req_id";` |
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.
Please avoid a multiline example here. I think this would be OK even if it's hard to read as it gives readers the sense that the annotation value is complex.
Example: `nginx.ingress.kubernetes.io/configuration-snippet: | | |
more_set_headers "Request-Id: $req_id";` | |
Example: `nginx.ingress.kubernetes.io/configuration-snippet: " more_set_headers \"Request-Id: $req_id\";\nmore_set_headers \"Example: 42\";\n"` |
Used on: Ingress | ||
|
||
With use of this annotation someone can add additional configuration to the | ||
Nginx location as mentioned in example above. `configuration-snippet` annotation is disabled |
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.
I'd signpost readers to read the ingress controller's docs for the full details and an example.
@kundan2707 Hi there – do you have the capacity to review the feedback left on this PR? |
@natalisucks i will incorporate feeback and push new changes this week. |
How's this going @kundan2707? |
4b225b4
to
3264c72
Compare
@sftim sorry for delay. I incorporated review comments today. |
Hey @kundan2707 , please sign the commits appropriately. The PR has been labelled with the |
/easycla |
@divya-mohan0209 cncf-cla : no label removed now. |
3264c72
to
ae15282
Compare
@stmcginnis incorporated review comments. |
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
More feedback, if you'd like it.
With use of this annotation someone can add additional | ||
configuration to the | ||
Nginx location as mentioned in example above. |
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.
With use of this annotation someone can add additional | |
configuration to the | |
Nginx location as mentioned in example above. | |
You can use this annotation to set extra configuration on an Ingress that | |
uses the [NGINX Ingress controller](https://github.com/kubernetes/ingress-nginx/). |
With use of this annotation someone can add additional | ||
configuration to the | ||
Nginx location as mentioned in example above. | ||
`configuration-snippet` annotation is disabled |
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.
`configuration-snippet` annotation is disabled | |
The `configuration-snippet` annotation is ignored |
by default since version 1.9.0. `allow-snippet-annotations.` | ||
has to be explicitly enabled to | ||
use this annotation. | ||
Enabling it can be dangerous in multi-tenant cluster, as it can lead people with otherwise |
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.
Enabling it can be dangerous in multi-tenant cluster, as it can lead people with otherwise | |
Enabling the annotation can be dangerous in a multi-tenant cluster, as it can lead people with otherwise |
has to be explicitly enabled to | ||
use this annotation. | ||
Enabling it can be dangerous in multi-tenant cluster, as it can lead people with otherwise | ||
limited permissions being able to retrieve all secrets in the cluster. |
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.
limited permissions being able to retrieve all secrets in the cluster. | |
limited permissions being able to retrieve all Secrets in the cluster. |
configuration to the | ||
Nginx location as mentioned in example above. | ||
`configuration-snippet` annotation is disabled | ||
by default since version 1.9.0. `allow-snippet-annotations.` |
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.
by default since version 1.9.0. `allow-snippet-annotations.` | |
by default since version 1.9.0 of the ingress controller. | |
The NGINX ingress controller setting `allow-snippet-annotations` |
LGTM label has been added. Git tree hash: 92bc97ae721a201a3957e5aac3b2e4567476e2d4
|
Hi @kundan2707, do you have time to address comments on this PR? |
@reylejano sorry for delay i will incorporate all comments by tommrow. |
ae15282
to
93bc0de
Compare
@sftim incorporated your suggesions. |
/lgtm |
LGTM label has been added. Git tree hash: 89166adb96af814cb7aa286ae632cc32ace06232
|
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!
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: divya-mohan0209 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 |
Documented nginx.ingress.kubernetes.io/configuration-snippet ingress-nginx annotation.