Compare commits

...

3 Commits

Author SHA1 Message Date
Chao Xu
843f7c4f28 Merge pull request #22 from caesarxuchao/1.5
manually copy the fix the fake_pod_expansion.go
2016-10-23 13:27:10 -07:00
Chao Xu
496ce4be34 manually copy the fix the fake_pod_expansion.go 2016-10-21 10:06:26 -07:00
Chao Xu
4e647cdbb2 Merge pull request #16 from caesarxuchao/1.5
remove 1.4 folder from 1.5 branch
2016-10-17 11:08:08 -07:00

View File

@@ -18,6 +18,7 @@ package fake
import (
"k8s.io/client-go/1.5/pkg/api/v1"
"k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1"
"k8s.io/client-go/1.5/rest"
"k8s.io/client-go/1.5/testing"
)
@@ -44,3 +45,14 @@ func (c *FakePods) GetLogs(name string, opts *v1.PodLogOptions) *rest.Request {
_, _ = c.Fake.Invokes(action, &v1.Pod{})
return &rest.Request{}
}
func (c *FakePods) Evict(eviction *v1alpha1.Eviction) error {
action := testing.CreateActionImpl{}
action.Verb = "create"
action.Resource = podsResource
action.Subresource = "eviction"
action.Object = eviction
_, err := c.Fake.Invokes(action, eviction)
return err
}