Skip to content

Commit 0dd9583

Browse files
committed
chore: add comment about not supporting cross namespace references between KongRoute and KongService
1 parent 3645df3 commit 0dd9583

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

controller/konnect/index_kongroute.go

+3-5
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@ func kongRouteRefersToKongService(object client.Object) []string {
5151
return nil
5252
}
5353

54-
namespace := route.Namespace
55-
if svcRef.NamespacedRef.Namespace != "" {
56-
namespace = svcRef.NamespacedRef.Namespace
57-
}
54+
// NOTE: We currently do not allow cross namespace references between KongRoute and KongService.
55+
// https://github.com/Kong/kubernetes-configuration/issues/106 tracks the implementation.
5856

59-
return []string{namespace + "/" + svcRef.NamespacedRef.Name}
57+
return []string{route.Namespace + "/" + svcRef.NamespacedRef.Name}
6058
}

0 commit comments

Comments
 (0)