GetServiceAccountList gathers the current list of jobs in a namespace
( ctx context.Context, crudClient client.Client, namespace string, )
| 360 | |
| 361 | // GetServiceAccountList gathers the current list of jobs in a namespace |
| 362 | func GetServiceAccountList( |
| 363 | ctx context.Context, |
| 364 | crudClient client.Client, |
| 365 | namespace string, |
| 366 | ) (*corev1.ServiceAccountList, error) { |
| 367 | serviceAccountList := &corev1.ServiceAccountList{} |
| 368 | err := crudClient.List( |
| 369 | ctx, serviceAccountList, client.InNamespace(namespace), |
| 370 | ) |
| 371 | return serviceAccountList, err |
| 372 | } |
| 373 | |
| 374 | // GetEventList gathers the current list of events in a namespace |
| 375 | func GetEventList( |
no test coverage detected