func (c *FakeEvictions) Evict(eviction *policy.Eviction) error {
	action := core.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
}
Ejemplo n.º 2
0
func (c *FakeScales) Get(kind string, name string) (result *v1beta1.Scale, err error) {
	action := core.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
}
Ejemplo n.º 3
0
func (c *FakeScales) Get(kind string, name string) (result *extensions.Scale, err error) {
	action := core.GetActionImpl{}
	action.Verb = "get"
	action.Namespace = c.ns
	action.Resource = kind
	action.Subresource = "scale"
	action.Name = name
	obj, err := c.Fake.Invokes(action, &extensions.Scale{})
	result = obj.(*extensions.Scale)
	return
}