Skip to content

Conversation

@atanas-attodorov-wq
Copy link
Contributor

@atanas-attodorov-wq atanas-attodorov-wq commented Dec 10, 2025

  • A short explanation of the proposed change:

This implementation adds support for persisting and displaying broker-provided metadata from OSBAPI responses for managed service instances. The metadata is stored separately from user-specified metadata (labels/annotations) and extracted from both synchronous and asynchronous provision/update operations.

  • An explanation of the use cases your change solves
    This implementation adds support for persisting and displaying broker-provided metadata from OSBAPI responses for managed service instances.
    This change:
  1. Extracts metadata from OSBAPI broker responses (provision, update, and fetch operations)
  2. Stores broker-provided metadata separately from user-specified metadata (labels/annotations)
  3. Exposes this metadata through the V3 Service Instances API
  4. Supports both synchronous and asynchronous provision/update operations
  5. Allows brokers to communicate important service characteristics like version, engine details, and configuration attributes to users

It is clear that Cloud Foundry do not fully adopt OSBAPI 2.17 and is still on OSBAPI 2.15 but this is one step forward.

Here is a link to discussion:
#4633

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 10, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: atanas-attodorov-wq / name: Atanas Todorov (9ac03d7)

@atanas-attodorov-wq atanas-attodorov-wq force-pushed the service_instance_broker_metadata branch from 4a66b6c to e6a2725 Compare December 10, 2025 11:34
@atanas-attodorov-wq
Copy link
Contributor Author

@sethboyles these failing Backward Compatibility Unit Tests do not seem related to my changes? I even start thinking we might merge this as this change :

  1. Is additive behaviour
  2. One step forward to adopting OSBAPI 2.17
  3. Already discussed here: and seems to be wanted behaviour.

@sethboyles
Copy link
Member

@atanas-attodorov-wq I'm currently digging into the backward compatibility tests to see if I can understand what's going wrong there.

@beyhan do you have concerns about implementing an OSBAPI 2.17 feature before we've implemented 2.16? Or do you think it's OK to add some of the features like this one as they are requested?

TNZ-69318 Persist and present broker_provided_metadata

TNZ-69318 Persist and present broker_provided_metadata

TNZ-69318 Persist and present broker_provided_metadata

TNZ-69318 Persist and present broker_provided_metadata

TNZ-69318 Persist and present broker_provided_metadata

Add unit tests

Add unit tests

Remove Trailing spaces

TNZ-70252 Apply code review comments

TNZ-70252 Revert back column type to text

TNZ-70252 add text column size constraint

TNZ-70252 add text column size constraint
@sethboyles sethboyles force-pushed the service_instance_broker_metadata branch from cadea3d to 9ac03d7 Compare December 11, 2025 22:30
@sethboyles
Copy link
Member

@atanas-attodorov-wq I believe your branch was failing the Backwards Compatibility tests because it was behind main and was missing some migrations. I've rebased the branch off of main so hopefully they will pass now.

@atanas-attodorov-wq
Copy link
Contributor Author

@atanas-attodorov-wq I believe your branch was failing the Backwards Compatibility tests because it was behind main and was missing some migrations. I've rebased the branch off of main so hopefully they will pass now.

Thanks Seth,
I believe we should re-trigger above failures?

@beyhan
Copy link
Member

beyhan commented Dec 12, 2025

@beyhan do you have concerns about implementing an OSBAPI 2.17 feature before we've implemented 2.16? Or do you think it's OK to add some of the features like this one as they are requested?

I think it's OK to add features as they are requested if they provide value, as long as the proposed solution aligns with how we want to adopt 2.16 and 2.17 overall. If the feature is self-contained and doesn't create architectural conflicts or technical debt that will need significant refactoring later, then implementing it out of order shouldn't be a problem.

During my presentation at CF Day Europe, I mentioned that I'm looking for an approach to "register" and "deregister" existing service instances to a CF foundation, which may also require implementing OSBAPI features that don't even exist yet in the current OSBAPI version. Of course, this would depend on whether the community sees value in these new features.

@sethboyles
Copy link
Member

Isn't this note in 2.16 OSBAPI spec defining part of this feature? https://github.com/cloudfoundry/servicebroker/blob/v2.16/spec.md#service-instance-metadata

It seems to me 2.16 introduced labels and 2.17 introduced attributes.

I'm OK with merging this. I'll approve and wait for others to take a look at implementation before actually merging.

@sethboyles sethboyles merged commit d02a904 into cloudfoundry:main Dec 17, 2025
25 of 28 checks passed
ari-wg-gitbot added a commit to cloudfoundry/capi-release that referenced this pull request Dec 17, 2025
Changes in cloud_controller_ng:

- TNZ-69318 Persist and present broker_provided_metadata
    PR: cloudfoundry/cloud_controller_ng#4699
    Author: atanas-attodorov-wq <atanas-at.todorov@broadcom.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants