Skip to content

Commit

Permalink
Remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yongja79 committed Nov 7, 2023
1 parent a9e4c7e commit 2aadf84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/openlibertytrace_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ func (r *ReconcileOpenLibertyTrace) Reconcile(ctx context.Context, request ctrl.
if podChanged && (prevTraceEnabled == corev1.ConditionTrue) {
r.disableTraceOnPrevPod(reqLogger, prevPodName, podNamespace)
}
pod := &corev1.Pod{}
err = r.Client.Get(context.TODO(), types.NamespacedName{Name: podName, Namespace: podNamespace}, pod)

err = r.Client.Get(context.TODO(), types.NamespacedName{Name: podName, Namespace: podNamespace}, &corev1.Pod{})
if err != nil && errors.IsNotFound(err) {
//Pod is not found. Return and don't requeue
reqLogger.Error(err, "Pod "+podName+" was not found in namespace "+podNamespace)
Expand Down

0 comments on commit 2aadf84

Please sign in to comment.