Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait for pod ready if created by TestClient #209

Open
YiannisGkoufas opened this issue Jan 20, 2021 · 0 comments
Open

Wait for pod ready if created by TestClient #209

YiannisGkoufas opened this issue Jan 20, 2021 · 0 comments

Comments

@YiannisGkoufas
Copy link

Hi!

Was wondering how I can wait for a pod to be ready if it's created by TestClient:

def test_one(kube: client.TestClient):
    pod = kube.load_pod("./tests/alpine.yaml")
    kube.create(pod)

Is there an alternative to time.sleep and periodically check? Or I should just use a deployment instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant