Skip to content

Commit

Permalink
ci: k8s: add deploy-kata-kcli() to gh-run.sh
Browse files Browse the repository at this point in the history
The cleanup-kcli() behaves like other deploy kata for
bare-metal (e.g. sev, tdx...etc) except that KUBECONFIG
should be exported.

Fixes #7620
Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
(cherry picked from commit c2ef1f0)
  • Loading branch information
wainersm authored and fidencio committed Oct 11, 2023
1 parent 6b76d21 commit 56cebfb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/integration/kubernetes/gha-run.sh
Expand Up @@ -95,7 +95,10 @@ function deploy_kata() {
platform="${1}"
ensure_yq

# Emsure we're in the default namespace
[ "$platform" = "kcli" ] && \
export KUBECONFIG="$HOME/.kcli/clusters/${CLUSTER_NAME:-kata-k8s}/auth/kubeconfig"

# Ensure we're in the default namespace
kubectl config set-context --current --namespace=default

sed -i -e "s|quay.io/kata-containers/kata-deploy:latest|${DOCKER_REGISTRY}/${DOCKER_REPO}:${DOCKER_TAG}|g" "${tools_dir}/packaging/kata-deploy/kata-deploy/base/kata-deploy.yaml"
Expand Down Expand Up @@ -217,6 +220,7 @@ function main() {
install-kubectl) install_kubectl ;;
get-cluster-credentials) get_cluster_credentials ;;
deploy-kata-aks) deploy_kata "aks" ;;
deploy-kata-kcli) deploy_kata "kcli" ;;
deploy-kata-sev) deploy_kata "sev" ;;
deploy-kata-snp) deploy_kata "snp" ;;
deploy-kata-tdx) deploy_kata "tdx" ;;
Expand Down

0 comments on commit 56cebfb

Please sign in to comment.