Skip to content

Commit

Permalink
Merge pull request #3 from lovellfelix/hotfix-invalid-jobname
Browse files Browse the repository at this point in the history
hotfix: Invalid job name during restart process
  • Loading branch information
MnrGreg authored May 25, 2021
2 parents a50be91 + f2f3baf commit 52ae697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node-restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ for node in $nodes; do
fi

echo -e "${blue}Initiating node restart job on $node...${nocolor}"
pod="node-restart-$(env LC_CTYPE=C tr -dc a-z0-9 < /dev/urandom | head -c 5)"
pod="node-restart-$(env LC_CTYPE=C LC_ALL=C tr -dc a-z0-9 < /dev/urandom | head -c 5)"
if $dryrun; then
echo "kubectl create job $pod"
else
Expand Down

0 comments on commit 52ae697

Please sign in to comment.