Skip to content

Commit

Permalink
Error: unknown command "ko" for "kubectl"
Browse files Browse the repository at this point in the history
For issue #652
  • Loading branch information
Yan Wei committed Jan 21, 2021
1 parent ad88f15 commit e13448a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2186,6 +2186,14 @@ chmod +x /usr/local/bin/kubectl-ko
echo "-------------------------------"
echo ""

echo $PATH | grep '/usr/local/bin'
if [ $? != 0 ]; then
echo "Tips:Please join the /usr/local/bin to your PATH. Temporarily, we do it for this execution."
export PATH=/usr/local/bin:$PATH
echo "-------------------------------"
echo ""
fi

echo "[Step 6] Run network diagnose"
kubectl ko diagnose all

Expand Down

0 comments on commit e13448a

Please sign in to comment.