-
Notifications
You must be signed in to change notification settings - Fork 381
should allow service catalog client to update a binding's spec field if the reconciler didn't send a binding request to a broker #2494
Comments
@nilebox @carolynvs @duglin Could you give me some advice about it ? |
@carlory As far as I know, OSB doesn't allow updates to bindings, so I think the current behavior is valid - if you need to generate fresh credentials, you should create a new binding, switch your application to a new secret, and remove the old one. See https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#request-6 for details.
This seems like a rare use case, not sure if we want to support it. Why do you need it? |
@nilebox Thanks for you comment.
Yes, that's right ! But if we want to solve those issue #2348 #2349, we should support this changes. Please see the proposal for additional context and details: https://github.com/carolynvs/service-catalog/blob/default-service-plan-proposal/docs/proposals/default-service-plans.md#binding-with-defaults. This is my PR #2435 which requires this changes. Could you take a look at my PR? In my PR, this function applyDefaultBindingParameters https://github.com/kubernetes-incubator/service-catalog/pull/2435/files#diff-ac77d94525ae05a353ce905a06988cc9R1167 should be called before the reconciler send a binding request to a broker because OSB doesn't allow updates to a exist binding. |
@carlory I think defaults could be injected by an admission controller (i.e. by API server, before the binding has been persisted) rather that binding controller. I would prefer this approach over checking that binding request has been sent (this is hard to get right, and I don't think ReconciledGeneration is the right field to check against). I need to double check in the code if we have status that guarantees that binding request wasn't sent. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Bug Report
What happened:
service catalog client couldn't update the spec field of a binding because of the RESTUpdateStrategy limitation.
After I try to remove this check, I am also stuck in trouble when the OriginatingIdentityLocking feature and the ServicePlanDefaults feature are both set.
the ReconciledGeneration field isn't equal to the Generation field if the reconciler updated a binding before it send a binding request to a given broker. so the ReconciledGeneration won't be updated and the update action is also failed.
it is blocking the ServicePlanDefaults feature. related pr is #2435
What you expected to happen:
should allow service catalog client to update a binding's spec field if the reconciler didn't send a binding request to a broker.
Related issues and PRs:
#1872
#2348
#2349
The text was updated successfully, but these errors were encountered: