Skip to content

Commit 488d534

Browse files
committed
LIGGITT: stop auto-registering the non-groupified versions
1 parent 857b8e8 commit 488d534

File tree

1 file changed

+5
-4
lines changed
  • pkg/security/registry/securitycontextconstraints/etcd

1 file changed

+5
-4
lines changed

pkg/security/registry/securitycontextconstraints/etcd/etcd_test.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@ package etcd
33
import (
44
"testing"
55

6+
securityapi "github.com/openshift/origin/pkg/security/apis/security"
67
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
78
"k8s.io/apimachinery/pkg/runtime"
9+
"k8s.io/apimachinery/pkg/runtime/schema"
810
"k8s.io/apiserver/pkg/registry/generic"
911
genericregistrytest "k8s.io/apiserver/pkg/registry/generic/testing"
1012
etcdtesting "k8s.io/apiserver/pkg/storage/etcd/testing"
11-
"k8s.io/kubernetes/pkg/registry/registrytest"
12-
13-
securityapi "github.com/openshift/origin/pkg/security/apis/security"
13+
"k8s.io/kubernetes/pkg/api/legacyscheme"
1414

1515
_ "github.com/openshift/origin/pkg/api/install"
1616
)
1717

1818
func newStorage(t *testing.T) (*REST, *etcdtesting.EtcdTestServer) {
19-
etcdStorage, server := registrytest.NewEtcdStorage(t, "")
19+
server, etcdStorage := etcdtesting.NewUnsecuredEtcd3TestClientServer(t)
20+
etcdStorage.Codec = legacyscheme.Codecs.LegacyCodec(schema.GroupVersion{Group: "security.openshift.io", Version: "v1"})
2021
restOptions := generic.RESTOptions{
2122
StorageConfig: etcdStorage,
2223
Decorator: generic.UndecoratedStorage,

0 commit comments

Comments
 (0)