From ee2095c0a224c1b13240c89daddd520f8a99b1eb Mon Sep 17 00:00:00 2001 From: Marco Falkenberg Date: Fri, 4 May 2018 16:02:47 +0200 Subject: [PATCH] Don't reject on status responses with code 404 --- src/client.ts | 4 ++++ 1 file changed, 4 insertions(+) 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; }