Fix ClientBodyBufferSize annotation
@@ -633,9 +633,6 @@ func (ic *GenericController) getBackendServers() ([]*ingress.Backend, []*ingress
anns := ic.annotations.Extract(ing)
- // setup client-buffer-body-size based on annotations
- clientBufferBodySizeAnnotation := ic.annotations.ClientBodyBufferSize(ing)
-
for _, rule := range ing.Spec.Rules {
host := rule.Host
if host == "" {
@@ -697,7 +694,6 @@ func (ic *GenericController) getBackendServers() ([]*ingress.Backend, []*ingress
}
break
}
- loc.ClientBodyBufferSize = clientBufferBodySizeAnnotation
}
// is a new location
if addLoc {
@@ -708,7 +704,6 @@ func (ic *GenericController) getBackendServers() ([]*ingress.Backend, []*ingress
IsDefBackend: false,
Service: ups.Service,
Port: ups.Port,
- ClientBodyBufferSize: clientBufferBodySizeAnnotation,
}
mergeLocationAnnotations(loc, anns)
if loc.Redirect.FromToWWW {
@@ -1074,9 +1069,6 @@ func (ic *GenericController) createServers(data []interface{},
}
}
- // setup client-buffer-body-size based on annotations
- clientBufferBodySizeAnnotation := ic.annotations.ClientBodyBufferSize(ing)
-
for _, rule := range ing.Spec.Rules {
host := rule.Host
if host == "" {
@@ -1096,7 +1088,6 @@ func (ic *GenericController) createServers(data []interface{},
Backend: un,
Proxy: ngxProxy,
Service: &api.Service{},
- ClientBodyBufferSize: clientBufferBodySizeAnnotation,
},
}, SSLPassthrough: sslpt}
}
