mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-11 12:52:23 +00:00
gha: Enable uninstall kbs client function for coco gha workflow
This PR enables the uninstall kbs client function for coco gha tdx workflow. Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
parent
aaf9b54d97
commit
b54dc26073
4
.github/workflows/run-kata-coco-tests.yaml
vendored
4
.github/workflows/run-kata-coco-tests.yaml
vendored
@ -67,6 +67,10 @@ jobs:
|
|||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
run: bash tests/integration/kubernetes/gha-run.sh deploy-kata-tdx
|
run: bash tests/integration/kubernetes/gha-run.sh deploy-kata-tdx
|
||||||
|
|
||||||
|
- name: Uninstall previous `kbs-client`
|
||||||
|
timeout-minutes: 10
|
||||||
|
run: bash tests/integration/kubernetes/gha-run.sh uninstall-kbs-client
|
||||||
|
|
||||||
- name: Deploy CoCo KBS
|
- name: Deploy CoCo KBS
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
run: bash tests/integration/kubernetes/gha-run.sh deploy-coco-kbs
|
run: bash tests/integration/kubernetes/gha-run.sh deploy-coco-kbs
|
||||||
|
@ -266,6 +266,10 @@ function install_kbs_client() {
|
|||||||
kbs_install_cli
|
kbs_install_cli
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function uninstall_kbs_client() {
|
||||||
|
kbs_uninstall_cli
|
||||||
|
}
|
||||||
|
|
||||||
function run_tests() {
|
function run_tests() {
|
||||||
ensure_yq
|
ensure_yq
|
||||||
platform="${1:-}"
|
platform="${1:-}"
|
||||||
@ -594,6 +598,7 @@ function main() {
|
|||||||
delete-coco-kbs) delete_coco_kbs ;;
|
delete-coco-kbs) delete_coco_kbs ;;
|
||||||
delete-cluster) cleanup "aks" ;;
|
delete-cluster) cleanup "aks" ;;
|
||||||
delete-cluster-kcli) delete_cluster_kcli ;;
|
delete-cluster-kcli) delete_cluster_kcli ;;
|
||||||
|
uninstall-kbs-client) uninstall_kbs_client ;;
|
||||||
*) >&2 echo "Invalid argument"; exit 2 ;;
|
*) >&2 echo "Invalid argument"; exit 2 ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user