-
Notifications
You must be signed in to change notification settings - Fork 41.8k
add unittest for kubelet isInitContainerFailed func #104651
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
|
Hi @yxxhero. Thanks for your PR. I'm waiting for a kubernetes 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. |
|
/sig node |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: yxxhero The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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.
good job@yxxhero,s Could you add some abnormal tests also?
For example:
kubecontainer.Status = ContainerStateUnknown
ExitCode: 1
kubecontainer.Status = ContainerStateUnknown
ExitCode: 0
/cc @249043822
|
/ok-to-test |
|
/triage accepted |
ok, I will add it. |
form source code: I think the cases not need. what do you think of? @yangjunmyfm192085 |
That's right, but I hope these test cases could keep correctness of the code . and It's really good now. |
|
/lgtm |
|
looks good to me. |
|
@mrunalp Please review, Thanks very much. |
|
@mrunalp Please review, Thanks very much. |
|
@mrunalp ping |
|
@mrunalp any update? Thanks very much. |
|
I'm still unsure we should test internal helpers, but it seems positive consensus already formed for this change. |
Signed-off-by: yxxhero <aiopsclub@163.com>
dc8f931 to
acee151
Compare
|
@fromanirh Thanks very much. |
|
/lgtm |
|
/test pull-kubernetes-e2e-gce-ubuntu-containerd |
|
@yxxhero: PR needs rebase. 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. |
Signed-off-by: yxxhero aiopsclub@163.com
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
add unittest for kubelet isInitContainerFailed func
Which issue(s) this PR fixes:
None
Special notes for your reviewer:
None
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: