-
Notifications
You must be signed in to change notification settings - Fork 1k
Enhancement: adjust the readinessProbe to wait webhook-server to be ready #1611
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
Conversation
|
Chart/manifest diff looks fine to me. I'm less familiar with the webook logic, if someone else can verify this is OK then I think it's good to go. |
|
@panpan0000 thanks for the PR!
|
|
Thanks @fedepaol . I've update the commit message as you suggested. But I'm newbie for invoke, I met problem with I guess maybe tool version compatible issue. I will have to manually run below which I think equals to my tool chain version.. But a lot of changes show up , I will take another look. |
|
I think I've addressed the second controller-gen problem. I have to re-compile This takes the newbie contribution a bit hard. maybe we should note it somewhere like contributor guide docs. |
Yup, or we should update controller-gen to a newer version and provide a handy way to get it. I'll file an issue for that, and thanks for the feedback! |
readinessProbe should wait webhook-server to be ready. Currently , the readiness of conttroller uses `/metrics`, which will be ready sooner whenpod starts, but another important webhook-service will be slower. So `helm --wait` should wait critical condition of web-hook service ready. Otherwise, apply CR right after helm install finishes, errors will show up: ``` failed to call webhook: Post "https://metallb-webhook-service.metallb-system.svc:443/validate-metallb-io-v1beta1-ipaddresspool?timeout=10s": dial tcp 100.67.81.84:443: connect: connection refused ```
|
github action still fails the my local running of After digging into after I upgrade my so my PR has been updated (git push -f) with final successful run of |
|
Way is not easy... but at least it responses 200 HTTP code. So I added second commit : 9b24f45 I know it's not elegant, because when the readinessProbe path may change if v1beta1 bumps to v1. But seems it's the only solution out ? |
webhook path "/" will be HTTP code 404,
kubernetes treat it as not ready.
while API like "/validate-metallb-io-v1beta1-addresspool" without body
shows
```
{"response":{"uid":"","allowed":false,"status":{"metadata":{},"message":"contentType=,
expected application/json","code":400}}}
```
but at least it responses 200 HTTP code.
|
Hi, Can someone help me to approve the workflow to trigger test again. Thanks in advanced! |
|
Thanks! |
|
Thanks @fedepaol |
To address issue #1610