Skip to content

Commit

Permalink
Bump to contour 1.26 and use gateway-provisioner
Browse files Browse the repository at this point in the history
  • Loading branch information
ReToCode committed Oct 9, 2023
1 parent df07871 commit ecb984a
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 51 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ kubectl apply -f ./third_party/istio
#### Contour
```bash
echo ">> Bringing up Contour"
kubectl apply -f "https://raw.githubusercontent.com/projectcontour/contour-operator/${CONTOUR_VERSION}/examples/operator/operator.yaml"
kubectl apply -f "https://raw.githubusercontent.com/projectcontour/contour/${CONTOUR_VERSION}/examples/render/contour-gateway-provisioner.yaml"

# wait for operator deployment to be Available
kubectl wait deploy --for=condition=Available --timeout=60s -n "contour-operator" -l '!job-name'
kubectl wait deploy --for=condition=Available --timeout=60s -n "projectcontour"

echo ">> Deploy Gateway API resources"
kubectl apply -f ./third_party/contour
Expand Down
2 changes: 1 addition & 1 deletion docs/test-version.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ The following Gateway API version and Ingress were tested as part of the release
| Ingress | Tested version | Unavailable features |
| ------- | ----------------------- | ------------------------------ |
| Istio | v1.19.0 | retry,httpoption |
| Contour | v1.24.0 | httpoption,basics/http2,websocket,websocket/split,grpc,grpc/split,update,host-rewrite |
| Contour | v1.26.0 | httpoption,basics/http2,websocket,websocket/split,grpc,grpc/split,update |
4 changes: 2 additions & 2 deletions hack/test-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
export GATEWAY_API_VERSION="v0.8.1"
export ISTIO_VERSION="1.19.0"
export ISTIO_UNSUPPORTED_E2E_TESTS="retry,httpoption"
export CONTOUR_VERSION="v1.24.0"
export CONTOUR_UNSUPPORTED_E2E_TESTS="httpoption,basics/http2,websocket,websocket/split,grpc,grpc/split,update,host-rewrite"
export CONTOUR_VERSION="v1.26.0"
export CONTOUR_UNSUPPORTED_E2E_TESTS="httpoption,basics/http2,websocket,websocket/split,grpc,grpc/split,update"
6 changes: 3 additions & 3 deletions test/e2e-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function teardown_networking() {
kubectl delete -f "${REPO_ROOT_DIR}/third_party/${INGRESS}"

if [[ "$INGRESS" == "contour" ]]; then
kubectl delete -f "https://raw.githubusercontent.com/projectcontour/contour-operator/${CONTOUR_VERSION}/examples/operator/operator.yaml"
kubectl delete -f "https://raw.githubusercontent.com/projectcontour/contour/${CONTOUR_VERSION}/examples/render/contour-gateway-provisioner.yaml"
else
istioctl uninstall -y --purge
kubectl delete namespace istio-system
Expand All @@ -109,8 +109,8 @@ function teardown_networking() {

function setup_contour() {
# Version is selected is in $REPO_ROOT/hack/test-env.sh
kubectl apply -f "https://raw.githubusercontent.com/projectcontour/contour-operator/${CONTOUR_VERSION}/examples/operator/operator.yaml" && \
kubectl wait deploy --for=condition=Available --timeout=60s -n "contour-operator" -l '!job-name' && \
kubectl apply -f "https://raw.githubusercontent.com/projectcontour/contour/${CONTOUR_VERSION}/examples/render/contour-gateway-provisioner.yaml" && \
kubectl wait deploy --for=condition=Available --timeout=60s -n "projectcontour" && \
kubectl apply -f "${REPO_ROOT_DIR}/third_party/contour"

local ret=$?
Expand Down
4 changes: 2 additions & 2 deletions third_party/contour/config-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ data:
ExternalIP:
class: contour
gateway: contour-external/knative-gateway
service: contour-external/envoy
service: contour-external/envoy-knative-gateway
ClusterLocal:
class: contour
gateway: contour-internal/knative-local-gateway
service: contour-internal/envoy
service: contour-internal/envoy-knative-local-gateway
20 changes: 2 additions & 18 deletions third_party/contour/gateway-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,14 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
control-plane: contour-operator
name: contour-external
---
apiVersion: operator.projectcontour.io/v1alpha1
kind: Contour
metadata:
name: contour-external
namespace: contour-external
spec:
gatewayControllerName: projectcontour.io/contour-external/contour
namespace:
name: contour-external
ingressClassName: contour-external
networkPublishing:
envoy:
type: LoadBalancerService
---
kind: GatewayClass
apiVersion: gateway.networking.k8s.io/v1beta1
metadata:
name: contour-external-gatewayclass
spec:
controllerName: projectcontour.io/contour-external/contour
controllerName: projectcontour.io/gateway-controller
---
kind: Gateway
apiVersion: gateway.networking.k8s.io/v1beta1
Expand All @@ -48,7 +32,7 @@ metadata:
spec:
gatewayClassName: contour-external-gatewayclass
listeners:
- name: default
- name: http
port: 80
protocol: HTTP
allowedRoutes:
Expand Down
25 changes: 2 additions & 23 deletions third_party/contour/gateway-internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,14 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
control-plane: contour-operator
name: contour-internal
---
apiVersion: operator.projectcontour.io/v1alpha1
kind: Contour
metadata:
name: contour-internal
namespace: contour-internal
spec:
gatewayControllerName: projectcontour.io/contour-internal/contour
namespace:
name: contour-internal
ingressClassName: contour-internal
networkPublishing:
envoy:
containerPorts:
- name: http
portNumber: 8081
- name: https
portNumber: 8443
type: ClusterIPService
---
kind: GatewayClass
apiVersion: gateway.networking.k8s.io/v1beta1
metadata:
name: contour-internal-gatewayclass
spec:
controllerName: projectcontour.io/contour-internal/contour
controllerName: projectcontour.io/gateway-controller
---
kind: Gateway
apiVersion: gateway.networking.k8s.io/v1beta1
Expand All @@ -53,7 +32,7 @@ metadata:
spec:
gatewayClassName: contour-internal-gatewayclass
listeners:
- name: default
- name: http
port: 80
protocol: HTTP
allowedRoutes:
Expand Down

0 comments on commit ecb984a

Please sign in to comment.