mirror of
https://github.com/kubernetes/client-go.git
synced 2025-07-17 16:52:22 +00:00
Fix gofmt errors
Kubernetes-commit: 6681835b0c00122a408bd4addd47b02840b6208c
This commit is contained in:
parent
b128bee2cc
commit
ad53524c7c
@ -617,8 +617,8 @@ func TestServerPreferredNamespacedResources(t *testing.T) {
|
|||||||
w.Write(output)
|
w.Write(output)
|
||||||
},
|
},
|
||||||
expected: map[schema.GroupVersionResource]struct{}{
|
expected: map[schema.GroupVersionResource]struct{}{
|
||||||
schema.GroupVersionResource{Group: "", Version: "v1", Resource: "pods"}: {},
|
{Group: "", Version: "v1", Resource: "pods"}: {},
|
||||||
schema.GroupVersionResource{Group: "", Version: "v1", Resource: "services"}: {},
|
{Group: "", Version: "v1", Resource: "services"}: {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -660,8 +660,8 @@ func TestServerPreferredNamespacedResources(t *testing.T) {
|
|||||||
w.Write(output)
|
w.Write(output)
|
||||||
},
|
},
|
||||||
expected: map[schema.GroupVersionResource]struct{}{
|
expected: map[schema.GroupVersionResource]struct{}{
|
||||||
schema.GroupVersionResource{Group: "batch", Version: "v1", Resource: "jobs"}: {},
|
{Group: "batch", Version: "v1", Resource: "jobs"}: {},
|
||||||
schema.GroupVersionResource{Group: "batch", Version: "v2alpha1", Resource: "cronjobs"}: {},
|
{Group: "batch", Version: "v2alpha1", Resource: "cronjobs"}: {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -703,8 +703,8 @@ func TestServerPreferredNamespacedResources(t *testing.T) {
|
|||||||
w.Write(output)
|
w.Write(output)
|
||||||
},
|
},
|
||||||
expected: map[schema.GroupVersionResource]struct{}{
|
expected: map[schema.GroupVersionResource]struct{}{
|
||||||
schema.GroupVersionResource{Group: "batch", Version: "v2alpha1", Resource: "jobs"}: {},
|
{Group: "batch", Version: "v2alpha1", Resource: "jobs"}: {},
|
||||||
schema.GroupVersionResource{Group: "batch", Version: "v2alpha1", Resource: "cronjobs"}: {},
|
{Group: "batch", Version: "v2alpha1", Resource: "cronjobs"}: {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
6
tools/cache/controller_test.go
vendored
6
tools/cache/controller_test.go
vendored
@ -307,13 +307,13 @@ func TestUpdate(t *testing.T) {
|
|||||||
// asynchronous, there are a lot of valid possibilities.
|
// asynchronous, there are a lot of valid possibilities.
|
||||||
type pair struct{ from, to string }
|
type pair struct{ from, to string }
|
||||||
allowedTransitions := map[pair]bool{
|
allowedTransitions := map[pair]bool{
|
||||||
pair{FROM, TO}: true,
|
{FROM, TO}: true,
|
||||||
|
|
||||||
// Because a resync can happen when we've already observed one
|
// Because a resync can happen when we've already observed one
|
||||||
// of the above but before the item is deleted.
|
// of the above but before the item is deleted.
|
||||||
pair{TO, TO}: true,
|
{TO, TO}: true,
|
||||||
// Because a resync could happen before we observe an update.
|
// Because a resync could happen before we observe an update.
|
||||||
pair{FROM, FROM}: true,
|
{FROM, FROM}: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
pod := func(name, check string, final bool) *v1.Pod {
|
pod := func(name, check string, final bool) *v1.Pod {
|
||||||
|
Loading…
Reference in New Issue
Block a user