Add ContainersReady condition into Pod Status#64646
Add ContainersReady condition into Pod Status#64646k8s-github-robot merged 3 commits intokubernetes:masterfrom
Conversation
dixudx
left a comment
There was a problem hiding this comment.
Mostly lgtm. Some nits.
Moreover, lastTransitionTime is missing for new PodConditionType ContainersReady. You have to
add updateLastTransitionTime(&status, &oldStatus, v1.ContainersReady) in method updateStatusInternal (pkg/kubelet/status/status_manager.go).
pkg/api/v1/pod/util.go
Outdated
There was a problem hiding this comment.
combine L266 with L269? So we can have one return -1, nil.
pkg/kubelet/kubelet_pods.go
Outdated
There was a problem hiding this comment.
Better add a comment for this.
Like, "preserve non-system condition types". WDYT?
pkg/api/v1/pod/util.go
Outdated
There was a problem hiding this comment.
s/and returns that./and returns the index of the condition and the condition.
pkg/api/v1/pod/util.go
Outdated
There was a problem hiding this comment.
s/Returns nil and -1/Returns -1 and nil
Remove , and the index of the located condition.
pkg/apis/core/types.go
Outdated
There was a problem hiding this comment.
nit: end the comment with a period (.)
pkg/apis/core/types.go
Outdated
There was a problem hiding this comment.
Not sure why the add ReadinessGates in pod spec commit is in this PR...
There was a problem hiding this comment.
Because it was not merged at the time...
c4158c0 to
2d8695b
Compare
2d8695b to
3d868b8
Compare
|
/assign thockin for approval |
|
@freehan: GitHub didn't allow me to assign the following users: for, approval. Note that only kubernetes members and repo collaborators can be assigned. DetailsIn 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. |
yujuhong
left a comment
There was a problem hiding this comment.
Will review after the dependency is merged. Adding this to prevent the PR from merging.
|
So, is this PR required if the other PodReady PRs merge? You need some more labels here: /sig network |
3d868b8 to
370268f
Compare
Yes. This PR completes the proposal. |
|
Hey folks, from the comments, it sounds like this is desired for 1.11, but it's not labeled correctly for that to happen, and there are additional labels needed if it doesn't merge today before the beginning of code freeze. Please ensure the labels for the milestone and urgency are set correctly. |
|
Going to bump to critical-urgent based on @freehan comment /priority critical-urgent |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: freehan, thockin, yujuhong The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
[MILESTONENOTIFIER] Milestone Pull Request: Up-to-date for process Pull Request Labels
|
|
/test all [submit-queue is verifying that this PR is safe to merge] |
|
Automatic merge from submit-queue (batch tested with PRs 63717, 64646, 64792, 64784, 64800). If you want to cherry-pick this change to another branch, please follow the instructions here. |
|
@freehan: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions 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. |
|
Hello there! @freehan I'm Zach Arnold working on Docs for the 1.11 release. This PR was identified as one needing some documentation in the https://github.com/kubernetes/website repo around your contributions (thanks by the way!) When you have some time, could you please modify/add/remove the relevant content that needs changing in our documentation repo? Thanks! Please let me or my colleague Misty know (@zparnold/@misty on K8s Slack) if you need any assistance with the documentation. |
|
@freehan Please note that I've created a PR for this in the website repo: kubernetes/website#9197. Please let me know if there'is any usage-related info that I should be aware of. Thus far I've added it to the list of possible Pod statuses but would love to add more than that. |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md. add missing LastTransitionTime of ContainerReady condition **What this PR does / why we need it**: add missing LastTransitionTime of ContainerReady condition **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: xref #64646 **Special notes for your reviewer**: /cc freehan yujuhong **Release note**: ```release-note add missing LastTransitionTime of ContainerReady condition ```
|
we hava pod container ready condition,i don't know, why we need ContainersReady? |
Last 3 commits are new
Follow up PR of: #64057 and #64344
Have a single PR for adding ContainersReady per #64344 (comment)
/assign yujuhong for review
/assign thockin for the tiny API change