Skip to content

Commit ca81cd0

Browse files
author
Ravi Sankar Penta
committed
Fix router FilterNamespaces()
Colon instead of underscore is used to uniquely identify ServiceAliasConfig(route for a service).
1 parent 924f525 commit ca81cd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/router/template/router.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ func (r *templateRouter) FilterNamespaces(namespaces sets.String) {
460460
}
461461

462462
for k := range r.state {
463-
ns := strings.SplitN(k, "_", 2)[0]
463+
ns := strings.SplitN(k, ":", 2)[0]
464464
if namespaces.Has(ns) {
465465
continue
466466
}

0 commit comments

Comments
 (0)