Skip to content

Commit

Permalink
Remove error log for get service.
Browse files Browse the repository at this point in the history
if redis exporter is not enabled, it will try to remove redis service, if present.
while doing to, it will first check if the service is present, and then proceed to remove the service.
if the service is not present, error is logged, eventhough it is not harmful.
  • Loading branch information
raghu-nandan-bs committed Dec 27, 2022
1 parent ea7e74e commit c42b6a0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion service/k8s/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ func (s *ServiceService) GetService(namespace string, name string) (*corev1.Serv
service, err := s.kubeClient.CoreV1().Services(namespace).Get(context.TODO(), name, metav1.GetOptions{})
recordMetrics(namespace, "Service", name, "GET", err, s.metricsRecorder)
if err != nil {
log.Errorf("Error while getting service %v in %v namespace : %v", name, namespace, err)
return nil, err
}
return service, err
Expand Down

0 comments on commit c42b6a0

Please sign in to comment.