From df8028c063afff1773d00de00074ca4e6abc924b Mon Sep 17 00:00:00 2001 From: Dara Hayes Date: Wed, 31 Jan 2018 12:08:38 +0000 Subject: [PATCH 1/2] fix: include labels in service_instance definition --- src/apb/engine.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apb/engine.py b/src/apb/engine.py index efe993c..2d42d1c 100644 --- a/src/apb/engine.py +++ b/src/apb/engine.py @@ -1204,7 +1204,8 @@ def cmdrun_serviceinstance(**kwargs): serviceInstance = dict(apiVersion="servicecatalog.k8s.io/v1beta1", kind="ServiceInstance", metadata=dict( - name=spec['name'] + name=spec['name'], + labels=spec['labels'] ), spec=dict( clusterServiceClassExternalName="dh-" + spec['name'], From d69cfc9b49b8128ce77c3fd5862b5d47633d702c Mon Sep 17 00:00:00 2001 From: Dara Hayes Date: Wed, 31 Jan 2018 12:52:10 +0000 Subject: [PATCH 2/2] fix: wrap labels in dict object --- src/apb/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apb/engine.py b/src/apb/engine.py index 2d42d1c..91b40dc 100644 --- a/src/apb/engine.py +++ b/src/apb/engine.py @@ -1205,7 +1205,7 @@ def cmdrun_serviceinstance(**kwargs): kind="ServiceInstance", metadata=dict( name=spec['name'], - labels=spec['labels'] + labels=dict(spec['labels']) ), spec=dict( clusterServiceClassExternalName="dh-" + spec['name'],