-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Check all container's status when calculating revision ContainerHealthy condition #14744
Check all container's status when calculating revision ContainerHealthy condition #14744
Conversation
Hi @seongpyoHong. Thanks for your PR. I'm waiting for a knative 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #14744 +/- ##
==========================================
+ Coverage 84.08% 84.13% +0.05%
==========================================
Files 213 213
Lines 16687 16687
==========================================
+ Hits 14031 14040 +9
+ Misses 2303 2299 -4
+ Partials 353 348 -5 ☔ View full report in Codecov by Sentry. |
/hold I want to fix #14660 prior |
Still holding for now see: #14567 (comment) A serving point release came out two weeks ago - that might have fixed the original 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.
It also looks like reconciling the PodAutoscaler will mask the container failures
You'll want to update resUnavailable
here to also be true if the container isn't healthy
resUnavailable := rs.GetCondition(RevisionConditionResourcesAvailable).IsFalse() |
go.mod
Outdated
@@ -34,7 +34,7 @@ require ( | |||
k8s.io/utils v0.0.0-20230209194617-a36077c30491 | |||
knative.dev/caching v0.0.0-20231219125158-cb270b3a43b8 | |||
knative.dev/hack v0.0.0-20231201014241-7030d5bf584d | |||
knative.dev/networking v0.0.0-20231218143655-3f2ee2a60c6d | |||
knative.dev/networking v0.0.0-20231219131858-8c7897c8b9a0 |
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.
can you drop these go.mod changes from your PR
@@ -106,7 +106,7 @@ func (c *Reconciler) reconcileDeployment(ctx context.Context, rev *v1.Revision) | |||
} | |||
|
|||
for _, status := range pod.Status.ContainerStatuses { | |||
if status.Name == rev.Spec.GetContainer().Name { | |||
if status.Name != resources.QueueContainerName { |
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.
You'll need to adjust the break
on line 123
. Otherwise if the failing sidecar container is second in the containerStatuses list it won't fail.
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.
I think we don't need to use break
anymore, but I changed the position of break
for fast fail.
The other fix didn't address the issue this PR addresses /hold cancel |
/ok-to-test |
4a9adae
to
9bc98bf
Compare
@dprotaso Sorry for the late reply. I've fixed and rebased it to reflect your feedback. |
@seongpyoHong thanks for the changes /lgtm Are you able to follow up by adding a unit test or an e2e test? |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dprotaso, seongpyoHong 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 |
Sure, I will also add the unit test and e2e test. |
Fixes #14567
Release Note