forked from k8sgateway/k8sgateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix route reports for custom backends (#10361)
Co-authored-by: Omar Hammami <[email protected]>
- Loading branch information
1 parent
2b20acf
commit b937894
Showing
7 changed files
with
166 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
changelog: | ||
- type: NON_USER_FACING | ||
description: >- | ||
Fix route report issues when we write multiple values | ||
for a status, or when we're reporting for a custom backend | ||
type. |
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
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
39 changes: 39 additions & 0 deletions
39
projects/gateway2/translator/testutils/inputs/backend-plugin/gateway.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,39 @@ | ||
#$ Used in: | ||
#$ - site-src/guides/http-routing.md | ||
apiVersion: gateway.networking.k8s.io/v1 | ||
kind: Gateway | ||
metadata: | ||
name: example-gateway | ||
spec: | ||
gatewayClassName: example-gateway-class | ||
listeners: | ||
- name: http | ||
protocol: HTTP | ||
port: 80 | ||
--- | ||
apiVersion: gateway.networking.k8s.io/v1 | ||
kind: HTTPRoute | ||
metadata: | ||
name: example-route | ||
spec: | ||
parentRefs: | ||
- name: example-gateway | ||
hostnames: | ||
- "example.com" | ||
rules: | ||
- backendRefs: | ||
- name: example-svc | ||
kind: test-backend-plugin | ||
port: 80 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: example-svc | ||
spec: | ||
selector: | ||
test: test | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
targetPort: test |
31 changes: 31 additions & 0 deletions
31
projects/gateway2/translator/testutils/outputs/backend-plugin-proxy.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,31 @@ | ||
--- | ||
listeners: | ||
- aggregateListener: | ||
httpFilterChains: | ||
- matcher: {} | ||
virtualHostRefs: | ||
- http~example_com | ||
httpResources: | ||
virtualHosts: | ||
http~example_com: | ||
domains: | ||
- example.com | ||
name: http~example_com | ||
routes: | ||
- matchers: | ||
- prefix: / | ||
name: httproute-example-route-default-0-0 | ||
options: {} | ||
routeAction: | ||
single: | ||
upstream: | ||
name: test-backend-plugin-us | ||
bindAddress: '::' | ||
bindPort: 8080 | ||
name: http | ||
metadata: | ||
labels: | ||
created_by: gloo-kube-gateway-api | ||
gateway_namespace: default | ||
name: default-example-gateway | ||
namespace: gloo-system |
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
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