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
Randomize object names to avoid clashes #853
Comments
|
Thank you for the issue @tripledes, there is a similar BZ https://bugzilla.redhat.com/show_bug.cgi?id=1542235 |
|
@djzager Sounds pretty much the same. I've been looking at the code a bit and was wondering whether this is something that the broker should take care of as I haven't seen any interaction with such objects as those are defined at playbook level. Any thoughts? |
|
I think we may need to wait for #809 before we can generate names. The names are set right now because the APB cannot keep track of a generated name for deprovision use case. If we can keep track of that state, then the APB can be updated to take advantage of this IMO. |
|
@shawn-hurley thanks, that confirms my assumptions. |
|
I don't believe that the broker will be able to control how Bundles name objects. I believe this is something that will need to be addressed at the Service Bundle level. There are a couple of ways this can be done now:
Once, #809 is merged, then we could be even more clever and generate names like |
|
@djzager Thanks, that also clarifies things. I'm helping with the |
|
The way this is handled in the hello-world-apb is by having something like: then using the In the end, I do not believe that it is the broker's responsibility to worry about the names of objects created by a particular bundle. If an APB (or Service Bundle) developer wants multiple instances of their bundle in a single namespace to be supported, they will need to make the necessary changes. However they elect to support that behavior is up to them. We recommend using the |
|
@djzager regarding responsibilities, agreed, as long as there's a way for developers to generate different object names, it'd be fine. Thanks. |
|
Since we (in this case the broker) is providing a means for uniquely identifying objects being managed by a particular APB (via |
Feature: Randomize object names
What happened:
When deploying multiple instances of the same APB on the same namespace, some objects clash and deployment fails.
Having this situation handled by the broker in the same way other objects in Kubernetes/OpenShift are indexed, e.g.
rc/<name>-1,rc/<name>-2, ... would improve developer/user experience.What you expected to happen:
To be able to deploy same APB in the same namespace multiple times.
How to reproduce it:
Try to deploy multiple instances of the PostgreSQL APB.
The text was updated successfully, but these errors were encountered: