Skip to content

Commit 9bbfc19

Browse files
hdurand0710oktalz
authored andcommitted
MINOR: change behaviour for default backend for TCP service annotation in ConfigMap
Warning: this changes the default backend configuration for a TCP Service defined with an annotation in ConfigMap. Previsouly, any backend options defined in the ConfigMap (such as for example 'maxconn' or 'server-slots') did not apply to TCP backends. This is changed now, and this applies to TCP backends too defined with an annotation in ConfiMap
1 parent 3eb4d1e commit 9bbfc19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/handler/tcp-services.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func (handler TCPServices) updateTCPFrontend(k store.K8s, h haproxy.HAProxy, fro
218218
SvcPortInt: p.port,
219219
IsDefaultBackend: true,
220220
}
221-
if svc, err = service.New(k, path, nil, true, nil); err == nil {
221+
if svc, err = service.New(k, path, nil, true, nil, k.ConfigMaps.Main.Annotations); err == nil {
222222
err = svc.SetDefaultBackend(k, h, []string{frontend.Name}, a)
223223
}
224224
return err

0 commit comments

Comments
 (0)