Skip to content

Commit b2586a8

Browse files
ivanmatmatiMo3m3n
authored andcommitted
MINOR: skip default service check if absent
1 parent 80ef3f7 commit b2586a8

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)