Merge pull request #55963 from sttts/sttts-drop-registrytester-scheme
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. apiserver: remove unneeded scheme from registry tester Follow-up of https://github.com/kubernetes/kubernetes/pull/55622, removing an unused scheme. Kubernetes-commit: bebb9c9175d808c2a5e856ca0e24ecf151cc1a73
This commit is contained in:
commit
3679c01a72
|
|
@ -39,9 +39,9 @@ type Tester struct {
|
|||
}
|
||||
type UpdateFunc func(runtime.Object) runtime.Object
|
||||
|
||||
func New(t *testing.T, storage *genericregistry.Store, scheme *runtime.Scheme) *Tester {
|
||||
func New(t *testing.T, storage *genericregistry.Store) *Tester {
|
||||
return &Tester{
|
||||
tester: resttest.New(t, storage, scheme),
|
||||
tester: resttest.New(t, storage),
|
||||
storage: storage,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,15 +47,13 @@ type Tester struct {
|
|||
generatesName bool
|
||||
returnDeletedObject bool
|
||||
namer func(int) string
|
||||
scheme *runtime.Scheme
|
||||
}
|
||||
|
||||
func New(t *testing.T, storage rest.Storage, scheme *runtime.Scheme) *Tester {
|
||||
func New(t *testing.T, storage rest.Storage) *Tester {
|
||||
return &Tester{
|
||||
T: t,
|
||||
storage: storage,
|
||||
namer: defaultNamer,
|
||||
scheme: scheme,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue