Skip to content

Commit b4652ac

Browse files
author
OpenShift Bot
authored
Merge pull request #13244 from jim-minter/move_pkg_template_registry
Merged by openshift-bot
2 parents 5e64198 + 9b39c80 commit b4652ac

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

pkg/cmd/server/origin/master.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ import (
9292
hostsubnetetcd "github.com/openshift/origin/pkg/sdn/registry/hostsubnet/etcd"
9393
netnamespaceetcd "github.com/openshift/origin/pkg/sdn/registry/netnamespace/etcd"
9494
saoauth "github.com/openshift/origin/pkg/serviceaccounts/oauthclient"
95-
templateregistry "github.com/openshift/origin/pkg/template/registry"
96-
templateetcd "github.com/openshift/origin/pkg/template/registry/etcd"
95+
templateregistry "github.com/openshift/origin/pkg/template/registry/template"
96+
templateetcd "github.com/openshift/origin/pkg/template/registry/template/etcd"
9797
groupetcd "github.com/openshift/origin/pkg/user/registry/group/etcd"
9898
identityregistry "github.com/openshift/origin/pkg/user/registry/identity"
9999
identityetcd "github.com/openshift/origin/pkg/user/registry/identity/etcd"

pkg/template/registry/etcd/etcd.go renamed to pkg/template/registry/template/etcd/etcd.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"k8s.io/kubernetes/pkg/storage"
77

88
"github.com/openshift/origin/pkg/template/api"
9-
tregistry "github.com/openshift/origin/pkg/template/registry"
9+
"github.com/openshift/origin/pkg/template/registry/template"
1010
"github.com/openshift/origin/pkg/util/restoptions"
1111
)
1212

@@ -20,11 +20,11 @@ func NewREST(optsGetter restoptions.Getter) (*REST, error) {
2020
store := &registry.Store{
2121
NewFunc: func() runtime.Object { return &api.Template{} },
2222
NewListFunc: func() runtime.Object { return &api.TemplateList{} },
23-
PredicateFunc: tregistry.Matcher,
23+
PredicateFunc: template.Matcher,
2424
QualifiedResource: api.Resource("templates"),
2525

26-
CreateStrategy: tregistry.Strategy,
27-
UpdateStrategy: tregistry.Strategy,
26+
CreateStrategy: template.Strategy,
27+
UpdateStrategy: template.Strategy,
2828

2929
ReturnDeletedObject: true,
3030
}

pkg/template/registry/rest.go renamed to pkg/template/registry/template/rest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package registry
1+
package template
22

33
import (
44
"math/rand"

pkg/template/registry/rest_test.go renamed to pkg/template/registry/template/rest_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package registry
1+
package template
22

33
import (
44
"testing"

pkg/template/registry/strategy.go renamed to pkg/template/registry/template/strategy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package registry
1+
package template
22

33
import (
44
"fmt"

0 commit comments

Comments
 (0)