Merge pull request #113504 from pacoxu/taint-unit-test

AddOrUpdateTaintOnNode: if node does not exists, return an error
This commit is contained in:
Kubernetes Prow Robot
2023-06-15 17:48:19 -07:00
committed by GitHub
2 changed files with 28 additions and 1 deletions

View File

@@ -152,7 +152,7 @@ func (m *FakeNodeHandler) Get(ctx context.Context, name string, opts metav1.GetO
return &nodeCopy, nil
}
}
return nil, nil
return nil, apierrors.NewNotFound(schema.GroupResource{Resource: "nodes"}, name)
}
func (m *FakeNodeHandler) runAsyncCalls() {