-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use patch.SerialPatcher for updating object status
This replaces the use of the method .patchStatus with a fluxcd/pkg/runtime/patch/SerialPatcher. The aim is to make repeated patching "obvious": you always assign into pipeline.Status, and you always call `patcher.Patch(ctx, &pipeline)` to do the right thing. I've also changed the division of labour between Reconcile and status-updating helpers. Before, the helpers would do their own patching. I think it's more transparent if the helpers mutate the object status, and the Reconcile method chooses when to patch. Signed-off-by: Michael Bridgen <[email protected]>
- Loading branch information
Showing
1 changed file
with
13 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters