File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ import (
37
37
"sort"
38
38
39
39
"github.com/aerogear/mobile-cli/pkg/cmd/output"
40
- "github.com/satori/go.uuid"
41
40
"k8s.io/apimachinery/pkg/watch"
42
41
)
43
42
@@ -295,7 +294,6 @@ Run the "mobile get services" command from this tool to see which services are a
295
294
}
296
295
297
296
validServiceName := clusterServiceClass .Spec .ExternalName
298
- sid := uuid .NewV4 ().String ()
299
297
extMeta := clusterServiceClass .Spec .ExternalMetadata .Raw
300
298
var extServiceClass ExternalServiceMetaData
301
299
if err := json .Unmarshal (extMeta , & extServiceClass ); err != nil {
@@ -308,7 +306,6 @@ Run the "mobile get services" command from this tool to see which services are a
308
306
Kind : "ServiceInstance" ,
309
307
},
310
308
ObjectMeta : metav1.ObjectMeta {
311
- Labels : map [string ]string {"id" : sid , "serviceName" : extServiceClass .ServiceName },
312
309
Namespace : ns ,
313
310
GenerateName : validServiceName + "-" ,
314
311
},
@@ -364,7 +361,7 @@ Run the "mobile get services" command from this tool to see which services are a
364
361
if noWait {
365
362
return nil
366
363
}
367
- w , err := sc .scClient .ServicecatalogV1beta1 ().ServiceInstances (ns ).Watch (metav1.ListOptions {LabelSelector : "id =" + sid })
364
+ w , err := sc .scClient .ServicecatalogV1beta1 ().ServiceInstances (ns ).Watch (metav1.ListOptions {LabelSelector : "serviceName =" + validServiceName })
368
365
if err != nil {
369
366
return errors .WithStack (err )
370
367
}
You can’t perform that action at this time.
0 commit comments