From 155055bf6034d615bf429467b5cf1d2594f17494 Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Thu, 8 Aug 2024 18:44:42 +0545 Subject: [PATCH] fix: node health error --- pkg/health/health_node.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/health/health_node.go b/pkg/health/health_node.go index 655a049..d2760a2 100644 --- a/pkg/health/health_node.go +++ b/pkg/health/health_node.go @@ -1,7 +1,6 @@ package health import ( - "errors" "fmt" v1 "k8s.io/api/core/v1" @@ -43,5 +42,9 @@ func getNodeHealth(obj *unstructured.Unstructured) (*HealthStatus, error) { } } - return nil, errors.New("no conditions matched for node status") + return &HealthStatus{ + Status: HealthStatusUnknown, + Health: HealthUnknown, + Message: "no conditions matched for node status", + }, nil }