@@ -1050,32 +1050,32 @@ func dryPatch(action testing.PatchActionImpl, tracker testing.ObjectTracker) (ru
10501050}
10511051
10521052// copyStatusFrom copies the status from old into new
1053- func copyStatusFrom (old , new runtime.Object ) error {
1053+ func copyStatusFrom (old , n runtime.Object ) error {
10541054 oldMapStringAny , err := toMapStringAny (old )
10551055 if err != nil {
10561056 return fmt .Errorf ("failed to convert old to *unstructured.Unstructured: %w" , err )
10571057 }
1058- newMapStringAny , err := toMapStringAny (new )
1058+ newMapStringAny , err := toMapStringAny (n )
10591059 if err != nil {
10601060 return fmt .Errorf ("failed to convert new to *unststructured.Unstructured: %w" , err )
10611061 }
10621062
10631063 newMapStringAny ["status" ] = oldMapStringAny ["status" ]
10641064
1065- if err := fromMapStringAny (newMapStringAny , new ); err != nil {
1065+ if err := fromMapStringAny (newMapStringAny , n ); err != nil {
10661066 return fmt .Errorf ("failed to convert back from map[string]any: %w" , err )
10671067 }
10681068
10691069 return nil
10701070}
10711071
10721072// copyFrom copies from old into new
1073- func copyFrom (old , new runtime.Object ) error {
1073+ func copyFrom (old , n runtime.Object ) error {
10741074 oldMapStringAny , err := toMapStringAny (old )
10751075 if err != nil {
10761076 return fmt .Errorf ("failed to convert old to *unstructured.Unstructured: %w" , err )
10771077 }
1078- if err := fromMapStringAny (oldMapStringAny , new ); err != nil {
1078+ if err := fromMapStringAny (oldMapStringAny , n ); err != nil {
10791079 return fmt .Errorf ("failed to convert back from map[string]any: %w" , err )
10801080 }
10811081
0 commit comments