mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-01 09:42:45 +00:00
Merge pull request #7378 from fidencio/topic/ci-k8s-fix-source-path
ci: k8s: Adapt "source ..." to the new location of gha-run.sh
This commit is contained in:
commit
5f7da301fd
@ -8,8 +8,8 @@ set -o errexit
|
|||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
integration_dir="$(dirname "$(readlink -f "$0")")"
|
kubernetes_dir="$(dirname "$(readlink -f "$0")")"
|
||||||
repo_root_dir="$(cd "${integration_dir}/../../" && pwd)"
|
repo_root_dir="$(cd "${kubernetes_dir}/../../../" && pwd)"
|
||||||
tools_dir="${repo_root_dir}/tools"
|
tools_dir="${repo_root_dir}/tools"
|
||||||
|
|
||||||
function _print_cluster_name() {
|
function _print_cluster_name() {
|
||||||
@ -110,13 +110,13 @@ function run_tests() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Create a new namespace for the tests and switch to it
|
# Create a new namespace for the tests and switch to it
|
||||||
kubectl apply -f ${integration_dir}/kubernetes/runtimeclass_workloads/tests-namespace.yaml
|
kubectl apply -f ${kubernetes_dir}/runtimeclass_workloads/tests-namespace.yaml
|
||||||
kubectl config set-context --current --namespace=kata-containers-k8s-tests
|
kubectl config set-context --current --namespace=kata-containers-k8s-tests
|
||||||
|
|
||||||
echo "Gather information about the nodes and pods just before starting the tests"
|
echo "Gather information about the nodes and pods just before starting the tests"
|
||||||
get_nodes_and_pods_info
|
get_nodes_and_pods_info
|
||||||
|
|
||||||
pushd "${integration_dir}/kubernetes"
|
pushd "${kubernetes_dir}"
|
||||||
bash setup.sh
|
bash setup.sh
|
||||||
bash run_kubernetes_tests.sh
|
bash run_kubernetes_tests.sh
|
||||||
popd
|
popd
|
||||||
|
Loading…
Reference in New Issue
Block a user