Closed ferenc-hechler closed 3 years ago
There is a bug, if there are more than one images in a request. The flag "needs_patch" is overwritten with the result of the last swap(). This means, that no mutations for changed images are returned, if the last image is not changed. This can be fixed by replacing every occurrence of:
needs_patch = swap_image(...)
with
needs_patch = swap_image(...) or needs_patch
Important: the swap_image(...) call must on the left side of "or", otherwise the boolean shortcut would not execute the swap() call.
Allow configuring mapping entries which are handled as "exact" mapping. Before the normal mapping logic is applied, it is checked, whether for this image an exact mapping exists. If so, then the value for this mapping is used as new-image.
What type of PR is this?
/kind feature
What this PR does / why we need it:
See issue #51
Which issue(s) this PR fixes:
Fixes #51
Special notes for your reviewer:
This PR replaces the old PR #52
Does this PR introduce a user-facing change?:
Additional documentation e.g., usage docs, etc.: