File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -183,11 +183,14 @@ func Run(cmd *cobra.Command, args []string) (returnErr error) {
183
183
184
184
// start the data gatherers and wait for the cache sync
185
185
group .Go (func () error {
186
+ // Most implementations of `DataGatherer.Run` return immediately.
187
+ // Only the Dynamic DataGatherer starts an informer which runs and
188
+ // blocks until the supplied channel is closed.
189
+ // For this reason, we must allow these errgroup Go routines to exit
190
+ // without cancelling the other Go routines in the group.
186
191
if err := newDg .Run (gctx .Done ()); err != nil {
187
192
return fmt .Errorf ("failed to start %q data gatherer %q: %v" , kind , dgConfig .Name , err )
188
193
}
189
- // The agent must stop if any of the data gatherers stops
190
- cancel ()
191
194
return nil
192
195
})
193
196
You can’t perform that action at this time.
0 commit comments