Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

[Feature Request] Add "mongodb" to tags in service binding #16

Closed
claassen opened this issue Sep 3, 2020 · 2 comments · Fixed by #18
Closed

[Feature Request] Add "mongodb" to tags in service binding #16

claassen opened this issue Sep 3, 2020 · 2 comments · Fixed by #18
Assignees
Labels
enhancement New feature or request

Comments

@claassen
Copy link

claassen commented Sep 3, 2020

Currently service bindings do not provide any tags in VCAP_SERVICES, e.g.:

"mongodb-atlas-azure": [
        {
          "label": "mongodb-atlas-azure",
          "provider": null,
          "plan": "M10-small",
          "name": "app-health-check-db",
          "tags": [],
          "instance_name": "app-health-check-db",
          "binding_name": null,
          "credentials": {
            ...
          },
          "syslog_drain_url": null,
          "volume_mounts": []
        }
      ],

This is breaking some functionality for certain Spring Boot apps where it uses the tags to identify the MongoDB service instance.

Requesting that "mongodb" should be added to the "tags" array, e.g.:

"mongodb-atlas-azure": [
{
"label": "mongodb-atlas-azure",
"provider": null,
"plan": "M10-small",
"name": "app-health-check-db",
"tags": ["mongodb"],
"instance_name": "app-health-check-db",
"binding_name": null,
"credentials": {
...
},
"syslog_drain_url": null,
"volume_mounts": []
}
],

@vasilevp
Copy link
Contributor

vasilevp commented Sep 3, 2020

We can make this configurable just like every other service parameter - I'll get the feature out tomorrow.

Meanwhile you can use user-provided tags to unblock your testing:

cf create-service <...> -t "mongodb"

@vasilevp
Copy link
Contributor

vasilevp commented Sep 4, 2020

This will be included in the upcoming release

@vasilevp vasilevp added the enhancement New feature or request label Oct 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants