-
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.
* Fix the PodDisruptionBudget `apiVersion` `make extension-up` fails with: ``` Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "gardener-extension-registry-cache-admission" namespace: "garden" from "": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1" ``` * Drop unused client from the Shoot validator * Prefix the server in `hosts.toml` with `https://` It seems to work also without the `https://` prefix but to be aligned with the upstream docs/examples (ref https://github.com/containerd/containerd/blob/main/docs/hosts.md) and provider-local (ref https://github.com/gardener/gardener/blob/v1.77.0/pkg/provider-local/webhook/controlplane/ensurer.go#L167-L174) I decided to add the prefix for the registry-cache as well. * Add e2e tests
- Loading branch information
1 parent
77197c0
commit c9416a1
Showing
285 changed files
with
51,886 additions
and
56 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
2 changes: 1 addition & 1 deletion
2
charts/admission/charts/runtime/templates/poddisruptionbudget.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
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
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
Oops, something went wrong.