File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ func (gm GatewayManagerImpl) isBackendRefValid(backendRef store.BackendRef) bool
349349// This check depends on cross namespace reference and authorization to do so by referenceGrant if necessary.
350350func (gm GatewayManagerImpl ) isNamespaceGranted (namespace string , backendRef store.BackendRef ) (granted bool ) {
351351 // If namespace of backendRef is specified ...
352- if backendRef .Namespace != nil {
352+ if backendRef .Namespace != nil && * backendRef . Namespace != namespace {
353353 ns , found := gm .k8sStore .Namespaces [* backendRef .Namespace ]
354354 if ! found || ! ns .Relevant {
355355 gm .statusManager .SetRouteReasonBackendNotFound (fmt .Sprintf ("backend '%s/%s' not found" , utils .PointerDefaultValueIfNil (backendRef .Namespace ), backendRef .Name ))
You can’t perform that action at this time.
0 commit comments