Skip to content

Commit

Permalink
Merge pull request #9 from Amulyam24/test-k8s
Browse files Browse the repository at this point in the history
test
  • Loading branch information
Amulyam24 authored Jan 29, 2024
2 parents dcadb7e + ccbec7b commit 95b510d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish-kata-deploy-payload-ppc64le.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
with:
ref: ${{ inputs.commit-hash }}
fetch-depth: 0

- name: Prepare the self-hosted runner
run: ${HOME}/scripts/prepare_runner.sh

- name: Rebase atop of the latest target branch
run: |
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/run-k8s-tests-on-ppc64le.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,17 @@ jobs:
runs-on: ppc64le
env:
DOCKER_REGISTRY: ${{ inputs.registry }}
DOCKER_REPO: ${{ inputs.repo }}
DOCKER_REPO: amulyam24
DOCKER_TAG: ${{ inputs.tag }}
PR_NUMBER: ${{ inputs.pr-number }}
KATA_HYPERVISOR: ${{ matrix.vmm }}
KUBERNETES: ${{ matrix.k8s }}
USING_NFD: "false"
TARGET_ARCH: "ppc64le"
steps:
# - name: Prepare the self-hosted runner
# run: ${HOME}/scripts/prepare_runner.sh
- name: Prepare the self-hosted runner
run: ${HOME}/scripts/prepare_runner.sh

- name: Set the KUBECONFIG for kubeadm
run: export KUBECONFIG="$HOME/.kube/config"
- uses: actions/checkout@v4
with:
ref: ${{ inputs.commit-hash }}
Expand All @@ -58,6 +56,12 @@ jobs:
env:
TARGET_BRANCH: ${{ inputs.target-branch }}

- name: Prepare the runner for k8s cluster creation
run: bash ${HOME}/scripts/k8s_cluster_cleanup.sh

- name: Create k8s cluster using kubeadm
run: bash ${HOME}/scripts/k8s_cluster_create.sh

- name: Deploy Kata
timeout-minutes: 10
run: bash tests/integration/kubernetes/gha-run.sh deploy-kata-kubeadm
Expand All @@ -66,4 +70,5 @@ jobs:
timeout-minutes: 30
run: bash tests/integration/kubernetes/gha-run.sh run-tests


- name: Delete cluster
run: bash ${HOME}/scripts/k8s_cluster_cleanup.sh
3 changes: 2 additions & 1 deletion tests/integration/kubernetes/gha-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ source "${kubernetes_dir}/../../gha-run-k8s-common.sh"
tools_dir="${repo_root_dir}/tools"

DOCKER_REGISTRY=${DOCKER_REGISTRY:-quay.io}
DOCKER_REPO=${DOCKER_REPO:-kata-containers/kata-deploy-ci}
DOCKER_REPO="amulyam24/kata-deploy-ci"
DOCKER_TAG=${DOCKER_TAG:-kata-containers-latest}
KATA_DEPLOY_WAIT_TIMEOUT=${KATA_DEPLOY_WAIT_TIMEOUT:-10m}
KATA_HYPERVISOR=${KATA_HYPERVISOR:-qemu}
Expand Down Expand Up @@ -266,6 +266,7 @@ function main() {
deploy-kata-tdx) deploy_kata "tdx" ;;
deploy-kata-garm) deploy_kata "garm" ;;
deploy-kata-zvsi) deploy_kata "zvsi" ;;
deploy-kata-kubeadm) deploy_kata "kubeadm" ;;
run-tests) run_tests ;;
run-tests-kcli) run_tests "kcli" ;;
cleanup-kcli) cleanup "kcli" ;;
Expand Down

0 comments on commit 95b510d

Please sign in to comment.