markAsFailed marks the reconciliation as failed and logs the corresponding error
( ctx context.Context, cli client.Client, resource markableAsFailed, err error, )
| 61 | |
| 62 | // markAsFailed marks the reconciliation as failed and logs the corresponding error |
| 63 | func markAsFailed( |
| 64 | ctx context.Context, |
| 65 | cli client.Client, |
| 66 | resource markableAsFailed, |
| 67 | err error, |
| 68 | ) error { |
| 69 | resource.SetAsFailed(err) |
| 70 | return cli.Status().Update(ctx, resource) |
| 71 | } |
| 72 | |
| 73 | type markableAsUnknown interface { |
| 74 | client.Object |
no test coverage detected