diff --git a/src/client.ts b/src/client.ts index 0816cf4..1c4616f 100644 --- a/src/client.ts +++ b/src/client.ts @@ -243,6 +243,10 @@ export class KubernetesRESTClient implements IKubernetesRESTClient { } if (isStatus(body) && body.status === "Failure") { + if(body.code === 404) { + res(undefined); + return; + } rej(new Error(body.message)); return; }