-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Structured Logging migration: modify volume and container part logs o… #98850
Conversation
Hi @yangjunmyfm192085. 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. |
/cc @serathius |
ba4392f
to
48951f3
Compare
I have fixed all @mrunalp. |
/test pull-kubernetes-e2e-kind |
/test pull-kubernetes-conformance-image-test |
/test pull-kubernetes-e2e-gce-csi-serial |
/test pull-kubernetes-conformance-image-test |
pkg/kubelet/runonce.go
Outdated
@@ -142,7 +142,7 @@ func (kl *Kubelet) runPod(pod *v1.Pod, retryDelay time.Duration) error { | |||
return fmt.Errorf("timeout error: pod %q containers not running after %d retries", format.Pod(pod), runOnceMaxRetries) | |||
} | |||
// TODO(proppy): health checking would be better than waiting + checking the state at the next iteration. | |||
klog.Infof("pod %q containers synced, waiting for %v", format.Pod(pod), delay) | |||
klog.InfoS("Pod's containers synced, waiting", "pod", klog.KObj(pod), "waitingTime", delay) |
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.
Please update waitingTime
to duration
de3b0e8
to
ca0f917
Compare
…f kubelet. Signed-off-by: JunYang <yang.jun22@zte.com.cn>
ca0f917
to
01a4e4f
Compare
I have fixed them @ehashman |
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.
/lgtm
@yangjunmyfm192085: 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. 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. |
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mrunalp, yangjunmyfm192085 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 |
…f kubelet.
Signed-off-by: JunYang yang.jun22@zte.com.cn
What type of PR is this?
/kind feature
What this PR does / why we need it:
Structured Logging migration: modify volume and container part logs of kubelet.
xref:
https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/1602-structured-logging
https://github.com/kubernetes/community/blob/master/contributors/devel/sig-instrumentation/migration-to-structured-logging.md
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
part of kubernetes/enhancements#1602
As it is related to log, change the log here to structured log.
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: