diff --git a/pkg/controller/deployment/deployment_controller_test.go b/pkg/controller/deployment/deployment_controller_test.go index 2cfe20da267..a1544c5e82f 100644 --- a/pkg/controller/deployment/deployment_controller_test.go +++ b/pkg/controller/deployment/deployment_controller_test.go @@ -226,7 +226,7 @@ func (f *fixture) run_(deploymentName string, startInformers bool, expectError b } expectedAction := f.actions[i] - if !expectedAction.Matches(action.GetVerb(), action.GetResource().Resource) { + if !(expectedAction.Matches(action.GetVerb(), action.GetResource().Resource) && action.GetSubresource() == expectedAction.GetSubresource()) { f.t.Errorf("Expected\n\t%#v\ngot\n\t%#v", expectedAction, action) continue }