-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1d8cdd
commit 43d38c2
Showing
277 changed files
with
51,867 additions
and
31 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
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,51 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright 2023 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file | ||
# | ||
# 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 -o nounset | ||
set -o pipefail | ||
set -o errexit | ||
|
||
clamp_mss_to_pmtu() { | ||
# https://github.com/kubernetes/test-infra/issues/23741 | ||
if [[ "$OSTYPE" != "darwin"* ]]; then | ||
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu | ||
fi | ||
} | ||
|
||
REPO_ROOT="$(readlink -f $(dirname ${0})/..)" | ||
GARDENER_VERSION=$(go list -m -f '{{.Version}}' github.com/gardener/gardener) | ||
|
||
if [[ ! -d "$REPO_ROOT/gardener" ]]; then | ||
git clone --branch $GARDENER_VERSION https://github.com/gardener/gardener.git | ||
else | ||
(cd "$REPO_ROOT/gardener" && git checkout $GARDENER_VERSION) | ||
fi | ||
|
||
clamp_mss_to_pmtu | ||
|
||
make -C "$REPO_ROOT/gardener" kind-up | ||
export KUBECONFIG=$REPO_ROOT/gardener/example/gardener-local/kind/local/kubeconfig | ||
|
||
trap '{ | ||
make -C "$REPO_ROOT/gardener" kind-down | ||
}' EXIT | ||
|
||
make -C "$REPO_ROOT/gardener" gardener-up | ||
make extension-up | ||
make test-e2e-local | ||
# TODO: make extension-down currently fails. When we fix it, we can execute it during the tear down. | ||
# make extension-down | ||
make -C "$REPO_ROOT/gardener" gardener-down |
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,56 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright 2023 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file. | ||
# | ||
# 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 -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
echo "> E2E Tests" | ||
|
||
# We have to make the shoot domains accessible. | ||
seed_name="local" | ||
|
||
shoot_names=( | ||
e2e-default.local | ||
e2e-hib.local | ||
) | ||
|
||
if [ -n "${CI:-}" ]; then | ||
for shoot in "${shoot_names[@]}" ; do | ||
printf "\n127.0.0.1 api.%s.external.local.gardener.cloud\n127.0.0.1 api.%s.internal.local.gardener.cloud\n" $shoot $shoot >>/etc/hosts | ||
done | ||
else | ||
missing_entries=() | ||
|
||
for shoot in "${shoot_names[@]}"; do | ||
for ip in internal external; do | ||
if ! grep -q -x "127.0.0.1 api.$shoot.$ip.local.gardener.cloud" /etc/hosts; then | ||
missing_entries+=("127.0.0.1 api.$shoot.$ip.local.gardener.cloud") | ||
fi | ||
done | ||
done | ||
|
||
if [ ${#missing_entries[@]} -gt 0 ]; then | ||
printf "Hostnames for the following Shoots are missing in /etc/hosts:\n" | ||
for entry in "${missing_entries[@]}"; do | ||
printf " - %s\n" "$entry" | ||
done | ||
printf "To access shoot clusters and run e2e tests, you have to extend your /etc/hosts file.\nPlease refer to https://github.com/gardener/gardener/blob/master/docs/deployment/getting_started_locally.md#accessing-the-shoot-cluster\n\n" | ||
exit 1 | ||
fi | ||
fi | ||
|
||
GO111MODULE=on ginkgo run --timeout=1h --v --show-node-events "$@" |
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,23 @@ | ||
--- | ||
apiVersion: skaffold/v2beta29 | ||
kind: Config | ||
metadata: | ||
name: admission | ||
build: | ||
artifacts: | ||
- image: eu.gcr.io/gardener-project/gardener/extensions/registry-cache-admission | ||
ko: | ||
main: ./cmd/gardener-extension-registry-cache-admission | ||
deploy: | ||
helm: | ||
releases: | ||
- name: gardener-extension-registry-cache-admission | ||
chartPath: charts/admission | ||
namespace: garden | ||
artifactOverrides: | ||
global: | ||
image: eu.gcr.io/gardener-project/gardener/extensions/registry-cache-admission | ||
imageStrategy: | ||
helm: {} | ||
valuesFiles: | ||
- example/admission/values.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
Oops, something went wrong.