Skip to content

Commit 7e0df1b

Browse files
committed
fixed missing mergeoptions for CombineFromVariablesPatch
Signed-off-by: Gilbert Scheiblhofer <gilbert.scheiblhofer@gmx.at>
1 parent 63147b6 commit 7e0df1b

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)