mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 05:01:46 +00:00
Changing v1beta3 field selectors to be camelCased
This commit is contained in:
@@ -337,16 +337,16 @@ func TestListPodListSelection(t *testing.T) {
|
||||
label: "label=qux",
|
||||
expectedIDs: util.NewStringSet("qux"),
|
||||
}, {
|
||||
field: "Status.Phase=Failed",
|
||||
field: "status.phase=Failed",
|
||||
expectedIDs: util.NewStringSet("baz"),
|
||||
}, {
|
||||
field: "Status.Host=barhost",
|
||||
field: "status.host=barhost",
|
||||
expectedIDs: util.NewStringSet("bar"),
|
||||
}, {
|
||||
field: "Status.Host=",
|
||||
field: "status.host=",
|
||||
expectedIDs: util.NewStringSet("foo", "baz", "qux", "zot"),
|
||||
}, {
|
||||
field: "Status.Host!=",
|
||||
field: "status.host!=",
|
||||
expectedIDs: util.NewStringSet("bar"),
|
||||
},
|
||||
}
|
||||
|
@@ -132,8 +132,8 @@ func MatchPod(label, field labels.Selector) generic.Matcher {
|
||||
func PodToSelectableFields(pod *api.Pod) labels.Set {
|
||||
return labels.Set{
|
||||
"name": pod.Name,
|
||||
"Status.Phase": string(pod.Status.Phase),
|
||||
"Status.Host": pod.Status.Host,
|
||||
"status.phase": string(pod.Status.Phase),
|
||||
"status.host": pod.Status.Host,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user