fix: use annotation instead of location snippet
This commit is contained in:
@@ -563,13 +563,8 @@ func getIngressAnnotations(appName string, processType string) (map[string]strin
|
|||||||
getter: nginxvhosts.ComputedProxyBufferSize,
|
getter: nginxvhosts.ComputedProxyBufferSize,
|
||||||
},
|
},
|
||||||
"proxy-buffering": {
|
"proxy-buffering": {
|
||||||
getter: nginxvhosts.ComputedProxyBuffering,
|
annotation: "nginx.ingress.kubernetes.io/proxy-buffering",
|
||||||
locationSnippet: func(value string) string {
|
getter: nginxvhosts.ComputedProxyBuffering,
|
||||||
if value == "" {
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
return fmt.Sprintf("proxy_buffering %s;", value)
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
"proxy-buffers": {
|
"proxy-buffers": {
|
||||||
annotation: "nginx.ingress.kubernetes.io/proxy-buffers-number",
|
annotation: "nginx.ingress.kubernetes.io/proxy-buffers-number",
|
||||||
|
|||||||
Reference in New Issue
Block a user