Prevent minikube from doing weird stuff

This commit is contained in:
Thomas Forgione 2023-11-22 09:57:20 +01:00
parent 7d031308ce
commit a6d7b32b7a
1 changed files with 15 additions and 0 deletions

View File

@ -41,3 +41,18 @@ def --env kube [name?: string@_kube_kubes] {
alias kns = k9s alias kns = k9s
# minikube: don't erase my kubeconfig
def "minikube start" [] {
$env.KUBECONFIG = ([$env.HOME, '.kubes', 'test', 'config'] | path join)
^minikube start
}
def "minikube stop" [] {
$env.KUBECONFIG = ([$env.HOME, '.kubes', 'test', 'config'] | path join)
^minikube stop
}
def "minikube delete" [] {
$env.KUBECONFIG = ([$env.HOME, '.kubes', 'test', 'config'] | path join)
^minikube delete
}