We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8097840 commit bc7f69dCopy full SHA for bc7f69d
internal/k8s/controller.go
@@ -1396,7 +1396,13 @@ func findVirtualServersForVirtualServerRouteKey(virtualServers []*conf_v1.Virtua
1396
1397
for _, vs := range virtualServers {
1398
for _, r := range vs.Spec.Routes {
1399
- if r.Route == key {
+ // if route is defined without a namespace, use the namespace of VirtualServer.
1400
+ vsrKey := r.Route
1401
+ if !strings.Contains(r.Route, "/") {
1402
+ vsrKey = fmt.Sprintf("%s/%s", vs.Namespace, r.Route)
1403
+ }
1404
+
1405
+ if vsrKey == key {
1406
result = append(result, vs)
1407
break
1408
}
0 commit comments