From 761ba3bdf864f85cae7d3e65b045197ad208e1a0 Mon Sep 17 00:00:00 2001 From: Matt Moore Date: Fri, 9 Feb 2018 14:21:23 -0800 Subject: [PATCH] Ignore not-found on deletions. (#112) Fixes: https://github.com/bazelbuild/rules_k8s/issues/111 --- k8s/delete.sh.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/delete.sh.tpl b/k8s/delete.sh.tpl index 87bdcd5d..39d9cd00 100644 --- a/k8s/delete.sh.tpl +++ b/k8s/delete.sh.tpl @@ -24,4 +24,4 @@ function guess_runfiles() { RUNFILES="${PYTHON_RUNFILES:-$(guess_runfiles)}" PYTHON_RUNFILES=${RUNFILES} %{reverse_script} | \ - kubectl --cluster="%{cluster}" %{namespace_arg} delete -f - + kubectl --cluster="%{cluster}" %{namespace_arg} delete --ignore-not-found=true -f -