markAsReady marks the reconciliation as succeeded inside the resource
( ctx context.Context, cli client.Client, resource markableAsReady, )
| 146 | |
| 147 | // markAsReady marks the reconciliation as succeeded inside the resource |
| 148 | func markAsReady( |
| 149 | ctx context.Context, |
| 150 | cli client.Client, |
| 151 | resource markableAsReady, |
| 152 | ) error { |
| 153 | resource.SetAsReady() |
| 154 | return cli.Status().Update(ctx, resource) |
| 155 | } |
| 156 | |
| 157 | // clusterScopedResource is a resource bound to a Cluster through a local |
| 158 | // object reference. |