Skip to content

Commit

Permalink
feat(control-plane): if ip not in VIP mode, sed control plane EP to h…
Browse files Browse the repository at this point in the history
…ostname
  • Loading branch information
gpillon committed Nov 22, 2024
1 parent 186dd0f commit e499942
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions overrides/bootstrap-control/setup-k8s-ph3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ function setup_for_keepalived() {
# Check if the configuration is static and edit the Ignition file accordingly
if jq -e '.node.ha.type' "$K4ALL_CONFIG_FILE" | grep -q "keepalived"; then
setup_for_keepalived
fi

# Check if the configuration is static and edit the Ignition file accordingly
if jq -e '.node.ha.type' "$K4ALL_CONFIG_FILE" | grep -q "kubevip"; then
elif jq -e '.node.ha.type' "$K4ALL_CONFIG_FILE" | grep -q "kubevip"; then
setup_for_kubevip
else
set_control_plane_endpoint "$(hostname -f)"
fi

# Check if the block already exists and delete it
Expand Down

0 comments on commit e499942

Please sign in to comment.