Stamp fake client apply reuqests with name from action

Kubernetes-commit: 5f1c7ae6346f9028fef77b76e5555aa37f1fc39a
This commit is contained in:
Joe Betz
2024-08-15 21:24:28 -04:00
committed by Kubernetes Publisher
parent c7951255f6
commit 908d899011
2 changed files with 22 additions and 0 deletions

View File

@@ -214,6 +214,7 @@ func (o objectTrackerReact) Apply(action PatchActionImpl) (runtime.Object, error
if err := yaml.Unmarshal(action.GetPatch(), &patchObj.Object); err != nil {
return nil, err
}
patchObj.SetName(action.GetName())
err := o.tracker.Apply(gvr, patchObj, ns, action.PatchOptions)
if err != nil {
return nil, err