summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2017-11-21 11:51:27 +0000
committerGerrit Code Review <review@openstack.org>2017-11-21 11:51:27 +0000
commitb9cabcdbc886b403cd6c74b327cad0b8ad422554 (patch)
treec505a118cad650aa7c856269a1397ea6bdb29f78
parent41e78920cfa01c93b406221248be64193d33b9b4 (diff)
parente6c01efdc4fe035b2cc02fb2003aa9a9e9e1252e (diff)
Merge "Fix `create_pod` for 4.0 kubernetes client"
-rw-r--r--kuryr_tempest_plugin/tests/scenario/base.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/kuryr_tempest_plugin/tests/scenario/base.py b/kuryr_tempest_plugin/tests/scenario/base.py
index ca13bc0..eb3bc19 100644
--- a/kuryr_tempest_plugin/tests/scenario/base.py
+++ b/kuryr_tempest_plugin/tests/scenario/base.py
@@ -57,13 +57,11 @@ class BaseKuryrScenarioTest(manager.NetworkScenarioTest):
57 pod = self.k8s_client.V1Pod() 57 pod = self.k8s_client.V1Pod()
58 pod.metadata = self.k8s_client.V1ObjectMeta(name=name) 58 pod.metadata = self.k8s_client.V1ObjectMeta(name=name)
59 59
60 container = self.k8s_client.V1Container() 60 container = self.k8s_client.V1Container(name=name)
61 container.image = image 61 container.image = image
62 container.args = ["sleep", "3600"] 62 container.args = ["sleep", "3600"]
63 container.name = name
64 63
65 spec = self.k8s_client.V1PodSpec() 64 spec = self.k8s_client.V1PodSpec(containers=[container])
66 spec.containers = [container]
67 65
68 pod.spec = spec 66 pod.spec = spec
69 self.k8s_client.CoreV1Api().create_namespaced_pod(namespace=namespace, 67 self.k8s_client.CoreV1Api().create_namespaced_pod(namespace=namespace,