fix getNodeWarningConditions (#2644)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-04-29 12:25:44 +03:00
1 parent 0a604201d4
commit f61f768fc7
2 files changed
+42 -3

No files matched your search

+2 -2
View File
@@ -174,9 +174,9 @@ export function podHasIssues(pod: V1Pod) {
}
export function getNodeWarningConditions(node: V1Node) {
return node.status.conditions.filter(c =>
return node.status?.conditions?.filter(c =>
c.status.toLowerCase() === "true" && c.type !== "Ready" && c.type !== "HostUpgrades"
);
) ?? [];
}
/**