Skip to content

Commit

Permalink
fix error no current context
Browse files Browse the repository at this point in the history
  • Loading branch information
topahadzi committed Oct 27, 2023
1 parent f175029 commit 93e0541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [ -z "$NODE_NAMES" ]; then
fi

for NODE_NAME in $NODE_NAMES; do
kubectl config get-contexts
kubectl config set-context default --cluster kubernetes --user=service-account
kubectl config use-context default
echo "Running command on node: $NODE_NAME"
kubectl node_shell $NODE_NAME -- reboot
Expand Down

0 comments on commit 93e0541

Please sign in to comment.