make sure we don't create more pods (#1452)

This commit is contained in:
Ryan Zhang
2021-04-12 15:48:20 -07:00
committed by GitHub
parent 26163aacdc
commit 2e43a6dc78
4 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -272,10 +272,9 @@ var _ = Describe("Cloneset based rollout tests", func() {
AfterEach(func() {
By("Clean up resources after a test")
k8sClient.Delete(ctx, &app)
k8sClient.Delete(ctx, &appRollout)
verifyRolloutDeleted()
By("Delete the application")
k8sClient.Delete(ctx, &app)
By(fmt.Sprintf("Delete the entire namespaceName %s", ns.Name))
// delete the namespaceName with all its resources
Expect(k8sClient.Delete(ctx, &ns, client.PropagationPolicy(metav1.DeletePropagationBackground))).Should(BeNil())
@@ -14,4 +14,4 @@ spec:
- stress-cpu=1
image: stefanprodan/podinfo:4.0.3
port: 8080
updateStrategyType: InPlaceIfPossible
updateStrategyType: InPlaceOnly
+1 -1
View File
@@ -14,5 +14,5 @@ spec:
- stress-cpu=1
image: stefanprodan/podinfo:4.0.3
port: 8080
updateStrategyType: InPlaceIfPossible
updateStrategyType: InPlaceOnly
replicas: 5
+1 -1
View File
@@ -14,5 +14,5 @@ spec:
- stress-cpu=1
image: stefanprodan/podinfo:5.0.2
port: 8080
updateStrategyType: InPlaceIfPossible
updateStrategyType: InPlaceOnly
replicas: 5