chore: Added pre-commit hooks

This commit is contained in:
2025-12-02 04:58:46 +01:00
parent 9353408ed6
commit 1085275c76
4 changed files with 38 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ if [ "${vip}" = "null" ]; then
fi
echo -n "Checking connection to ${bootstrap_ip}... "
# spellchecker:ignore-next-line
if nmap -Pn ${bootstrap_ip} -p 50000 | grep -q 'open'; then
echo "[Success]"
else
@@ -67,6 +68,7 @@ fi
count=0
max_retries=20
# spellchecker:ignore-next-line
while ! nmap -Pn ${vip} -p 50000 | grep -q 'open' && [ ${count} -lt ${max_retries} ]; do
if [ $count -eq 0 ]; then
echo -n "Bootstrapping Kubernetes"