From b5432ea39423a14ab41f218cb23301aeb3b1500d Mon Sep 17 00:00:00 2001 From: Sean Eagan Date: Wed, 26 Jun 2019 13:20:50 -0500 Subject: [PATCH] Fix statefulset wait null pointer scenario The `rollingUpdate` key is not always defined, hence need to guard against this. Change-Id: Ieaae680b724621fe5e5e46533c293427ecd697bc --- armada/handlers/wait.py | 1 + 1 file changed, 1 insertion(+) diff --git a/armada/handlers/wait.py b/armada/handlers/wait.py index b79d74d3..d74353ed 100644 --- a/armada/handlers/wait.py +++ b/armada/handlers/wait.py @@ -725,6 +725,7 @@ class StatefulSetWait(ControllerWait): msg.format(ASYNC_UPDATE_NOT_ALLOWED_MSG, strategy)) if (is_rolling and replicas and + spec.update_strategy.rolling_update and spec.update_strategy.rolling_update.partition): msg = "{}: partitioned rollout"