Added NewUpdateSubresourceAction to testclient actions

This commit is contained in:
Maciej Szulik
2015-09-16 14:06:19 +02:00
parent 4b5c2253f3
commit bdec7da47b
4 changed files with 14 additions and 21 deletions

View File

@@ -100,6 +100,17 @@ func NewUpdateAction(resource, namespace string, object runtime.Object) UpdateAc
return action
}
func NewUpdateSubresourceAction(resource, subresource, namespace string, object runtime.Object) UpdateActionImpl {
action := UpdateActionImpl{}
action.Verb = "update"
action.Resource = resource
action.Subresource = subresource
action.Namespace = namespace
action.Object = object
return action
}
func NewRootDeleteAction(resource, name string) DeleteActionImpl {
action := DeleteActionImpl{}
action.Verb = "delete"