diff --git a/pkg/trackers/dyntracker/dynamic_readiness_tracker.go b/pkg/trackers/dyntracker/dynamic_readiness_tracker.go index 34c9356..413b581 100644 --- a/pkg/trackers/dyntracker/dynamic_readiness_tracker.go +++ b/pkg/trackers/dyntracker/dynamic_readiness_tracker.go @@ -64,7 +64,13 @@ func NewDynamicReadinessTracker( opts DynamicReadinessTrackerOptions, ) (*DynamicReadinessTracker, error) { timeout := opts.Timeout - captureLogsFromTime := opts.CaptureLogsFromTime + + var captureLogsFromTime time.Time + if opts.CaptureLogsFromTime.IsZero() { + captureLogsFromTime = time.Now() + } else { + captureLogsFromTime = opts.CaptureLogsFromTime + } var noActivityTimeout time.Duration if opts.NoActivityTimeout != 0 {