Skip to content

Commit 201c0d0

Browse files
committed
wip
1 parent 77345f4 commit 201c0d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

controllers/btpoperator_controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -777,20 +777,20 @@ func (r *BtpOperatorReconciler) deleteCreationTimestamp(us ...*unstructured.Unst
777777
}
778778

779779
func (r *BtpOperatorReconciler) applyOrUpdateResources(ctx context.Context, us []*unstructured.Unstructured) error {
780-
logger := log.FromContext(ctx)
780+
//logger := log.FromContext(ctx)
781781
for _, u := range us {
782782
preExistingResource := &unstructured.Unstructured{}
783783
preExistingResource.SetGroupVersionKind(u.GroupVersionKind())
784784
if err := r.Get(ctx, client.ObjectKey{Name: u.GetName(), Namespace: u.GetNamespace()}, preExistingResource); err != nil {
785785
if !k8serrors.IsNotFound(err) {
786786
return fmt.Errorf("while trying to get %s %s: %w", u.GetName(), u.GetKind(), err)
787787
}
788-
logger.Info(fmt.Sprintf("applying %s - %s", u.GetKind(), u.GetName()))
788+
//logger.Info(fmt.Sprintf("applying %s - %s", u.GetKind(), u.GetName()))
789789
if err := r.Patch(ctx, u, client.Apply, client.ForceOwnership, client.FieldOwner(operatorName)); err != nil {
790790
return fmt.Errorf("while applying %s %s: %w", u.GetName(), u.GetKind(), err)
791791
}
792792
} 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()))
794794
u.SetResourceVersion(preExistingResource.GetResourceVersion())
795795
if err := r.Update(ctx, u, client.FieldOwner(operatorName)); err != nil {
796796
return fmt.Errorf("while updating %s %s: %w", u.GetName(), u.GetKind(), err)

0 commit comments

Comments
 (0)