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 <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
Jose Carlos Venegas Munoz 2020-01-15 20:57:43 +00:00
parent 94f4955167
commit 0751072ca7

View File

@ -23,7 +23,7 @@ function die() {
function destroy_aks() { function destroy_aks() {
set +x 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 login --service-principal -u "$AZ_APPID" -p "$AZ_PASSWORD" --tenant "$AZ_TENANT_ID"
az group delete --name "$DNS_PREFIX" --yes --no-wait az group delete --name "$DNS_PREFIX" --yes --no-wait
@ -41,7 +41,7 @@ function setup_aks() {
--location "$LOCATION" --dns-prefix "$DNS_PREFIX" \ --location "$LOCATION" --dns-prefix "$DNS_PREFIX" \
--api-model "$CLUSTER_CONFIG" --force-overwrite --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: # wait for the cluster to be settled:
kubectl wait --timeout=10m --for=condition=Ready --all nodes kubectl wait --timeout=10m --for=condition=Ready --all nodes