-
Notifications
You must be signed in to change notification settings - Fork 99
Validate parent-child relationship in async step #591
base: master
Are you sure you want to change the base?
Validate parent-child relationship in async step #591
Conversation
This change will likely break how things work with Kubernetes. Please do not merge it until we can discuss more. |
pkg/api/provision.go
Outdated
if !parentFound { | ||
return true, nil | ||
return false, fmt.Errorf( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was done to support the way things can be done with Kubernetes. Take a Helm chart that may declare both a parent and child instance. When these are created, Kubernetes via Service Catalog will make the request for both resources, but there isn't a way to constrain the order. Therefore, you could get the child before the parent. In this scenario, the change you've introduced would cause things to end up in a failure state.
Got that. Thanks for the explanation! |
f5c6278
to
eaaf438
Compare
Extending ParentServiceID to a set of IDs should be done before this change. Or, it would break the sql-dbms-registered service which was recently checked in. See catalog: |
Agree we should extend |
@norshtein here: https://github.com/Azure/open-service-broker-azure/blob/master/pkg/service/schema.go#L544. The |
Thanks for pointing it out! |
Close #589