You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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 ofinterface{}
as per OSB specification where metadatalabels
andattributes
fields areobject
type likeparameters
field (or at the least making itmap[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{}
(ormap[string]interface{}
) if you agree.The text was updated successfully, but these errors were encountered: