Skip to content

Commit c3d4059

Browse files
authored
Merge pull request #141 from gschei/fix-missing-mergeoption
fixed missing mergeoptions for CombineFromVariablesPatch
2 parents 58818a7 + 7e0df1b commit c3d4059

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

patches.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,12 @@ func ApplyCombineFromVariablesPatch(p PatchInterface, from, to runtime.Object) e
189189
return err
190190
}
191191

192-
return errors.Wrap(patchFieldValueToObject(p.GetToFieldPath(), out, to, nil), "cannot patch to object")
192+
mo, err := toMergeOption(p)
193+
if err != nil {
194+
return err
195+
}
196+
197+
return errors.Wrap(patchFieldValueToObject(p.GetToFieldPath(), out, to, mo), "cannot patch to object")
193198
}
194199

195200
// ApplyEnvironmentPatch applies a patch to or from the environment. Patches to

0 commit comments

Comments
 (0)