Skip to content

Commit 8849d93

Browse files
committed
CARRY 5f1c7ae: Stamp fake client apply reuqests with name from action
On-behalf-of: @SAP christoph.mewes@sap.com
1 parent ef5a661 commit 8849d93

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

third_party/k8s.io/client-go/testing/fixture.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ func (o scopedObjectTrackerReact) Apply(action PatchActionImpl) (runtime.Object,
264264
if err := yaml.Unmarshal(action.GetPatch(), &patchObj.Object); err != nil {
265265
return nil, err
266266
}
267+
patchObj.SetName(action.GetName())
267268
err := o.tracker.Apply(gvr, patchObj, ns, action.PatchOptions)
268269
if err != nil {
269270
return nil, err

0 commit comments

Comments
 (0)