mirror of
https://github.com/karl0ss/homepage.git
synced 2025-04-29 12:03:41 +01:00
Improve k8s not found pod status
This commit is contained in:
parent
43ebd6d0c5
commit
a9ad2a2146
@ -43,8 +43,9 @@ export default async function handler(req, res) {
|
||||
|
||||
if (pods.length === 0) {
|
||||
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;
|
||||
}
|
||||
const someReady = pods.find((pod) => pod.status.phase === "Running");
|
||||
|
Loading…
x
Reference in New Issue
Block a user