mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-11-11 22:51:43 +08:00
Fix kubectl warning to show only when applicable
This commit is contained in:
parent
d741327015
commit
ec9932f314
1 changed files with 2 additions and 2 deletions
|
|
@ -783,10 +783,10 @@ defmodule LivebookWeb.SessionLive.K8sRuntimeComponent do
|
|||
end
|
||||
|
||||
defp kubectl_warning() do
|
||||
if System.find_executable("kubectl") == nil || true do
|
||||
if System.find_executable("kubectl") == nil do
|
||||
warning = "Could not find kubectl in PATH. Make sure to install it and add it to PATH."
|
||||
|
||||
if Livebook.Config.app?() || true do
|
||||
if Livebook.Config.app?() do
|
||||
windows? = match?({:win32, _}, :os.type())
|
||||
|
||||
{path, command} =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue