Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions installer/common/file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ def get_kubectl_directory() -> str:
return os.path.join(d, "kubectl")
else:
full_path = shutil.which("kubectl")
if full_path is None:
raise FileNotFoundError(
"kubectl not found in PATH. Please install kubectl or ensure it is available on your system PATH."
)
return os.path.dirname(full_path)


Expand Down