From c136e2392ad9123c48288bb529e2cee5edd847ce Mon Sep 17 00:00:00 2001 From: Mitch Date: Wed, 20 Nov 2024 11:21:10 -0500 Subject: [PATCH] we can't patch jobs --- spartan/scripts/deploy_spartan.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spartan/scripts/deploy_spartan.sh b/spartan/scripts/deploy_spartan.sh index ee78d504cf3..96a8ef2c68d 100755 --- a/spartan/scripts/deploy_spartan.sh +++ b/spartan/scripts/deploy_spartan.sh @@ -72,3 +72,11 @@ if ! upgrade | tee "$SCRIPT_DIR/logs/$NAMESPACE-helm.log" ; then upgrade fi fi + +if ! upgrade | tee "$SCRIPT_DIR/logs/$NAMESPACE-helm.log" ; then + if grep 'cannot patch "'$NAMESPACE'-aztec-network-deploy-l1-verifier"' "$SCRIPT_DIR/logs/$NAMESPACE-helm.log" ; then + kubectl delete job $NAMESPACE-aztec-network-deploy-l1-verifier -n $NAMESPACE + upgrade + fi +fi +