Skip to content

Commit

Permalink
Inline JSON: GameServerAllocation v1.LabelSelector
Browse files Browse the repository at this point in the history
The K8s YAML library will inline embeded structs, but some other ones
will not. So adding the `json:",inline"` hint, so that they know that
the `v1.LabelSelector` should be inlined if people are so inclined to
reference it via Golang yaml libraries.

Closes googleforgames#2853
  • Loading branch information
markmandel committed Dec 16, 2022
1 parent b2588c9 commit 0d11a1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/allocation/v1/gameserverallocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ type GameServerAllocationSpec struct {
// a GameServer for allocation.
type GameServerSelector struct {
// See: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
metav1.LabelSelector
metav1.LabelSelector `json:",inline"`
// [Stage:Beta]
// [FeatureFlag:StateAllocationFilter]
// +optional
Expand Down

0 comments on commit 0d11a1d

Please sign in to comment.