gha: Add k8s stability Kata CoCo GHA workflow

This PR adds the k8s stability Kata CoCo GHA workflow to run weekly
the k8s stability tests.

Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
Gabriela Cervantes
2024-08-16 16:05:38 +00:00
parent ecfbc9515a
commit 6ea34f13e1
3 changed files with 162 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
#!/bin/bash
#
# Copyright (c) 2024 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
set -o errexit
set -o nounset
set -o pipefail
stability_dir="$(dirname "$(readlink -f "$0")")"
source "${stability_dir}/../common.bash"
source "${stability_dir}/../metrics/lib/common.bash"
function run_tests() {
info "Running scability test using ${KATA_HYPERVISOR} hypervisor"
bash "${stability_dir}/kubernetes_stability.sh"
}
function main() {
action="${1:-}"
case "${action}" in
run-tests) run_tests ;;
*) >&2 die "Invalid argument" ;;
esac
}
main "$@"