Skip to content

Commit

Permalink
Merge pull request #2487 from mflendrich/wait-for-object-creation
Browse files Browse the repository at this point in the history
Reimplement `wait-for-object-creation` with `kubectl wait`
  • Loading branch information
scylla-operator-bot[bot] authored Feb 19, 2025
2 parents b459866 + c668063 commit a6e6bbf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hack/lib/kube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ function kubectl_create {
}

function wait-for-object-creation {
for i in {1..30}; do
{ kubectl -n "${1}" get "${2}" && break; } || sleep 1
done
kubectl wait --timeout=60s --for=create -n "${1}" "${2}"
}

# $1 - namespace
Expand Down

0 comments on commit a6e6bbf

Please sign in to comment.