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
BindInstance.Parameters use unclear #692
Comments
|
Good observation, we're more ambiguous with our names in some places than we should be. Often the context matters. (Ex: ServiceInstance. In the In this case, I'd probably split them into two different maps with explicit names. Something like |
|
For now, given that we have a tangible bug, how crazy would it be to move the comparison logic into a method and have it ignore Parameters that the broker typically adds? Something like this in |
|
@mhrivnak I was going to suggest why not ignore anything we added, so the above method seems like a good solution. |
|
Just to follow up, the above workaround is what I ended up doing and is in the code base now. This still needs better definition though as part of a total evaluation of the bundle contract. I think a reasonable next step is to schedule a brainstorm on that contract and desired changes, which I'm happy to facilitate. |
|
This will be addressed as part of this effort: https://trello.com/c/HTIdIch6/810-propose-changes-to-the-service-bundle-contract-based-on-collected-feedback |
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
|
/close |
|
@jmrodri: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This issue raises a question of what data is intended to be stored where, and potentially will result in changing what data gets stored on the
BindInstance.There are two potential definitions for the word "parameters" in the broker.
The set of arguments passed in by an API client to a OSB API endpoint, such as when creating a Service Binding.
The set of arguments passed by the broker to an APB at runtime. This generally includes all the parameters from 1 above, and the broker potentially adds others such as "namespace", "cluster", and "_apb_provision_creds".
Which of these is intended to be what is stored on the
BindInstance.Parametersfield? I think it should probably be just definition 1, because definition 2 seems only related to the running job.This question came up because we need to compare the parameters provided by a client with any previously-provided parameters for an equivalent request. That comparison currently always fails, because the "previous" parameters include extra broker-added options, while the "new" parameters do not. In other words, we are using definition 2 currently to decide what gets saved on the
BindInstance.https://github.com/openshift/ansible-service-broker/blob/ansible-service-broker-1.1.8-1/pkg/broker/broker.go#L865
The text was updated successfully, but these errors were encountered: