mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 00:07:16 +00:00
Merge pull request #917 from jcvenegas/fix-915
release: use absolute path for kubeconfig
This commit is contained in:
commit
7087d7ddc7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user