home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit cee0eb627d03bb977be2ffdf54dbb6fdfc48fe1f
parent 917cf136f2faa71e3a61a3542be4d4ede84537a8
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Thu,  6 May 2021 13:40:52 +0200

tools/bekind: do not write in current KUBECONFIG

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/bekind/bekind | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/tools/bekind/bekind b/tools/bekind/bekind @@ -70,10 +70,14 @@ bekind_create(){ fi # replace hosts in there fi + tmpkubeconfig=$(mktemp /tmp/bekind.kubeconfig.XXXXXX) + export KUBECONFIG=${tmpkubeconfig} echo "> Create the cluster (name: ${name}, args: ${args})" env $env kind create cluster --name ${name} ${args} echo "> Write the kubeconfig in ~/.kube/${configfile}" env $env kind get kubeconfig --name ${name} > ~/.kube/${configfile} + rm ${tmpkubeconfig} + unset KUBECONFIG } bekind_delete() {