mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-10 12:22:36 +00:00
Merge pull request #6610 from fidencio/topic/gha-run-dragonball-k8s-tests
gha: ci-on-push: Run k8s tests with dragonball
This commit is contained in:
commit
4751adbea1
1
.github/workflows/run-k8s-tests-on-aks.yaml
vendored
1
.github/workflows/run-k8s-tests-on-aks.yaml
vendored
@ -83,6 +83,7 @@ jobs:
|
|||||||
KATA_HYPERVISOR: ${{ matrix.vmm }}
|
KATA_HYPERVISOR: ${{ matrix.vmm }}
|
||||||
|
|
||||||
- name: Delete AKS cluster
|
- name: Delete AKS cluster
|
||||||
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
az aks delete \
|
az aks delete \
|
||||||
-g "kataCI" \
|
-g "kataCI" \
|
||||||
|
@ -10,6 +10,7 @@ load "${BATS_TEST_DIRNAME}/tests_common.sh"
|
|||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
[ "${KATA_HYPERVISOR}" == "firecracker" ] && skip "test not working see: ${fc_limitations}"
|
[ "${KATA_HYPERVISOR}" == "firecracker" ] && skip "test not working see: ${fc_limitations}"
|
||||||
|
[ "${KATA_HYPERVISOR}" == "dragonball" ] && skip "test not working see: ${dragonball_limitations}"
|
||||||
|
|
||||||
pod_name="constraints-cpu-test"
|
pod_name="constraints-cpu-test"
|
||||||
container_name="first-cpu-container"
|
container_name="first-cpu-container"
|
||||||
@ -25,6 +26,7 @@ setup() {
|
|||||||
|
|
||||||
@test "Check CPU constraints" {
|
@test "Check CPU constraints" {
|
||||||
[ "${KATA_HYPERVISOR}" == "firecracker" ] && skip "test not working see: ${fc_limitations}"
|
[ "${KATA_HYPERVISOR}" == "firecracker" ] && skip "test not working see: ${fc_limitations}"
|
||||||
|
[ "${KATA_HYPERVISOR}" == "dragonball" ] && skip "test not working see: ${dragonball_limitations}"
|
||||||
|
|
||||||
# Create the pod
|
# Create the pod
|
||||||
kubectl create -f "${pod_config_dir}/pod-cpu.yaml"
|
kubectl create -f "${pod_config_dir}/pod-cpu.yaml"
|
||||||
@ -68,6 +70,7 @@ setup() {
|
|||||||
|
|
||||||
teardown() {
|
teardown() {
|
||||||
[ "${KATA_HYPERVISOR}" == "firecracker" ] && skip "test not working see: ${fc_limitations}"
|
[ "${KATA_HYPERVISOR}" == "firecracker" ] && skip "test not working see: ${fc_limitations}"
|
||||||
|
[ "${KATA_HYPERVISOR}" == "dragonball" ] && skip "test not working see: ${dragonball_limitations}"
|
||||||
|
|
||||||
# Debugging information
|
# Debugging information
|
||||||
kubectl describe "pod/$pod_name"
|
kubectl describe "pod/$pod_name"
|
||||||
|
@ -54,10 +54,6 @@ else
|
|||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ${KATA_HYPERVISOR} == "dragonball" ]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# we may need to skip a few test cases when running on non-x86_64 arch
|
# we may need to skip a few test cases when running on non-x86_64 arch
|
||||||
arch_config_file="${kubernetes_dir}/filter_out_per_arch/${TARGET_ARCH}.yaml"
|
arch_config_file="${kubernetes_dir}/filter_out_per_arch/${TARGET_ARCH}.yaml"
|
||||||
if [ -f "${arch_config_file}" ]; then
|
if [ -f "${arch_config_file}" ]; then
|
||||||
|
@ -25,6 +25,7 @@ timeout=90s
|
|||||||
|
|
||||||
# issues that can't test yet.
|
# issues that can't test yet.
|
||||||
fc_limitations="https://github.com/kata-containers/documentation/issues/351"
|
fc_limitations="https://github.com/kata-containers/documentation/issues/351"
|
||||||
|
dragonball_limitations="https://github.com/kata-containers/kata-containers/issues/6621"
|
||||||
|
|
||||||
# Path to the kubeconfig file which is used by kubectl and other tools.
|
# Path to the kubeconfig file which is used by kubectl and other tools.
|
||||||
# Note: the init script sets that variable but if you want to run the tests in
|
# Note: the init script sets that variable but if you want to run the tests in
|
||||||
|
Loading…
Reference in New Issue
Block a user