-
Notifications
You must be signed in to change notification settings - Fork 5
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
Check if the value generated using custom UUID is unique; re-try creation otherwise #102
Comments
Now that we are using labels for the connection between the two, can we use generate name and have the api server deal with this? |
@shawn-hurley I think that is a good idea. We currently use the value of the label also as the object name (which is 63 char length, but could be 253 char length). Is there a function in the libraries we use that already implements this for us? |
Per my comments earlier, apiserver already has retry logic on generateName it creates for objects. I believe Shawn is not asking us to use any libs to implement this.. but to create object without specifying name. Just the generateName in metadata.
|
From what is worth I think the retry logic on name is a very corner case now, so I would focus on more important issues to be addressed first. |
I think this is less about discussing retry (that you consider to be corner case) specifically, but to remove the need for UUID code to exists inside NAC. Just use name generated via generateName from apiserver. |
@kaovilai partially correct. Yes we can use GenerateName instead of using custom UUID for name. Currently custom UUID is used for establishing NAB - VB mapping and also for NAB name (but not a necessity here). GenerateName would be an improvement but we still need custom UUID for mapping purposes we already discussed. So yes we could use GenerateName for NAB name but custom UUID code still needs to reside. Hope this clears up any confusion on this. |
User create NAB
|
yes this wasn't the issue, the problem would arise when we try to sync backups across clusters and in that case we wanted to avoid collisions, thats why we ended up using custom UUID. |
If NAB syncs across cluster, wouldn't the apiserver generateName logic work in both clusters if both are synced to have the same NABs in the cluster? |
Anyway yes as mpyrc said prob more important issues.. I just get excited at deleting code. |
If NABs do not sync across cluster, it would be interesting to see how one cluster's NAC read the other. |
Ref discussion: #101 (comment)
The text was updated successfully, but these errors were encountered: