You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently heavily testing the new counters and lists feature from Agones 1.37, I noticed that removing an item from a list does not remove the item on the GameServer CRD.
What you expected to happen:
I assume that it should be be possible to remove an item from a list and that it will be reflected in the CRD status object.
How to reproduce it (as minimally and precisely as possible):
Create a fleet with a list, add an item to that list, then remove it ( from an sdk so it goes to the sdk server ), describe the GameServer object with kubectl, the item is still in the list.
What happened:
I'm currently heavily testing the new counters and lists feature from Agones 1.37, I noticed that removing an item from a list does not remove the item on the GameServer CRD.
What you expected to happen:
I assume that it should be be possible to remove an item from a list and that it will be reflected in the CRD status object.
How to reproduce it (as minimally and precisely as possible):
Create a fleet with a list, add an item to that list, then remove it ( from an sdk so it goes to the sdk server ), describe the GameServer object with kubectl, the item is still in the list.
Anything else we need to know?:
I digged into the sdk server and I believe I found the issue, the sdk server holds a list of updates that need to go out https://github.com/googleforgames/agones/blob/v1.37.0/pkg/sdkserver/sdkserver.go#L132 later on we have the function that update the CRD to the k8s api, if it's a success we then clean the counters update buffer but not the list one: https://github.com/googleforgames/agones/blob/v1.37.0/pkg/sdkserver/sdkserver.go#L1233
I did test locally and it's a one liner change minus unit tests:
If the issues is ack by you, I will submit a PR very soon.
Environment:
The text was updated successfully, but these errors were encountered: