From 215cd615cb5e70b849bc49554d0433fa8fc651f3 Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Tue, 31 Oct 2023 23:20:52 +0200 Subject: [PATCH] pkg/apis/config/v1alpha1: ugly kludge for clearing old status error. Signed-off-by: Krisztian Litkey --- pkg/apis/config/v1alpha1/types.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/apis/config/v1alpha1/types.go b/pkg/apis/config/v1alpha1/types.go index c28d7b52e..d578f16fc 100644 --- a/pkg/apis/config/v1alpha1/types.go +++ b/pkg/apis/config/v1alpha1/types.go @@ -132,6 +132,9 @@ func NewNodeStatus(err error, generation int64) *NodeStatus { } if err == nil { s.Status = StatusSuccess + // TODO(klihub): kludge to 'patch away' any old errors from + // lingering. Needs to be fixed properly... + s.Error = "-" } else { s.Status = StatusFailure s.Error = fmt.Sprintf("%v", err)