mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-17 14:56:31 +00:00
Merge pull request #69035 from dmathieu/fake-eviction
Set api version and action name in fake evictions Kubernetes-commit: 2e357e39c81673f916a81a0a4f485ed080043e25
This commit is contained in:
commit
78bf9020c4
102
Godeps/Godeps.json
generated
102
Godeps/Godeps.json
generated
@ -400,207 +400,207 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting/fuzzer",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting/fuzzer",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting/roundtrip",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting/roundtrip",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/equality",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/equality",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/errors",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/errors",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/meta",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/meta",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/api/resource",
|
"ImportPath": "k8s.io/apimachinery/pkg/api/resource",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1beta1",
|
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1beta1",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/conversion",
|
"ImportPath": "k8s.io/apimachinery/pkg/conversion",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
|
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/fields",
|
"ImportPath": "k8s.io/apimachinery/pkg/fields",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/labels",
|
"ImportPath": "k8s.io/apimachinery/pkg/labels",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
|
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/selection",
|
"ImportPath": "k8s.io/apimachinery/pkg/selection",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/types",
|
"ImportPath": "k8s.io/apimachinery/pkg/types",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/cache",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/cache",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/clock",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/clock",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/diff",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/diff",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/errors",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/errors",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/framer",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/framer",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/json",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/json",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/naming",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/naming",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/net",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/net",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/sets",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/sets",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/validation",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/validation",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/wait",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/wait",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
|
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/version",
|
"ImportPath": "k8s.io/apimachinery/pkg/version",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/pkg/watch",
|
"ImportPath": "k8s.io/apimachinery/pkg/watch",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
|
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil",
|
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
|
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
|
||||||
"Rev": "18b50c81aee7a3efd24f37d0510ea2e19411c69c"
|
"Rev": "c6dd271be00615c6fa8c91fdf63381265a5f0e4e"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ImportPath": "k8s.io/kube-openapi/pkg/util/proto",
|
"ImportPath": "k8s.io/kube-openapi/pkg/util/proto",
|
||||||
|
@ -26,8 +26,9 @@ func (c *FakeEvictions) Evict(eviction *policy.Eviction) error {
|
|||||||
action := core.GetActionImpl{}
|
action := core.GetActionImpl{}
|
||||||
action.Verb = "post"
|
action.Verb = "post"
|
||||||
action.Namespace = c.ns
|
action.Namespace = c.ns
|
||||||
action.Resource = schema.GroupVersionResource{Group: "", Version: "", Resource: "pods"}
|
action.Resource = schema.GroupVersionResource{Group: "", Version: "v1", Resource: "pods"}
|
||||||
action.Subresource = "eviction"
|
action.Subresource = "eviction"
|
||||||
|
action.Name = eviction.Name
|
||||||
_, err := c.Fake.Invokes(action, eviction)
|
_, err := c.Fake.Invokes(action, eviction)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user