@@ -46,14 +46,15 @@ type DynamicReadinessTracker struct {
4646 timeout time.Duration
4747 noActivityTimeout time.Duration
4848
49- saveLogsOnlyForContainers []string
50- saveLogsByRegex * regexp.Regexp
51- saveLogsByRegexForContainers map [string ]* regexp.Regexp
52- skipLogsByRegex * regexp.Regexp
53- skipLogsByRegexForContainers map [string ]* regexp.Regexp
54- ignoreLogs bool
55- ignoreLogsForContainers []string
56- saveEvents bool
49+ saveLogsOnlyForNumberOfReplicas int
50+ saveLogsOnlyForContainers []string
51+ saveLogsByRegex * regexp.Regexp
52+ saveLogsByRegexForContainers map [string ]* regexp.Regexp
53+ skipLogsByRegex * regexp.Regexp
54+ skipLogsByRegexForContainers map [string ]* regexp.Regexp
55+ ignoreLogs bool
56+ ignoreLogsForContainers []string
57+ saveEvents bool
5758}
5859
5960func NewDynamicReadinessTracker (
@@ -112,6 +113,7 @@ func NewDynamicReadinessTracker(
112113 ParentContext : ctx ,
113114 Timeout : timeout ,
114115 LogsFromTime : captureLogsFromTime ,
116+ SaveLogsOnlyForNumberOfReplicas : opts .SaveLogsOnlyForNumberOfReplicas ,
115117 IgnoreLogs : opts .IgnoreLogs ,
116118 IgnoreReadinessProbeFailsByContainerName : ignoreReadinessProbeFailsByContainerName ,
117119 })
@@ -120,6 +122,7 @@ func NewDynamicReadinessTracker(
120122 ParentContext : ctx ,
121123 Timeout : timeout ,
122124 LogsFromTime : captureLogsFromTime ,
125+ SaveLogsOnlyForNumberOfReplicas : opts .SaveLogsOnlyForNumberOfReplicas ,
123126 IgnoreLogs : opts .IgnoreLogs ,
124127 IgnoreReadinessProbeFailsByContainerName : ignoreReadinessProbeFailsByContainerName ,
125128 })
@@ -135,6 +138,7 @@ func NewDynamicReadinessTracker(
135138 ParentContext : ctx ,
136139 Timeout : timeout ,
137140 LogsFromTime : captureLogsFromTime ,
141+ SaveLogsOnlyForNumberOfReplicas : opts .SaveLogsOnlyForNumberOfReplicas ,
138142 IgnoreLogs : opts .IgnoreLogs ,
139143 IgnoreReadinessProbeFailsByContainerName : ignoreReadinessProbeFailsByContainerName ,
140144 })
@@ -143,6 +147,7 @@ func NewDynamicReadinessTracker(
143147 ParentContext : ctx ,
144148 Timeout : timeout ,
145149 LogsFromTime : captureLogsFromTime ,
150+ SaveLogsOnlyForNumberOfReplicas : opts .SaveLogsOnlyForNumberOfReplicas ,
146151 IgnoreLogs : opts .IgnoreLogs ,
147152 IgnoreReadinessProbeFailsByContainerName : ignoreReadinessProbeFailsByContainerName ,
148153 })
@@ -181,6 +186,7 @@ type DynamicReadinessTrackerOptions struct {
181186 NoActivityTimeout time.Duration
182187 IgnoreReadinessProbeFailsByContainerName map [string ]time.Duration
183188 CaptureLogsFromTime time.Time
189+ SaveLogsOnlyForNumberOfReplicas int
184190 SaveLogsOnlyForContainers []string
185191 SaveLogsByRegex * regexp.Regexp
186192 SaveLogsByRegexForContainers map [string ]* regexp.Regexp
0 commit comments