Skip to content

Commit cb5db17

Browse files
DexterYannvanthao
andauthored
feat(analyzer): make sure ReplicaSetStatus has valid result (#1538)
* feat(analyzer): make sure ReplicaSetStatus has valid result --------- Co-authored-by: Gerard Nguyen <gerard@replicated.com>
1 parent c2f72ec commit cb5db17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/analyze/replicaset_status.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ func analyzeOneReplicaSetStatus(analyzer *troubleshootv1beta2.ReplicaSetStatus,
101101
}
102102
}
103103

104+
if result == nil {
105+
return nil, nil
106+
}
107+
104108
return []*AnalyzeResult{result}, nil
105109
}
106110

0 commit comments

Comments
 (0)