@@ -1050,32 +1050,32 @@ func dryPatch(action testing.PatchActionImpl, tracker testing.ObjectTracker) (ru
1050
1050
}
1051
1051
1052
1052
// copyStatusFrom copies the status from old into new
1053
- func copyStatusFrom (old , new runtime.Object ) error {
1053
+ func copyStatusFrom (old , n runtime.Object ) error {
1054
1054
oldMapStringAny , err := toMapStringAny (old )
1055
1055
if err != nil {
1056
1056
return fmt .Errorf ("failed to convert old to *unstructured.Unstructured: %w" , err )
1057
1057
}
1058
- newMapStringAny , err := toMapStringAny (new )
1058
+ newMapStringAny , err := toMapStringAny (n )
1059
1059
if err != nil {
1060
1060
return fmt .Errorf ("failed to convert new to *unststructured.Unstructured: %w" , err )
1061
1061
}
1062
1062
1063
1063
newMapStringAny ["status" ] = oldMapStringAny ["status" ]
1064
1064
1065
- if err := fromMapStringAny (newMapStringAny , new ); err != nil {
1065
+ if err := fromMapStringAny (newMapStringAny , n ); err != nil {
1066
1066
return fmt .Errorf ("failed to convert back from map[string]any: %w" , err )
1067
1067
}
1068
1068
1069
1069
return nil
1070
1070
}
1071
1071
1072
1072
// copyFrom copies from old into new
1073
- func copyFrom (old , new runtime.Object ) error {
1073
+ func copyFrom (old , n runtime.Object ) error {
1074
1074
oldMapStringAny , err := toMapStringAny (old )
1075
1075
if err != nil {
1076
1076
return fmt .Errorf ("failed to convert old to *unstructured.Unstructured: %w" , err )
1077
1077
}
1078
- if err := fromMapStringAny (oldMapStringAny , new ); err != nil {
1078
+ if err := fromMapStringAny (oldMapStringAny , n ); err != nil {
1079
1079
return fmt .Errorf ("failed to convert back from map[string]any: %w" , err )
1080
1080
}
1081
1081
0 commit comments