From a6d7b32b7a5f2c38022167d6508545af4422e8b1 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 22 Nov 2023 09:57:20 +0100 Subject: [PATCH] Prevent minikube from doing weird stuff --- nushell/config/docker.nu | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nushell/config/docker.nu b/nushell/config/docker.nu index cd0d664..e085f65 100644 --- a/nushell/config/docker.nu +++ b/nushell/config/docker.nu @@ -41,3 +41,18 @@ def --env kube [name?: string@_kube_kubes] { 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 +}