Refactor REST storage to use generic defaults

Signed-off-by: Monis Khan <mkhan@redhat.com>
This commit is contained in:
Monis Khan
2016-11-30 21:09:56 -05:00
parent 809d259d68
commit a6bafbacbf
145 changed files with 920 additions and 1679 deletions

View File

@@ -39,9 +39,9 @@ type ContainerStorage struct {
Scale *ScaleREST
}
func NewStorage(opts generic.RESTOptions) ContainerStorage {
func NewStorage(optsGetter generic.RESTOptionsGetter) ContainerStorage {
// scale does not set status, only updates spec so we ignore the status
controllerREST, _ := etcd.NewREST(opts)
controllerREST, _ := etcd.NewREST(optsGetter)
rcRegistry := controller.NewRegistry(controllerREST)
return ContainerStorage{