Fix: handle some status cases with non-existent k8s pods
This commit is contained in:
parent
6ab6d6fd3a
commit
7b2ba52888
@ -17,8 +17,8 @@ export default function Component({ service }) {
|
|||||||
`/api/kubernetes/stats/${widget.namespace}/${widget.app}?${podSelectorString}`,
|
`/api/kubernetes/stats/${widget.namespace}/${widget.app}?${podSelectorString}`,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (statsError || statusError) {
|
if (statsError || statusError || (statusData && !statusData.status)) {
|
||||||
return <Container service={service} error={statsError ?? statusError} />;
|
return <Container service={service} error={statsError ?? statusError ?? statusData} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (statusData && !(statusData.status.includes("running") || statusData.status.includes("partial"))) {
|
if (statusData && !(statusData.status.includes("running") || statusData.status.includes("partial"))) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user