Fix statefulset wait null pointer scenario

The `rollingUpdate` key is not always defined, hence need to guard
against this.

Change-Id: Ieaae680b724621fe5e5e46533c293427ecd697bc
This commit is contained in:
Sean Eagan 2019-06-26 13:20:50 -05:00
parent 082aa624db
commit b5432ea394
1 changed files with 1 additions and 0 deletions

View File

@ -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"