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 +}