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:
parent
082aa624db
commit
b5432ea394
@ -725,6 +725,7 @@ class StatefulSetWait(ControllerWait):
|
|||||||
msg.format(ASYNC_UPDATE_NOT_ALLOWED_MSG, strategy))
|
msg.format(ASYNC_UPDATE_NOT_ALLOWED_MSG, strategy))
|
||||||
|
|
||||||
if (is_rolling and replicas and
|
if (is_rolling and replicas and
|
||||||
|
spec.update_strategy.rolling_update and
|
||||||
spec.update_strategy.rolling_update.partition):
|
spec.update_strategy.rolling_update.partition):
|
||||||
msg = "{}: partitioned rollout"
|
msg = "{}: partitioned rollout"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user