Use random namespace for py-smoke example for test parallelism
-# Copyright 2016-2018, Pulumi Corporation.
+# Copyright 2016-2019, Pulumi Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# See the License for the specific language governing permissions and
# limitations under the License.
import pulumi
-from pulumi_kubernetes.core.v1 import Pod
+from pulumi_kubernetes.core.v1 import Pod, Namespace
-pod = Pod("smoke-test", spec={
+namespace = Namespace("test")
+
+pod = Pod(
+ "smoke-test",
+ metadata={
+ "namespace": namespace,
+ },
+ spec={
"containers": [
{"name": "nginx", "image": "nginx"},
]
