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

✨ add webhook readiness and health check #4989

Merged

Conversation

sbueringer
Copy link
Member

@sbueringer sbueringer commented Jul 21, 2021

Signed-off-by: Stefan Büringer buringerst@vmware.com

What this PR does / why we need it:
Currently the readiness of our controller deployments does not include the webhook server. I.e., the deployment is already ready even when the webhooks are not up.

So when we implement a wait for deployments ready in #4934 the current PR will help that the wait for readiness will also include the webhook server. This is crucial because otherwise there's a chance that clusterctl immediately fails when we try to deploy resources.

Note: This controller-runtime health check is only available since v0.9.3 (kubernetes-sigs/controller-runtime#1598)

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Improves the accuracy of the wait we'll implement in #4934 for #4474

Follow-up:

  • Open issues in known providers to suggest that they also add this (that's the only way to really profit from this improvement, because otherwise we cloud just fail on some provider controller webhook)

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 21, 2021
@sbueringer
Copy link
Member Author

/cc @vincepri

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 21, 2021
@CecileRobertMichon
Copy link
Contributor

/lgtm

great to see that we can do this now

cc @devigned

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 22, 2021
@devigned
Copy link
Contributor

Oh, cool! +1

Signed-off-by: Stefan Büringer buringerst@vmware.com
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 23, 2021
@sbueringer
Copy link
Member Author

Had to rebase

@CecileRobertMichon
Copy link
Contributor

/lgtm
/assign @vincepri

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 23, 2021
@fabriziopandini
Copy link
Member

Great!
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fabriziopandini

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

kashifest added a commit to Nordix/cluster-api-provider-metal3 that referenced this pull request Aug 31, 2021
Currently the readiness of our controller deployments does not include the webhook server. I.e., the deployment is already ready even when the webhooks are not up.

The current PR will help that the wait for readiness will also include the webhook server. This is crucial because otherwise there's a chance that clusterctl immediately fails when we try to deploy resources.

Follows: kubernetes-sigs/cluster-api#4989
kashifest added a commit to Nordix/metal3-ipam that referenced this pull request Aug 31, 2021
Currently the readiness of our controller deployments does not include the webhook server. I.e., the deployment is already ready even when the webhooks are not up.

The current PR will help that the wait for readiness will also include the webhook server. This is crucial because otherwise there's a chance that clusterctl immediately fails when we try to deploy resources.

Follows: kubernetes-sigs/cluster-api#4989
kashifest added a commit to Nordix/metal3-ipam that referenced this pull request Sep 1, 2021
Currently the readiness of our controller deployments does not include the webhook server. I.e., the deployment is already ready even when the webhooks are not up.

The current PR will help that the wait for readiness will also include the webhook server. This is crucial because otherwise there's a chance that clusterctl immediately fails when we try to deploy resources.

Follows: kubernetes-sigs/cluster-api#4989
kashifest added a commit to Nordix/metal3-ipam that referenced this pull request Sep 1, 2021
Currently the readiness of our controller deployments does not include the webhook server. I.e., the deployment is already ready even when the webhooks are not up.

The current PR will help that the wait for readiness will also include the webhook server. This is crucial because otherwise there's a chance that clusterctl immediately fails when we try to deploy resources.

Follows: kubernetes-sigs/cluster-api#4989
fmuyassarov pushed a commit to Nordix/cluster-api-provider-metal3 that referenced this pull request Sep 2, 2021
Currently the readiness of our controller deployments does not include the webhook server. I.e., the deployment is already ready even when the webhooks are not up.

The current PR will help that the wait for readiness will also include the webhook server. This is crucial because otherwise there's a chance that clusterctl immediately fails when we try to deploy resources.

Follows: kubernetes-sigs/cluster-api#4989
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants