List retrieves a list of objects
( ctx context.Context, crudClient client.Client, objectList client.ObjectList, opts ...client.ListOption, )
| 78 | |
| 79 | // List retrieves a list of objects |
| 80 | func List( |
| 81 | ctx context.Context, |
| 82 | crudClient client.Client, |
| 83 | objectList client.ObjectList, |
| 84 | opts ...client.ListOption, |
| 85 | ) error { |
| 86 | err := retry.New( |
| 87 | retry.Delay(PollingTime*time.Second), |
| 88 | retry.Attempts(RetryAttempts), |
| 89 | retry.DelayType(retry.FixedDelay)). |
| 90 | Do( |
| 91 | func() error { |
| 92 | err := crudClient.List(ctx, objectList, opts...) |
| 93 | if err != nil { |
| 94 | return err |
| 95 | } |
| 96 | return nil |
| 97 | }, |
| 98 | ) |
| 99 | return err |
| 100 | } |
| 101 | |
| 102 | // Get retrieves an object for the given object key from the Kubernetes Cluster |
| 103 | func Get( |
no test coverage detected