log: use since seconds instead of host time
@@ -111,12 +111,11 @@ func (a *LogAggregator) streamLogs(client corev1.CoreV1Interface, pod *v1.Pod) e
logrus.Infof("Stream logs from pod: %s container: %s", pod.Name, container.Name)
+ sinceSeconds := int64(time.Since(a.startTime))
req := pods.GetLogs(pod.Name, &v1.PodLogOptions{
Follow: true,
Container: container.Name,
- SinceTime: &meta_v1.Time{
- Time: a.startTime,
- },
+ SinceSeconds: &sinceSeconds,
})
rc, err := req.Stream()
