Skip to content

Commit dcede18

Browse files
committed
CARRY 5f1c7ae: Stamp fake client apply reuqests with name from action
On-behalf-of: @SAP [email protected]
1 parent 5fd3cd9 commit dcede18

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
@@ -268,6 +268,7 @@ func (o scopedObjectTrackerReact) Apply(action PatchActionImpl) (runtime.Object,
268268
if err := yaml.Unmarshal(action.GetPatch(), &patchObj.Object); err != nil {
269269
return nil, err
270270
}
271+
patchObj.SetName(action.GetName())
271272
err := o.tracker.Apply(gvr, patchObj, ns, action.PatchOptions)
272273
if err != nil {
273274
return nil, err

0 commit comments

Comments
 (0)