Skip to content

Commit b536263

Browse files
ivanmatmatioktalz
authored andcommitted
BUG: provide certificates handler for default local service
1 parent 14772b4 commit b536263

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/controller/global.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func (c *HAProxyController) handleDefaultService() {
168168
SvcName: name,
169169
IsDefaultBackend: true,
170170
}
171-
if svc, err = service.New(c.store, ingressPath, nil, false, nil, c.store.ConfigMaps.Main.Annotations); err == nil {
171+
if svc, err = service.New(c.store, ingressPath, c.haproxy.Certificates, false, nil, c.store.ConfigMaps.Main.Annotations); err == nil {
172172
err = svc.SetDefaultBackend(c.store, c.haproxy, []string{c.haproxy.FrontHTTP, c.haproxy.FrontHTTPS}, c.annotations)
173173
}
174174
if err != nil {
@@ -238,7 +238,7 @@ func (c *HAProxyController) handleDefaultLocalService() {
238238
IsDefaultBackend: true,
239239
}
240240

241-
if svc, err = service.New(c.store, ingressPath, nil, false, nil, c.store.ConfigMaps.Main.Annotations); err == nil {
241+
if svc, err = service.New(c.store, ingressPath, c.haproxy.Certificates, false, nil, c.store.ConfigMaps.Main.Annotations); err == nil {
242242
err = svc.SetDefaultBackend(c.store, c.haproxy, []string{c.haproxy.FrontHTTP, c.haproxy.FrontHTTPS}, c.annotations)
243243
}
244244
if err != nil {

0 commit comments

Comments
 (0)