Skip to content

Commit f8940d7

Browse files
committed
🔊 logs
modified: controllers/pod_controller.go
1 parent e4d6434 commit f8940d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controllers/pod_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ func (r *PodReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.R
158158
data, err := r.ClientSet.RESTClient().Get().AbsPath(fmt.Sprintf("apis/metrics.k8s.io/v1beta1/namespaces/%v/pods/%v", pod.Namespace, pod.Name)).DoRaw(ctx)
159159

160160
if err != nil {
161-
// log.Error(err, "failed to get stats from pod")
162-
return ctrl.Result{}, nil
161+
log.Error(err, "failed to get stats from pod")
162+
return ctrl.Result{}, err
163163
}
164164
PodUsageData := GeneratePodRequestsObjectFromRestData(data)
165165
// PodRequestsData := GetPodRequests(pod)

0 commit comments

Comments
 (0)