Exemplo n.º 1
0
func (c *FakeEvictions) Evict(eviction *policy.Eviction) error {
	action := testing.GetActionImpl{}
	action.Verb = "post"
	action.Namespace = c.ns
	action.Resource = schema.GroupVersionResource{Group: "", Version: "", Resource: "pods"}
	action.Subresource = "eviction"
	_, err := c.Fake.Invokes(action, eviction)
	return err
}
Exemplo n.º 2
0
func (c *FakeScales) Get(kind string, name string) (result *v1beta1.Scale, err error) {
	action := testing.GetActionImpl{}
	action.Verb = "get"
	action.Namespace = c.ns
	action.Resource = schema.GroupVersionResource{Resource: kind}
	action.Subresource = "scale"
	action.Name = name
	obj, err := c.Fake.Invokes(action, &v1beta1.Scale{})
	result = obj.(*v1beta1.Scale)
	return
}