Skip to content

Commit

Permalink
feat(analyzer): make sure ReplicaSetStatus has valid result (#1538)
Browse files Browse the repository at this point in the history
* feat(analyzer): make sure ReplicaSetStatus has valid result
---------

Co-authored-by: Gerard Nguyen <gerard@replicated.com>
  • Loading branch information
DexterYan and nvanthao committed Apr 30, 2024
1 parent c2f72ec commit cb5db17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/analyze/replicaset_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ func analyzeOneReplicaSetStatus(analyzer *troubleshootv1beta2.ReplicaSetStatus,
}
}

if result == nil {
return nil, nil
}

return []*AnalyzeResult{result}, nil
}

Expand Down

0 comments on commit cb5db17

Please sign in to comment.