Skip to content

Commit

Permalink
Merge "Namespace fixture to initialize metadata annotations closes-bu…
Browse files Browse the repository at this point in the history
…g: #1767231" into R5.0
  • Loading branch information
Zuul v3 CI authored and opencontrail-ci-admin committed Jun 6, 2018
2 parents e03c851 + fb5a089 commit c2e50e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fixtures/k8s/namespace.py
Expand Up @@ -165,6 +165,8 @@ def create(self):
return ns_exists
body = client.V1Namespace()
body.metadata = client.V1ObjectMeta(name=self.name)
# initialize to allow different combinations
body.metadata.annotations = {}
if self.isolation:
body.metadata.annotations = {"opencontrail.org/isolation" : "true"}
if self.ip_fabric_forwarding:
Expand Down

0 comments on commit c2e50e3

Please sign in to comment.