markAsUnknown marks the reconciliation as failed and logs the corresponding error
( ctx context.Context, cli client.Client, resource markableAsUnknown, err error, )
| 77 | |
| 78 | // markAsUnknown marks the reconciliation as failed and logs the corresponding error |
| 79 | func markAsUnknown( |
| 80 | ctx context.Context, |
| 81 | cli client.Client, |
| 82 | resource markableAsUnknown, |
| 83 | err error, |
| 84 | ) error { |
| 85 | resource.SetAsUnknown(err) |
| 86 | return cli.Status().Update(ctx, resource) |
| 87 | } |
| 88 | |
| 89 | type replicaTransitionAware interface { |
| 90 | markableAsUnknown |
no test coverage detected