-
Notifications
You must be signed in to change notification settings - Fork 561
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 webhook readiness and healthy #2685
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Welcome @geetikabatra! |
Hi @geetikabatra. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@geetikabatra looks like you haven't signed the CNCF CLA? /assign @sedefsavas |
@randomvariable, I had the wrong email set in my config. If @sedefsavas wants to take it forward. I will close this PR. |
main.go
Outdated
setupLog.Error(err, "unable to create ready check") | ||
os.Exit(1) | ||
} | ||
|
||
if err := mgr.AddHealthzCheck("ping", healthz.Ping); err != nil { | ||
if err := mgr.AddReadyzCheck("webhook", mgr.GetWebhookServer().StartedChecker()); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if err := mgr.AddReadyzCheck("webhook", mgr.GetWebhookServer().StartedChecker()); err != nil { | |
if err := mgr.AddHealthzCheck("webhook", mgr.GetWebhookServer().StartedChecker()); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbueringer Thanks for the review. But unfortunately closing it as @sedefsavas was already working on it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sbueringer Updated the suggested change. Please take a look. Thanks in advance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@geetikabatra Looks good thx. I think you have to change your commit message: #2685 (comment) (and drop the link to the issue)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
@geetikabatra i meant @sedefsavas to look at the PR as we did previously have this and took it out and I wasn't directly involved in that decision. |
@randomvariable ohh okay! I will fix it as per @sbueringer 's comments. |
@geetikabatra We should do the same for EKS. See: #2603 |
@sedefsavas EKS has been moved out of the experimental feature. So, the change in EKS is not necessary now, I think. |
Right! Forgot about it. /ok-to-test |
@geetikabatra
from the commit message. In general, Prow will fail commit messages that do In addition, please review the errors:
|
This change adds a ready and health check on the webhook server. Signed-off-by: Geetika Batra geetika.b@vmware.com
Done! |
Thx! |
/area cleanup |
@randomvariable: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: randomvariable 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 |
This change adds a ready and health check on the webhook server.
Release note:
Signed-off-by: Geetika Batra geetika.b@vmware.com
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Checklist:
Release note: