-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Route with multiple parents has incorrect namespace in parentRef…
… status (#4592) fix route status wrong ns Signed-off-by: Huabing Zhao <[email protected]>
- Loading branch information
1 parent
d42915a
commit 7285dda
Showing
6 changed files
with
646 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
internal/gatewayapi/testdata/httproute-with-multiple-gateways-from-different-ns.in.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
gateways: | ||
- apiVersion: gateway.networking.k8s.io/v1 | ||
kind: Gateway | ||
metadata: | ||
name: gateway-a | ||
namespace: default | ||
spec: | ||
gatewayClassName: envoy-gateway-class | ||
listeners: | ||
- name: default | ||
port: 80 | ||
protocol: HTTP | ||
hostname: '*.a.example.com' | ||
allowedRoutes: | ||
namespaces: | ||
from: All | ||
- apiVersion: gateway.networking.k8s.io/v1 | ||
kind: Gateway | ||
metadata: | ||
name: gateway-b | ||
namespace: envoy-gateway | ||
spec: | ||
gatewayClassName: envoy-gateway-class | ||
listeners: | ||
- name: default | ||
port: 80 | ||
protocol: HTTP | ||
hostname: '*.b.example.com' | ||
allowedRoutes: | ||
namespaces: | ||
from: All | ||
httpRoutes: | ||
- apiVersion: gateway.networking.k8s.io/v1 | ||
kind: HTTPRoute | ||
metadata: | ||
name: targeted-route | ||
namespace: envoy-gateway | ||
spec: | ||
hostnames: | ||
- targeted.a.example.com | ||
- targeted.b.example.com | ||
parentRefs: | ||
- group: gateway.networking.k8s.io | ||
kind: Gateway | ||
name: gateway-a | ||
namespace: default | ||
- group: gateway.networking.k8s.io | ||
kind: Gateway | ||
name: gateway-b | ||
rules: | ||
- matches: | ||
- method: GET | ||
path: | ||
type: PathPrefix | ||
value: /toy |
Oops, something went wrong.