Skip to content

Commit

Permalink
review: adjust code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jairoFernandez committed Oct 8, 2024
1 parent 6cba8fe commit d09d8a5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions laptop/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,13 @@ start_k3s() {
mkdir -p ~/.kube/

cp ./kubeconfig.yaml ~/.kube/config || echo "Failed to get kubeconfig"
sed -i 's/127.0.0.1/localhost/g' ~/.kube/config
export KUBECONFIG=~/.kube/config
cat ~/.kube/config

if [ -f ./kubeconfig.yaml ]; then
cp ./kubeconfig.yaml ~/.kube/config
else
echo "Failed to get kubeconfig: kubeconfig.yaml not found"
exit 1
echo "Failed to get kubeconfig: kubeconfig.yaml not found"
exit 1
fi

echo "Checking nodes..."
Expand Down

0 comments on commit d09d8a5

Please sign in to comment.