Merge pull request #92787 from divyenpatel/fix-e2e-test-vsphere_statefulsets

fixed e2e vsphere statefulsets test
This commit is contained in:
Kubernetes Prow Robot 2020-11-04 20:46:52 -08:00 committed by GitHub
commit fdd2f51e68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -66,10 +66,6 @@ var _ = utils.SIGDescribe("vsphere statefulset [Feature:vsphere]", func() {
client = f.ClientSet
Bootstrap(f)
})
ginkgo.AfterEach(func() {
framework.Logf("Deleting all statefulset in namespace: %v", namespace)
e2estatefulset.DeleteAllStatefulSets(client, namespace)
})
ginkgo.It("vsphere statefulset testing", func() {
ginkgo.By("Creating StorageClass for Statefulset")
@ -83,6 +79,7 @@ var _ = utils.SIGDescribe("vsphere statefulset [Feature:vsphere]", func() {
ginkgo.By("Creating statefulset")
statefulset := e2estatefulset.CreateStatefulSet(client, manifestPath, namespace)
defer e2estatefulset.DeleteAllStatefulSets(client, namespace)
replicas := *(statefulset.Spec.Replicas)
// Waiting for pods status to be Ready
e2estatefulset.WaitForStatusReadyReplicas(client, statefulset, replicas)

View File

@ -1,4 +1,4 @@
apiVersion: apps/v1beta2
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: web