mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
fixed e2e vsphere statefulsets test
This commit is contained in:
parent
86096addb1
commit
c1335087e4
@ -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)
|
||||
|
@ -1,4 +1,4 @@
|
||||
apiVersion: apps/v1beta2
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: web
|
||||
|
Loading…
Reference in New Issue
Block a user