Unverified Commit e67562dc authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #74143 from oomichi/issue/73771

Call getRandomClusterZone() only if necessary
parents 7fb16d9a a01381a7
...@@ -257,7 +257,6 @@ var _ = utils.SIGDescribe("Dynamic Provisioning", func() { ...@@ -257,7 +257,6 @@ var _ = utils.SIGDescribe("Dynamic Provisioning", func() {
Describe("DynamicProvisioner [Slow]", func() { Describe("DynamicProvisioner [Slow]", func() {
It("should provision storage with different parameters", func() { It("should provision storage with different parameters", func() {
cloudZone := getRandomClusterZone(c)
// This test checks that dynamic provisioning can provision a volume // This test checks that dynamic provisioning can provision a volume
// that can be used to persist data among pods. // that can be used to persist data among pods.
...@@ -269,7 +268,7 @@ var _ = utils.SIGDescribe("Dynamic Provisioning", func() { ...@@ -269,7 +268,7 @@ var _ = utils.SIGDescribe("Dynamic Provisioning", func() {
Provisioner: "kubernetes.io/gce-pd", Provisioner: "kubernetes.io/gce-pd",
Parameters: map[string]string{ Parameters: map[string]string{
"type": "pd-ssd", "type": "pd-ssd",
"zone": cloudZone, "zone": getRandomClusterZone(c),
}, },
ClaimSize: "1.5Gi", ClaimSize: "1.5Gi",
ExpectedSize: "2Gi", ExpectedSize: "2Gi",
...@@ -301,7 +300,7 @@ var _ = utils.SIGDescribe("Dynamic Provisioning", func() { ...@@ -301,7 +300,7 @@ var _ = utils.SIGDescribe("Dynamic Provisioning", func() {
Provisioner: "kubernetes.io/aws-ebs", Provisioner: "kubernetes.io/aws-ebs",
Parameters: map[string]string{ Parameters: map[string]string{
"type": "gp2", "type": "gp2",
"zone": cloudZone, "zone": getRandomClusterZone(c),
}, },
ClaimSize: "1.5Gi", ClaimSize: "1.5Gi",
ExpectedSize: "2Gi", ExpectedSize: "2Gi",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment