ResultV2 update result contains Result (original), which provides information in terms of files, objects and images, and also includes file changes which provides information in terms of files, objects and changes. The changes contain the old value, new value and the setter that was involved in the update.
ResultV2 can be used to obtain detailed information about updates in terms of the previous value and the new value, which could be beneficial in commit messages to summarize the granular changes.
ResultV2 is introduced in a backwards compatible way. The existing behavior is not changed. It will only be used by the refactored controller in the future. Introducing it in the main branch to keep the refactored controller changes small.
ResultV2
update result containsResult
(original), which provides information in terms of files, objects and images, and also includes file changes which provides information in terms of files, objects and changes. The changes contain the old value, new value and the setter that was involved in the update.ResultV2
can be used to obtain detailed information about updates in terms of the previous value and the new value, which could be beneficial in commit messages to summarize the granular changes.ResultV2
is introduced in a backwards compatible way. The existing behavior is not changed. It will only be used by the refactored controller in the future. Introducing it in the main branch to keep the refactored controller changes small.Related to https://github.com/fluxcd/image-automation-controller/issues/437