Skip to content

Commit

Permalink
pkg/apis/config/v1alpha1: ugly kludge for clearing old status error.
Browse files Browse the repository at this point in the history
Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub committed Nov 3, 2023
1 parent 70e4aed commit 215cd61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/apis/config/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 215cd61

Please sign in to comment.