fix: auto-detect kube-vip interface and tighten SSH fallback
Some checks failed
Terraform Plan / Terraform Plan (push) Has been cancelled

This commit is contained in:
2026-03-01 17:34:09 +00:00
parent 88db11292d
commit 7ec1ce92cf
2 changed files with 24 additions and 0 deletions

View File

@@ -86,6 +86,7 @@ remote() {
local quoted_cmd
local candidate
local candidates=()
local rc=0
candidates+=("$ACTIVE_SSH_USER")
for candidate in $SSH_USER_CANDIDATES; do
@@ -100,6 +101,11 @@ remote() {
ACTIVE_SSH_USER="$candidate"
return 0
fi
rc=$?
if [ "$rc" -ne 255 ]; then
return "$rc"
fi
done
echo "Remote command failed for all SSH users on $host_ip"