Skip to content

Commit

Permalink
set the svc name of the gateway for testing reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
dprotaso committed May 31, 2024
1 parent 7e47dd2 commit 621c2ba
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/e2e-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function parse_flags() {
;;
--envoy-gateway)
readonly INGRESS=envoy-gateway
readonly GATEWAY_OVERRIDE=
readonly GATEWAY_OVERRIDE=knative-external
readonly GATEWAY_NAMESPACE_OVERRIDE=envoy-gateway-system
readonly GATEWAY_CLASS=eg-external
readonly UNSUPPORTED_E2E_TESTS="${ENVOY_GATEWAY_UNSUPPORTED_E2E_TESTS}"
Expand Down
21 changes: 21 additions & 0 deletions third_party/envoy-gateway/external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,33 @@ kind: Namespace
metadata:
name: eg-external
---
apiVersion: gateway.envoyproxy.io/v1alpha1
kind: EnvoyProxy
metadata:
name: knative-external-config
namespace: envoy-gateway-system
spec:
provider:
type: Kubernetes
kubernetes:
envoyService:
type: ClusterIP
patch:
value:
metadata:
name: knative-external
---
apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
metadata:
name: eg-external
spec:
controllerName: gateway.envoyproxy.io/gatewayclass-controller
parametersRef:
group: gateway.envoyproxy.io
kind: EnvoyProxy
name: knative-external-config
namespace: envoy-gateway-system
---
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
Expand Down
12 changes: 8 additions & 4 deletions third_party/envoy-gateway/internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ metadata:
apiVersion: gateway.envoyproxy.io/v1alpha1
kind: EnvoyProxy
metadata:
name: internal-config
namespace: eg-internal
name: knative-internal-config
namespace: envoy-gateway-system
spec:
provider:
type: Kubernetes
kubernetes:
envoyService:
type: ClusterIP
patch:
value:
metadata:
name: knative-internal
---
apiVersion: gateway.networking.k8s.io/v1
kind: GatewayClass
Expand All @@ -25,8 +29,8 @@ spec:
parametersRef:
group: gateway.envoyproxy.io
kind: EnvoyProxy
name: internal-config
namespace: eg-internal
name: knative-internal-config
namespace: envoy-gateway-system
---
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
Expand Down

0 comments on commit 621c2ba

Please sign in to comment.