Setting the ``updateStrategy: OnDelete`` didn't work if was not specified from scratch in CR

Description

In CLOUD-520 we've faced an error in case of switching from RollingUpgrade to OnDelete strategy. It happens when CR does not contain any strategy specified and Kubernetes sets it's default value (RollingUpgrade) with partitioning for StatefulSet. Operators' logic does not take into accout that partition section should be wiped out and leaves it as is which leads to an error.

Environment

None

Smart Checklist

Activity

Done

Details

Assignee

Reporter

Time tracking

1h logged

Fix versions

Affects versions

Priority

Smart Checklist

Created February 24, 2020 at 1:19 PM
Updated March 5, 2024 at 5:09 PM
Resolved March 27, 2020 at 2:19 PM

Flag notifications