mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 14:18:47 +00:00
Improve k8s not found pod status
This commit is contained in:
parent
43ebd6d0c5
commit
a9ad2a2146
1 changed files with 2 additions and 1 deletions
|
@ -43,8 +43,9 @@ export default async function handler(req, res) {
|
||||||
|
|
||||||
if (pods.length === 0) {
|
if (pods.length === 0) {
|
||||||
res.status(404).send({
|
res.status(404).send({
|
||||||
error: `no pods found with namespace=${namespace} and labelSelector=${labelSelector}`,
|
status: "not found",
|
||||||
});
|
});
|
||||||
|
logger.error(`no pods found with namespace=${namespace} and labelSelector=${labelSelector}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const someReady = pods.find((pod) => pod.status.phase === "Running");
|
const someReady = pods.find((pod) => pod.status.phase === "Running");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue