- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ReadLogs (0.15 sec)
-
pkg/kubelet/kuberuntime/kuberuntime_logs.go
"io" "time" v1 "k8s.io/api/core/v1" "k8s.io/cri-client/pkg/logs" "k8s.io/klog/v2" ) // ReadLogs read the container log and redirect into stdout and stderr. // Note that containerID is only needed when following the log, or else // just pass in empty string "". func (m *kubeGenericRuntimeManager) ReadLogs(ctx context.Context, path, containerID string, apiOpts *v1.PodLogOptions, stdout, stderr io.Writer) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 13:13:22 UTC 2024 - 1.2K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_container.go
value := int64(kubecontainer.MaxContainerTerminationMessageLogLines) buf, _ := circbuf.NewBuffer(kubecontainer.MaxContainerTerminationMessageLogLength) if err := m.ReadLogs(context.Background(), path, "", &v1.PodLogOptions{TailLines: &value}, buf, buf); err != nil { return fmt.Sprintf("Error on reading termination message from logs: %v", err) } return buf.String() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 54.7K bytes - Viewed (0)