Skip to content

Commit

Permalink
[werft] Don't error on deploy if pod is already gone
Browse files Browse the repository at this point in the history
  • Loading branch information
geropl committed Apr 14, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 7be3a21 commit 3760f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .werft/util/kubectl.ts
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ function deleteAllWorkspaces(namespace: string, shellOpts: ExecOptions) {
exec(`kubectl patch pod --namespace ${namespace} ${o} -p '{"metadata":{"finalizers":null}}'`, { ...shellOpts });
exec(`kubectl delete pod --namespace ${namespace} ${o}`, { ...shellOpts });
} catch (err) {
const result = exec(`kubectl get pod --namespace ${namespace} ${o}`);
const result = exec(`kubectl get pod --namespace ${namespace} ${o}`, { dontCheckRc: true });
if (result.code === 0) {
console.error(`unable to patch/delete ${o} but it's still on the dataplane`);
}

0 comments on commit 3760f7e

Please sign in to comment.