--since flag added

This commit is contained in:
Matias Manavella
2020-10-21 09:59:10 -03:00
parent 7186b75f7e
commit 883abacaf8

View File

@@ -126,7 +126,7 @@ func getPodLogs(ctx context.Context, client *kubernetes.Clientset, pod corev1.Po
sinceTime := metav1.NewTime(t)
podLogOpts.SinceTime = &sinceTime
} else if limits != nil && limits.MaxAge != "" {
} else if limits != nil && (limits.MaxAge != "" || limits.Since != "") {
if limits.Since != "" {
limits.MaxAge = limits.Since
}