Skip to content
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

Incorrect type for metadata fields in Get/Provision/Deprovision responses #175

Closed
r6q opened this issue Aug 16, 2021 · 3 comments
Closed
Labels

Comments

@r6q
Copy link

r6q commented Aug 16, 2021

I noticed in this PR a new metadata field (with labels/attributes) was added as per latest OSB specification.

Is there any reason for creating labels and attributes as a map[string]string instead of interface{} as per OSB specification where metadata labels and attributes fields are object type like parameters field (or at the least making it map[string]interface{} so integers and structs can be used as values) ?

Current implementation limits proper usage of labels and attributes of metadata in ServiceBroker implementation. I can add PR changing labels and attributes to interface{} (or map[string]interface{}) if you agree.

@cf-gitbot
Copy link
Member

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/179237174

The labels on this github issue will be updated when the story is started.

@FelisiaM
Copy link
Contributor

FelisiaM commented Aug 17, 2021

Hi @r6q

The spec defines both these fields as key-value fields, also in reality the platforms that defined the concepts and potentially make use of the labels and annotations define some more restrictions.

Both these concepts are taken from K8s labels and annotations and CF labels and annotations and both of them define labels as key-values of strings (that can also be queriable).
To keep in line with these current community definitions of labels and annotations I would be inclined to keep it as a map[string]string.

Thanks,
Felisia

@r6q
Copy link
Author

r6q commented Aug 19, 2021

Ok, thanks for your insight, let's leave it as <string, string>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants