mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-11-17 14:19:53 +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
|
end
|
||||||
|
|
||||||
defp kubectl_warning() do
|
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."
|
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())
|
windows? = match?({:win32, _}, :os.type())
|
||||||
|
|
||||||
{path, command} =
|
{path, command} =
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue