-
Notifications
You must be signed in to change notification settings - Fork 801
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
Delete annotations/labels from within UE4 Agones SDK #2814
Comments
🤔 iiiinteresting - we've never had the ability to remove a label from the system. Can you expand on your use case, I'd like to dig in deeper and see why you need to be able to delete labels? |
In order for players to join my server, I made an invitation system. For now, I have made a workaround : I store all the invitations inside a single annotation. The annotation value contains a JSON string representing an array of invitations. So if I want to delete invitations, I just have to update the JSON string inside the invitations annotation. I don't know if I was clear enough. I am a beginner with Agones and Kubernetes, so pardon me if I ask silly questions. Best regards, |
Honestly, I actually think this is the right answer (you could also comma delimit maybe?) -- since then you have a singular annotation that is a list -- rather than having to scan all annotations. This also ensures your updates are atomic. It's also how we do a very similar thing in Quilkin: You may also be interested in #2716 for when that gets implemented as well. |
Thank you for your answer. |
I have noticed that it is possible to add or update labels / annotations from within the UE4 SDK but not to remove them (you can't remove them at allocation as well, but I need to do it from within my server app).
Is it a feature that you consider adding in the future ? Or is it a bad practice to remove this server metadata ?
Best regards
François
The text was updated successfully, but these errors were encountered: