Skip to content

Commit 919bf6f

Browse files
committed
Use currentObject instead of desired to calculate lookupMetaPatch
1 parent 4236369 commit 919bf6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patch/patch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (p *PatchMaker) Calculate(currentObject, modifiedObject runtime.Object, opt
7575

7676
switch currentObject.(type) {
7777
default:
78-
lookupPatchMeta, err := strategicpatch.NewPatchMetaFromStruct(modifiedObject)
78+
lookupPatchMeta, err := strategicpatch.NewPatchMetaFromStruct(currentObject)
7979
if err != nil {
8080
return nil, emperror.WrapWith(err, "Failed to lookup patch meta", "current object", currentObject)
8181
}

0 commit comments

Comments
 (0)