Add support for setting DATABASE_URL from vcap services#123
Add support for setting DATABASE_URL from vcap services#123pbusko merged 1 commit intocloudfoundry:mainfrom
Conversation
tomkennedy513
commented
Sep 12, 2025
- This is replicating behavior that exists in buildpack app lifecycle
f163465 to
dcb3d01
Compare
- This is replicating behavior that exists in buildpack app lifecycle Signed-off-by: Tom Kennedy <tom.kennedy@broadcom.com>
dcb3d01 to
4bddce5
Compare
|
Just bumping this @cloudfoundry/wg-app-runtime-platform-cnbapplifecycle-approvers since its been open over a month |
|
I cannot find any usage of |
It's for apps to use primarily, but buildpacks can use it to make decisions on things like providing database drivers. This is supported for all other lifecycles on cf |
| "net/url" | ||
| ) | ||
|
|
||
| func ParseDatabaseURI(services string) (string, error) { |
There was a problem hiding this comment.
@tomkennedy513 is there an option to have a reusable version of this function? As you mentioned, this code must be the same across all existing lifecycles. It seems that the dockerapplifecycle imports some functions from the buildpackapplifecycle. Should this be extracted to a new repository which contains shared logic?
There was a problem hiding this comment.
I copied it over (though I did tweak it a bit) because I remember when I did the credhub interpolation there was a strong desire to not have any cross lifecycle dependencies. A third repo make senses but obviously requires a lot more coordination to get this change in
There was a problem hiding this comment.
Since we already have quite a lot of common things between the lifecycles, I believe it's time to introduce the library repository. What is your opinion on that?
There was a problem hiding this comment.
I think adding a library makes sense, but I think that should be separate from getting this fix in to unblock us.