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

Use the webhook server StartedChecker() for /readyz #862

Merged
merged 1 commit into from
Mar 25, 2022

Conversation

kieron-dev
Copy link
Contributor

Is there a related GitHub Issue?

#861

What is this change about?

We are currently using the default /readyz check which returns true immediately. controller-runtime provides a built-in ready check for webhook servers, so this PR uses that instead.

This also adds a wait for the deployment to be ready in the deploy-on-kind script, ensuring all webhooks and controllers are ready.

This should remove the flakes we've seen in e2es where creating the default cfdomain in the before suite fails because the webhook isn't ready yet.

Does this PR introduce a breaking change?

No

Acceptance Steps

deploy-on-kind should wait a while for the controllers deployment to be ready. And after that we should see no errors about webhooks refusing requests.

@kieron-dev kieron-dev force-pushed the issues/861-readyz-check branch 2 times, most recently from 5c5ae65 to b17d414 Compare March 25, 2022 13:11
And wait for the deployment to be ready in deploy-on-kind script

Issue: #861
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

Successfully merging this pull request may close these issues.

None yet

2 participants