-
Notifications
You must be signed in to change notification settings - Fork 826
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
GSA: Switch LabelSelector to GameServerSelector #2166
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,22 +88,25 @@ func TestConvertAllocationRequestToGameServerAllocation(t *testing.T) { | |
}, | ||
}, | ||
}, | ||
Required: metav1.LabelSelector{ | ||
MatchLabels: map[string]string{ | ||
"c": "d", | ||
}, | ||
}, | ||
Preferred: []metav1.LabelSelector{ | ||
{ | ||
Required: allocationv1.GameServerSelector{ | ||
LabelSelector: metav1.LabelSelector{ | ||
MatchLabels: map[string]string{ | ||
"e": "f", | ||
"c": "d", | ||
}, | ||
}, | ||
}}, | ||
Preferred: []allocationv1.GameServerSelector{ | ||
{ | ||
MatchLabels: map[string]string{ | ||
"g": "h", | ||
}, | ||
}, | ||
LabelSelector: metav1.LabelSelector{ | ||
MatchLabels: map[string]string{ | ||
"e": "f", | ||
}, | ||
}}, | ||
{ | ||
LabelSelector: metav1.LabelSelector{ | ||
MatchLabels: map[string]string{ | ||
"g": "h", | ||
}, | ||
}}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about adding conversion tests for the new fields? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Coming soon to a theatre near you! But once the allocation proto changes are in, because there's nothing to convert things to otherwise. |
||
}, | ||
Scheduling: apis.Packed, | ||
MetaPatch: allocationv1.MetaPatch{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code will get updates once again once the proto changes, but this allows current functionality to continue working as expected.