Support readiness checking on recreate strategy
The recreate strategy did not previously use readiness checks. This
commit adds support for them in order to make the new mid check pass
(failing-dc-mid.yaml relies on recreate readiness failing in order to
fail the deployment).
@@ -67,6 +67,9 @@ type CustomDeploymentStrategyParams struct {
// RecreateDeploymentStrategyParams are the input to the Recreate deployment
// strategy.
type RecreateDeploymentStrategyParams struct {
+ // TimeoutSeconds is the time to wait for updates before giving up. If the
+ // value is nil, a default will be used.
+ TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty" description:"the time to wait for updates before giving up"`
// Pre is a lifecycle hook which is executed before the strategy manipulates
// the deployment. All LifecycleHookFailurePolicy values are supported.
Pre *LifecycleHook `json:"pre,omitempty" description:"a hook executed before the strategy starts the deployment"`
