| Dimitra Zuccarelli Looks like there is no good way to add a label to a ServiceInstance in the apb. The apb spec file doesn't allow that and using the oc cli does not work because the name of the ServiceInstance is not deterministic (e.g. localregistry-fh-sync-server-apb-2m497). In the cli we look up the ServiceInstance, then use the value of it's 'serviceName' label to retrieve a secret with that name: https://github.com/aerogear/mobile-cli/blob/master/pkg/cmd/integration.go#L134 Why do we need to get the label value from the ServiceInstance? The name of the secret is usually the same that we want to pass into the cli, like 'mobile create integration keycloak fh-sync-server'. Instead, could we not just do something like:
consumerSvc := getService(namespace, args[0], bc.k8Client) |
providerSvc := getService(namespace, args[1], bc.k8Client)
|
|