@@ -190,8 +190,8 @@ func DeleteAppliedResources(
190190 Namespace (resource .Namespace ).
191191 Get (ctx , resource .Name , metav1.GetOptions {})
192192 if errors .IsNotFound (err ) {
193- logger .Info ("Resource is removed Successfully " ,
194- "gvr" , gvr , "resourceNamespace" , resource .Namespace , "resourceName" , resource .Name )
193+ logger .Info ("Resource is removed successfully " ,
194+ "gvr" , gvr . String () , "resourceNamespace" , resource .Namespace , "resourceName" , resource .Name )
195195 continue
196196 }
197197
@@ -258,7 +258,7 @@ func DeleteAppliedResources(
258258
259259 resourcesPendingFinalization = append (resourcesPendingFinalization , resource )
260260 logger .Info ("Deleted resource" ,
261- "gvr" , gvr , "resourceNamespace" , resource .Namespace , "resourceName" , resource .Name , "reason" , reason )
261+ "gvr" , gvr . String () , "resourceNamespace" , resource .Namespace , "resourceName" , resource .Name , "reason" , reason )
262262 }
263263
264264 return resourcesPendingFinalization , errs
@@ -437,7 +437,7 @@ func ApplyOwnerReferences(ctx context.Context, dynamicClient dynamic.Interface,
437437 }
438438
439439 logger .V (2 ).Info ("Patching resource" ,
440- "gvr" , gvr , "resourceNamespace" , accessor .GetNamespace (), "resourceName" , accessor .GetName (), "patch" , string (patchData ))
440+ "gvr" , gvr . String () , "resourceNamespace" , accessor .GetNamespace (), "resourceName" , accessor .GetName (), "patch" , string (patchData ))
441441 _ , err = dynamicClient .Resource (gvr ).Namespace (accessor .GetNamespace ()).Patch (ctx , accessor .GetName (), types .MergePatchType , patchData , metav1.PatchOptions {})
442442 return err
443443}
0 commit comments