Skip to content

Commit

Permalink
BUG: provide certificates handler for default local service
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmatmati authored and oktalz committed Nov 21, 2024
1 parent 14772b4 commit b536263
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (c *HAProxyController) handleDefaultService() {
SvcName: name,
IsDefaultBackend: true,
}
if svc, err = service.New(c.store, ingressPath, nil, false, nil, c.store.ConfigMaps.Main.Annotations); err == nil {
if svc, err = service.New(c.store, ingressPath, c.haproxy.Certificates, false, nil, c.store.ConfigMaps.Main.Annotations); err == nil {
err = svc.SetDefaultBackend(c.store, c.haproxy, []string{c.haproxy.FrontHTTP, c.haproxy.FrontHTTPS}, c.annotations)
}
if err != nil {
Expand Down Expand Up @@ -238,7 +238,7 @@ func (c *HAProxyController) handleDefaultLocalService() {
IsDefaultBackend: true,
}

if svc, err = service.New(c.store, ingressPath, nil, false, nil, c.store.ConfigMaps.Main.Annotations); err == nil {
if svc, err = service.New(c.store, ingressPath, c.haproxy.Certificates, false, nil, c.store.ConfigMaps.Main.Annotations); err == nil {
err = svc.SetDefaultBackend(c.store, c.haproxy, []string{c.haproxy.FrontHTTP, c.haproxy.FrontHTTPS}, c.annotations)
}
if err != nil {
Expand Down

0 comments on commit b536263

Please sign in to comment.