From cd4f9db95bd30cb008c6bcbf729d0e85c0b47679 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 7 Feb 2024 13:15:16 -0500 Subject: [PATCH] fix: use annotation instead of location snippet --- plugins/scheduler-k3s/functions.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/plugins/scheduler-k3s/functions.go b/plugins/scheduler-k3s/functions.go index 68b860df0..5571cb19e 100644 --- a/plugins/scheduler-k3s/functions.go +++ b/plugins/scheduler-k3s/functions.go @@ -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",