Use PATCH when pausing/resuming objects and CalculatePatches to get the patch

This commit is contained in:
Michal Fojtik
2016-10-27 13:01:50 +02:00
parent e4b41dd292
commit 0faa27e62d
7 changed files with 88 additions and 67 deletions

View File

@@ -261,11 +261,11 @@ func (f *FakeFactory) LogsForObject(object, options runtime.Object) (*restclient
return nil, nil
}
func (f *FakeFactory) PauseObject(runtime.Object) (bool, error) {
func (f *FakeFactory) Pauser(info *resource.Info) (bool, error) {
return false, nil
}
func (f *FakeFactory) ResumeObject(runtime.Object) (bool, error) {
func (f *FakeFactory) Resumer(info *resource.Info) (bool, error) {
return false, nil
}