Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use Patch to update .Status.CreatedAt in CreateOrUpdateMantleBackup rpc
In CreateOrUpdateMantleBackup rpc, we first need to create (or update) a MantleBackup and then update its status. This "update-after-create" process is likely to fail due to "the object has been modified" error, unless the cache for kubeapi refreshes quickly after the creation. This commit fixes this problem by using Patch instead of Update for the status. Signed-off-by: Ryotaro Banno <[email protected]>
- Loading branch information