Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 38 additions & 4 deletions api/swagger-spec/oapi-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -11453,7 +11453,7 @@
"description": "OpenShift REST API, version v1",
"operations": [
{
"type": "v1.Route",
"type": "v1.RouteList",
"method": "GET",
"summary": "list or watch objects of kind Route",
"nickname": "listNamespacedRoute",
Expand Down Expand Up @@ -11511,7 +11511,7 @@
{
"code": 200,
"message": "OK",
"responseModel": "v1.Route"
"responseModel": "v1.RouteList"
}
],
"produces": [
Expand Down Expand Up @@ -11814,6 +11814,14 @@
"required": false,
"allowMultiple": false
},
{
"type": "v1.DeleteOptions",
"paramType": "body",
"name": "body",
"description": "",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "path",
Expand Down Expand Up @@ -11935,7 +11943,7 @@
"description": "OpenShift REST API, version v1",
"operations": [
{
"type": "v1.Route",
"type": "v1.RouteList",
"method": "GET",
"summary": "list or watch objects of kind Route",
"nickname": "listRoute",
Expand Down Expand Up @@ -11985,7 +11993,7 @@
{
"code": 200,
"message": "OK",
"responseModel": "v1.Route"
"responseModel": "v1.RouteList"
}
],
"produces": [
Expand Down Expand Up @@ -17227,6 +17235,32 @@
}
}
},
"v1.RouteList": {
"id": "v1.RouteList",
"required": [
"items"
],
"properties": {
"kind": {
"type": "string",
"description": "kind of object, in CamelCase; cannot be updated; see http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds"
},
"apiVersion": {
"type": "string",
"description": "version of the schema the object should have; see http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources"
},
"metadata": {
"$ref": "v1.ListMeta"
},
"items": {
"type": "array",
"items": {
"$ref": "v1.Route"
},
"description": "list of routes"
}
}
},
"v1.Route": {
"id": "v1.Route",
"required": [
Expand Down
1 change: 1 addition & 0 deletions hack/api-description-whitelist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ v1.rolebinding
v1.rolebindinglist
v1.rolelist
v1.rollingdeploymentstrategyparams
v1.routelist
v1.routespec
v1.routestatus
v1.runasuserstrategyoptions
Expand Down
11 changes: 5 additions & 6 deletions pkg/cmd/server/origin/master.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ import (
projectproxy "github.com/openshift/origin/pkg/project/registry/project/proxy"
projectrequeststorage "github.com/openshift/origin/pkg/project/registry/projectrequest/delegated"
routeallocationcontroller "github.com/openshift/origin/pkg/route/controller/allocation"
routeetcd "github.com/openshift/origin/pkg/route/registry/etcd"
routeregistry "github.com/openshift/origin/pkg/route/registry/route"
routeetcd "github.com/openshift/origin/pkg/route/registry/route/etcd"
clusternetworketcd "github.com/openshift/origin/pkg/sdn/registry/clusternetwork/etcd"
hostsubnetetcd "github.com/openshift/origin/pkg/sdn/registry/hostsubnet/etcd"
netnamespaceetcd "github.com/openshift/origin/pkg/sdn/registry/netnamespace/etcd"
Expand Down Expand Up @@ -333,7 +332,9 @@ func (c *MasterConfig) GetRestStorage() map[string]rest.Storage {
deployConfigStorage := deployconfigetcd.NewStorage(c.EtcdHelper)
deployConfigRegistry := deployconfigregistry.NewRegistry(deployConfigStorage)

routeEtcd := routeetcd.New(c.EtcdHelper)
routeAllocator := c.RouteAllocator()

routeEtcd := routeetcd.NewREST(c.EtcdHelper, routeAllocator)
hostSubnetStorage := hostsubnetetcd.NewREST(c.EtcdHelper)
netNamespaceStorage := netnamespaceetcd.NewREST(c.EtcdHelper)
clusterNetworkStorage := clusternetworketcd.NewREST(c.EtcdHelper)
Expand Down Expand Up @@ -376,8 +377,6 @@ func (c *MasterConfig) GetRestStorage() map[string]rest.Storage {
imageStreamImageStorage := imagestreamimage.NewREST(imageRegistry, imageStreamRegistry)
imageStreamImageRegistry := imagestreamimage.NewRegistry(imageStreamImageStorage)

routeAllocator := c.RouteAllocator()

buildGenerator := &buildgenerator.BuildGenerator{
Client: buildgenerator.Client{
GetBuildConfigFunc: buildConfigRegistry.GetBuildConfig,
Expand Down Expand Up @@ -442,7 +441,7 @@ func (c *MasterConfig) GetRestStorage() map[string]rest.Storage {
"processedTemplates": templateregistry.NewREST(),
"templates": templateetcd.NewREST(c.EtcdHelper),

"routes": routeregistry.NewREST(routeEtcd, routeAllocator),
"routes": routeEtcd,

"projects": projectStorage,
"projectRequests": projectRequestStorage,
Expand Down
128 changes: 0 additions & 128 deletions pkg/route/registry/etcd/etcd.go

This file was deleted.

Loading