@@ -777,20 +777,20 @@ func (r *BtpOperatorReconciler) deleteCreationTimestamp(us ...*unstructured.Unst
777
777
}
778
778
779
779
func (r * BtpOperatorReconciler ) applyOrUpdateResources (ctx context.Context , us []* unstructured.Unstructured ) error {
780
- logger := log .FromContext (ctx )
780
+ // logger := log.FromContext(ctx)
781
781
for _ , u := range us {
782
782
preExistingResource := & unstructured.Unstructured {}
783
783
preExistingResource .SetGroupVersionKind (u .GroupVersionKind ())
784
784
if err := r .Get (ctx , client.ObjectKey {Name : u .GetName (), Namespace : u .GetNamespace ()}, preExistingResource ); err != nil {
785
785
if ! k8serrors .IsNotFound (err ) {
786
786
return fmt .Errorf ("while trying to get %s %s: %w" , u .GetName (), u .GetKind (), err )
787
787
}
788
- logger .Info (fmt .Sprintf ("applying %s - %s" , u .GetKind (), u .GetName ()))
788
+ // logger.Info(fmt.Sprintf("applying %s - %s", u.GetKind(), u.GetName()))
789
789
if err := r .Patch (ctx , u , client .Apply , client .ForceOwnership , client .FieldOwner (operatorName )); err != nil {
790
790
return fmt .Errorf ("while applying %s %s: %w" , u .GetName (), u .GetKind (), err )
791
791
}
792
792
} else {
793
- logger .Info (fmt .Sprintf ("updating %s - %s" , u .GetKind (), u .GetName ()))
793
+ // logger.Info(fmt.Sprintf("updating %s - %s", u.GetKind(), u.GetName()))
794
794
u .SetResourceVersion (preExistingResource .GetResourceVersion ())
795
795
if err := r .Update (ctx , u , client .FieldOwner (operatorName )); err != nil {
796
796
return fmt .Errorf ("while updating %s %s: %w" , u .GetName (), u .GetKind (), err )
0 commit comments