-
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
add rate limit whitelist #1210
add rate limit whitelist #1210
Conversation
@@ -55,6 +59,10 @@ type RateLimit struct { | |||
LimitRate int `json:"limit-rate"` | |||
|
|||
LimitRateAfter int `json:"limit-rate-after"` | |||
|
|||
Name string |
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 add the json tag
@aledbf done. Any thoughts on https://github.com/kubernetes/ingress/pull/1210/files#diff-2e6661544fdede38b5f2d11d5e28f1b8R343 I couldn't use the ingress namespace/name because |
Here is the generated nginx.conf
|
/lgtm |
@sethpollack this looks great. Thanks! |
To keep this simple I think we can add a random prefix. |
Do you think it makes more sense to do the encoding in |
No because if we are runnning with --v=3 we dump the configuration json and if we encode the name we don't know the real name. |
No description provided.