Action The action duration should be short. if it fails, it will be reconciled by the OpsRequest controller. Do not patch OpsRequest status in this function with k8s client, just modify the status of ops. The opsRequest controller will patch it to the k8s apiServer.
(reqCtx intctrlutil.RequestCtx, cli client.Client, opsResource *OpsResource)
| 36 | // Do not patch OpsRequest status in this function with k8s client, just modify the status of ops. |
| 37 | // The opsRequest controller will patch it to the k8s apiServer. |
| 38 | Action(reqCtx intctrlutil.RequestCtx, cli client.Client, opsResource *OpsResource) error |
| 39 | |
| 40 | // ReconcileAction loops till the operation is completed. |
| 41 | // return OpsRequest.status.phase and requeueAfter time. |
no outgoing calls
no test coverage detected