-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
label? #3
Comments
Nope. As you say, the label is assigned by the service provider. So, what if you need to use two instances of a service - two databases, whatever. Would you just return the first? This becomes a particular problem with user-provided services, which all use the label Also keep in mind that service labels have been known to change as services upgrade. The service |
So I hit this in the bug above — my own error, as getService* is documented as such. However, in this case, I am the service creator, and I'm trying to make an SDK that will find the service instance properly.
Yes, but as the service creator, we have chosen a regex-matchable pattern that we will stick to for the service name. So consider this a request for a new function, |
Sounds reasonable. Feel free to create a PR with the new function, doc, On Wed, Dec 23, 2015 at 3:19 PM, Steven R. Loomis notifications@github.com
Patrick Mueller |
will do
|
Fixes: #9 * add NO_UTIL_TEST parameter * add a module lib/cfenv-credsbylabel.js * note upstream issue cloudfoundry-community/node-cfenv#3 * (todo) update docs as well to note the label functionality * bump version to 1.0.3
+1 on getServiceCredsByLabel(). |
@jthomas sorry - forgot to update this.
Next to work on PR… |
getServiceCredsByLabel is like getServiceCreds except that the label is used. * internal function getServiceByLabel added * docs update * tests update Note, other get*ByLabel functions may be desired. This is just a starting point. See discussion cloudfoundry-community#3
getServiceCredsByLabel is like getServiceCreds except that the label is used. * internal function getServiceByLabel added * docs update * tests update Note, other get*ByLabel functions may be desired. This is just a starting point. See discussion cloudfoundry-community#3
should the VCAP
label
field be used as a selector? That tends to be fixed by the service provider.The text was updated successfully, but these errors were encountered: