-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: shawnh2 <[email protected]>
- Loading branch information
Showing
4 changed files
with
171 additions
and
1 deletion.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
internal/cmd/egctl/testdata/translate/in/backend-endpoint.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,46 @@ | ||
apiVersion: gateway.networking.k8s.io/v1 | ||
kind: GatewayClass | ||
metadata: | ||
name: eg | ||
spec: | ||
controllerName: gateway.envoyproxy.io/gatewayclass-controller | ||
--- | ||
apiVersion: gateway.networking.k8s.io/v1 | ||
kind: Gateway | ||
metadata: | ||
name: eg | ||
spec: | ||
gatewayClassName: eg | ||
listeners: | ||
- name: http | ||
protocol: HTTP | ||
port: 80 | ||
--- | ||
apiVersion: gateway.networking.k8s.io/v1 | ||
kind: HTTPRoute | ||
metadata: | ||
name: backend | ||
spec: | ||
parentRefs: | ||
- name: eg | ||
hostnames: | ||
- "www.example.com" | ||
rules: | ||
- backendRefs: | ||
- group: gateway.envoyproxy.io | ||
kind: Backend | ||
name: backend | ||
matches: | ||
- path: | ||
type: PathPrefix | ||
value: / | ||
--- | ||
apiVersion: gateway.envoyproxy.io/v1alpha1 | ||
kind: Backend | ||
metadata: | ||
name: backend | ||
spec: | ||
endpoints: | ||
- ip: | ||
address: 0.0.0.0 | ||
port: 3000 |
106 changes: 106 additions & 0 deletions
106
internal/cmd/egctl/testdata/translate/out/backend-endpoint.all.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,106 @@ | ||
backends: | ||
- kind: Backend | ||
metadata: | ||
creationTimestamp: null | ||
name: backend | ||
namespace: envoy-gateway-system | ||
spec: | ||
endpoints: | ||
- ip: | ||
address: 0.0.0.0 | ||
port: 3000 | ||
status: | ||
conditions: | ||
- lastTransitionTime: null | ||
message: The Backend was accepted | ||
reason: Accepted | ||
status: "True" | ||
type: Accepted | ||
gatewayClass: | ||
kind: GatewayClass | ||
metadata: | ||
creationTimestamp: null | ||
name: eg | ||
namespace: envoy-gateway-system | ||
spec: | ||
controllerName: gateway.envoyproxy.io/gatewayclass-controller | ||
status: | ||
conditions: | ||
- lastTransitionTime: null | ||
message: Valid GatewayClass | ||
reason: Accepted | ||
status: "True" | ||
type: Accepted | ||
gateways: | ||
- kind: Gateway | ||
metadata: | ||
creationTimestamp: null | ||
name: eg | ||
namespace: envoy-gateway-system | ||
spec: | ||
gatewayClassName: eg | ||
listeners: | ||
- name: http | ||
port: 80 | ||
protocol: HTTP | ||
status: | ||
listeners: | ||
- attachedRoutes: 1 | ||
conditions: | ||
- lastTransitionTime: null | ||
message: Sending translated listener configuration to the data plane | ||
reason: Programmed | ||
status: "True" | ||
type: Programmed | ||
- lastTransitionTime: null | ||
message: Listener has been successfully translated | ||
reason: Accepted | ||
status: "True" | ||
type: Accepted | ||
- lastTransitionTime: null | ||
message: Listener references have been resolved | ||
reason: ResolvedRefs | ||
status: "True" | ||
type: ResolvedRefs | ||
name: http | ||
supportedKinds: | ||
- group: gateway.networking.k8s.io | ||
kind: HTTPRoute | ||
- group: gateway.networking.k8s.io | ||
kind: GRPCRoute | ||
httpRoutes: | ||
- kind: HTTPRoute | ||
metadata: | ||
creationTimestamp: null | ||
name: backend | ||
namespace: envoy-gateway-system | ||
spec: | ||
hostnames: | ||
- www.example.com | ||
parentRefs: | ||
- name: eg | ||
rules: | ||
- backendRefs: | ||
- group: gateway.envoyproxy.io | ||
kind: Backend | ||
name: backend | ||
matches: | ||
- path: | ||
type: PathPrefix | ||
value: / | ||
status: | ||
parents: | ||
- conditions: | ||
- lastTransitionTime: null | ||
message: Route is accepted | ||
reason: Accepted | ||
status: "True" | ||
type: Accepted | ||
- lastTransitionTime: null | ||
message: Resolved all the Object references for the Route | ||
reason: ResolvedRefs | ||
status: "True" | ||
type: ResolvedRefs | ||
controllerName: gateway.envoyproxy.io/gatewayclass-controller | ||
parentRef: | ||
name: eg |
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