Skip to content

Commit

Permalink
Try to manage KUBECONFIG differently.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Jan 15, 2020
1 parent 7bd8a26 commit 4ce55f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ fi

# TODO use kind load to take better advantage of images cached in the host VM
export cluster=ci$RANDOM
export KUBECONFIG=$WSTMP/kubeconfig-$cluster
kind create cluster --name $cluster --wait 5m
function cleanup() {
kind export logs --name $cluster $WSTMP/kindlogs || :
kind delete cluster --name $cluster || :
}
trap cleanup EXIT
export KUBECONFIG="$(kind get kubeconfig-path --name $cluster)"
kubectl cluster-info

bash test-in-k8s.sh
Expand Down

0 comments on commit 4ce55f5

Please sign in to comment.