From 0751072ca745aaa33185c882b5163a7ab301e046 Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Wed, 15 Jan 2020 20:57:43 +0000 Subject: [PATCH] release: use absolute path for kubeconfig Use absolute path to kubeconfig to allow kubectl use it. Fixes: #915 Signed-off-by: Jose Carlos Venegas Munoz --- kata-deploy/action/setup-aks.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kata-deploy/action/setup-aks.sh b/kata-deploy/action/setup-aks.sh index 41fd076a49..8537a80043 100755 --- a/kata-deploy/action/setup-aks.sh +++ b/kata-deploy/action/setup-aks.sh @@ -23,7 +23,7 @@ function die() { function destroy_aks() { set +x - export KUBECONFIG="$PWD/_output/$DNS_PREFIX/kubeconfig/kubeconfig.$LOCATION.json" + export KUBECONFIG="${PWD}/_output/${DNS_PREFIX}/kubeconfig/kubeconfig.${LOCATION}.json" az login --service-principal -u "$AZ_APPID" -p "$AZ_PASSWORD" --tenant "$AZ_TENANT_ID" az group delete --name "$DNS_PREFIX" --yes --no-wait @@ -41,7 +41,7 @@ function setup_aks() { --location "$LOCATION" --dns-prefix "$DNS_PREFIX" \ --api-model "$CLUSTER_CONFIG" --force-overwrite - export KUBECONFIG="_output/$DNS_PREFIX/kubeconfig/kubeconfig.$LOCATION.json" + export KUBECONFIG="${PWD}/_output/${DNS_PREFIX}/kubeconfig/kubeconfig.${LOCATION}.json" # wait for the cluster to be settled: kubectl wait --timeout=10m --for=condition=Ready --all nodes