Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
Signed-off-by: Tom <[email protected]>
  • Loading branch information
Flying-Tom committed Aug 26, 2024
1 parent b45632a commit a76a4a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function util::wait_pods() {
lb=$2
waittime=$3
# Wait for the pods to be ready in the given namespace with label
while : ; do
while :; do
res=$(kubectl wait --kubeconfig="$4" --context "$5" -n "${ns}" pod \
-l "${lb}" --for=condition=Ready --timeout="${waittime}s" 2>/dev/null ||true)
if [[ "${res}" == *"condition met"* ]]; then
Expand Down Expand Up @@ -340,7 +340,7 @@ metadata:
EOF

# Wait for the public IP address to become available.
while : ; do
while :; do
ip=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.'${addrName}'}}{{end}}' "$2"-control-plane)
if [[ -n "${ip}" ]]; then
#Change the kubeconfig file not to use the loopback IP
Expand Down

0 comments on commit a76a4a9

Please sign in to comment.