-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Kourier as an Ingress option for e2e tests (#5983)
* Add Kourier as an Ingress option for e2e tests This copies the work done for Gloo, except for Kourier. The download-kourier.sh script just pulls in Kourier 0.2.2 (the latest) for now like Gloo does since we do not test with multiple versions of either. * HACK: Run all tests w/ Kourier instead of Istio This commit needs to be removed from this PR before merging. * We need the kourier-system namespace as well I missed then when converting things to use the download-kourier.sh for generating the kourier.yaml * Actually use Kourier ingress when it's enabled in tests * Helps if it's not a dry-run * Make Kourier the default ingress AFTER serving is installed I guess I need to figure out how to run this entire e2e script locally... * Bump to Kouvier 0.2.3 that does not reconcile ClusterIngress * Try Kourier w/ 1 dataplane pod * Temporarily enable route retrying logic to isolate test failures * Bump to Kourier v0.2.4 and multiple gateway pods Kourier 0.2.4 should now handle Ready status from multiple gateway pods so that Ready isn't indicated until all gateways are ready. So, bump to that and increase gateway replica count. * Kourier v0.2.5 * Be smarter about serving-core.yaml vs serving.yaml in upgrade tests When testing on Gloo or Kourier use serving-core.yaml instead of serving.yaml for upgrade tests. * Revert "Temporarily enable route retrying logic to isolate test failures" This reverts commit e2e02aa. * Copyright header, trailing whitespace cleanup * Update to Kourier 0.2.6 * Revert "HACK: Run all tests w/ Kourier instead of Istio" This reverts commit d6056f2.
- Loading branch information
1 parent
d528a69
commit be9cdc9
Showing
5 changed files
with
363 additions
and
5 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
The kourier.yaml file is generated by running | ||
|
||
``` | ||
./download-kourier.sh | ||
``` |
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,42 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2019 The Knative Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
set -ex | ||
|
||
# Download Kourier | ||
KOURIER_VERSION=0.2.6 | ||
KOURIER_YAML=kourier-knative.yaml | ||
DOWNLOAD_URL=https://raw.githubusercontent.com/3scale/kourier/v${KOURIER_VERSION}/deploy/${KOURIER_YAML} | ||
|
||
wget ${DOWNLOAD_URL} | ||
|
||
cat <<EOF > kourier.yaml | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: kourier-system | ||
--- | ||
EOF | ||
|
||
cat ${KOURIER_YAML} \ | ||
`# Install Kourier into the kourier-system namespace` \ | ||
| sed 's/namespace: knative-serving/namespace: kourier-system/' \ | ||
`# Expose Kourier services with LoadBalancer IPs instead of ClusterIP` \ | ||
| sed 's/ClusterIP/LoadBalancer/' \ | ||
>> kourier.yaml | ||
|
||
# Clean up. | ||
rm ${KOURIER_YAML} |
Oops, something went wrong.