GetEventList gathers the current list of events in a namespace
( ctx context.Context, crudClient client.Client, namespace string, )
| 373 | |
| 374 | // GetEventList gathers the current list of events in a namespace |
| 375 | func GetEventList( |
| 376 | ctx context.Context, |
| 377 | crudClient client.Client, |
| 378 | namespace string, |
| 379 | ) (*eventsv1.EventList, error) { |
| 380 | eventList := &eventsv1.EventList{} |
| 381 | err := crudClient.List( |
| 382 | ctx, eventList, client.InNamespace(namespace), |
| 383 | ) |
| 384 | return eventList, err |
| 385 | } |
| 386 | |
| 387 | // GetScheduledBackupList gathers the current list of scheduledBackup in namespace |
| 388 | func GetScheduledBackupList( |
no test coverage detected