Skip to content

Commit

Permalink
Bugfix: do not short circuit removing deletions
Browse files Browse the repository at this point in the history
Signed-off-by: Silvio Moioli <[email protected]>
  • Loading branch information
moio committed Oct 23, 2023
1 parent 54b9ca6 commit f630ef5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/apply/desiredset_compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ func removeDeletionsFromPatch(data map[string]interface{}, field []string) bool
result := false
// list item is an object, recurse
if mapValue, ok := item.(map[string]interface{}); ok {
result = result || removeDeletionsFromPatch(mapValue, field[1:])
deletionResult := removeDeletionsFromPatch(mapValue, field[1:])
result = result || deletionResult
}
return result
}
Expand Down

0 comments on commit f630ef5

Please sign in to comment.