Move MinReadySeconds out of RollingUpdateDeployment

This commit is contained in:
mqliang
2016-01-31 21:59:58 +08:00
parent ae2aece9af
commit c4a1ab42e3
13 changed files with 1105 additions and 1107 deletions

View File

@@ -471,10 +471,10 @@ func testRolloverDeployment(f *Framework) {
deploymentStrategyType := extensions.RollingUpdateDeploymentStrategyType
Logf("Creating deployment %s", deploymentName)
newDeployment := newDeployment(deploymentName, deploymentReplicas, deploymentPodLabels, deploymentImageName, deploymentImage, deploymentStrategyType, nil)
newDeployment.Spec.MinReadySeconds = deploymentMinReadySeconds
newDeployment.Spec.Strategy.RollingUpdate = &extensions.RollingUpdateDeployment{
MaxUnavailable: intstr.FromInt(1),
MaxSurge: intstr.FromInt(1),
MinReadySeconds: deploymentMinReadySeconds,
MaxUnavailable: intstr.FromInt(1),
MaxSurge: intstr.FromInt(1),
}
_, err = c.Extensions().Deployments(ns).Create(newDeployment)
Expect(err).NotTo(HaveOccurred())