Skip to content

Commit e78e66d

Browse files
authored
Remove unused gateway test files and install Gateway API CRDs
1 parent a17a713 commit e78e66d

File tree

3 files changed

+9
-90
lines changed

3 files changed

+9
-90
lines changed

tests/trino/test-gateway-advanced-values.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

tests/trino/test-gateway-production-example.yaml

Lines changed: 0 additions & 57 deletions
This file was deleted.

tests/trino/test.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,14 @@ if printf '%s\0' "${TEST_NAMES[@]}" | grep -qwz resource_groups_properties; then
155155
kubectl wait --for=condition=ready pod -l app.kubernetes.io/name=postgresql --timeout=300s -n "$DB_NAMESPACE"
156156
fi
157157

158+
# only install Gateway API CRDs when running the `gateway` test
159+
if printf '%s\0' "${TEST_NAMES[@]}" | grep -qwz gateway; then
160+
echo 1>&2 "Installing Gateway API CRDs"
161+
kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.2.1/standard-install.yaml
162+
kubectl wait --for condition=established --timeout=60s crd/gateways.gateway.networking.k8s.io
163+
kubectl wait --for condition=established --timeout=60s crd/httproutes.gateway.networking.k8s.io
164+
fi
165+
158166
CT_ARGS+=(--namespace "$NAMESPACE")
159167

160168
result=0
@@ -185,7 +193,7 @@ if [ "$CLEANUP_NAMESPACE" == "true" ]; then
185193
kubectl delete namespace "$NAMESPACE"
186194
helm -n "$KEDA_NAMESPACE" uninstall keda --ignore-not-found
187195
kubectl delete namespace "$KEDA_NAMESPACE"
188-
for api_group in monitoring.coreos.com eventing.keda.sh keda.sh; do
196+
for api_group in monitoring.coreos.com eventing.keda.sh keda.sh gateway.networking.k8s.io; do
189197
mapfile -t crds < <(kubectl api-resources --api-group="$api_group" --output name)
190198
if [ ${#crds[@]} -ne 0 ]; then
191199
kubectl delete crd "${crds[@]}"

0 commit comments

Comments
 (0)