No validation on GameServerAllocation.Priorities #3684
Labels
area/user-experience
Pertaining to developers trying to use Agones, e.g. SDK, installation, etc
kind/bug
These are bugs.
What happened:
You can pass in invalid values for priority.type and priority.order on a
GameServerAllocation
What you expected to happen:
Return an error stating the values are invalid (this happens with a Fleet - but it has the OpenAPI Spec).
How to reproduce it (as minimally and precisely as possible):
Create this Fleet:
Then
kubectl create -f <this file>
:It will complete with no error.
Anything else we need to know?:
Since GameServerAllocation doesn't have the OpenAPI spec, we will have to do this somewhere in the
.Validate()
function of GameServerAllocation.agones/pkg/apis/allocation/v1/gameserverallocation.go
Line 376 in 1c536c0
Environment:
kubectl version
): 1.28The text was updated successfully, but these errors were encountered: