Skip to content

Commit

Permalink
Namespace fixture to initialize metadata annotations
Browse files Browse the repository at this point in the history
closes-bug: #1767231

Change-Id: I7a7e5ad513343c55d510c1289fa8f3f10a53be08
  • Loading branch information
nsarath committed May 3, 2018
1 parent 2228831 commit fb5a089
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fixtures/k8s/namespace.py
Expand Up @@ -142,6 +142,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 fb5a089

Please sign in to comment.