fix: use annotation instead of location snippet

This commit is contained in:
Jose Diaz-Gonzalez
2024-02-07 13:15:16 -05:00
parent 41a89bbb5d
commit cd4f9db95b

View File

@@ -563,13 +563,8 @@ func getIngressAnnotations(appName string, processType string) (map[string]strin
getter: nginxvhosts.ComputedProxyBufferSize,
},
"proxy-buffering": {
getter: nginxvhosts.ComputedProxyBuffering,
locationSnippet: func(value string) string {
if value == "" {
return ""
}
return fmt.Sprintf("proxy_buffering %s;", value)
},
annotation: "nginx.ingress.kubernetes.io/proxy-buffering",
getter: nginxvhosts.ComputedProxyBuffering,
},
"proxy-buffers": {
annotation: "nginx.ingress.kubernetes.io/proxy-buffers-number",