Skip to content

Commit 60a6fd6

Browse files
committed
MINOR: skip default service check if absent
1 parent 754eeb7 commit 60a6fd6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

controller/global.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ func (c *HAProxyController) handleDefaultService() (reload bool) {
147147
if err != nil {
148148
logger.Errorf("default service: %s", err)
149149
}
150+
if name == "" {
151+
return
152+
}
150153
ingressPath := &store.IngressPath{
151154
SvcNamespace: ns,
152155
SvcName: name,

0 commit comments

Comments
 (0)