File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
pkg/registry/node/runtimeclass/storage Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ go_library(
7
7
visibility = ["//visibility:public" ],
8
8
deps = [
9
9
"//pkg/apis/node:go_default_library" ,
10
+ "//pkg/printers:go_default_library" ,
11
+ "//pkg/printers/internalversion:go_default_library" ,
12
+ "//pkg/printers/storage:go_default_library" ,
10
13
"//pkg/registry/node/runtimeclass:go_default_library" ,
11
14
"//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library" ,
12
15
"//staging/src/k8s.io/apiserver/pkg/registry/generic:go_default_library" ,
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ import (
21
21
"k8s.io/apiserver/pkg/registry/generic"
22
22
genericregistry "k8s.io/apiserver/pkg/registry/generic/registry"
23
23
"k8s.io/kubernetes/pkg/apis/node"
24
+ "k8s.io/kubernetes/pkg/printers"
25
+ printersinternal "k8s.io/kubernetes/pkg/printers/internalversion"
26
+ printerstorage "k8s.io/kubernetes/pkg/printers/storage"
24
27
"k8s.io/kubernetes/pkg/registry/node/runtimeclass"
25
28
)
26
29
@@ -42,6 +45,8 @@ func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, error) {
42
45
CreateStrategy : runtimeclass .Strategy ,
43
46
UpdateStrategy : runtimeclass .Strategy ,
44
47
DeleteStrategy : runtimeclass .Strategy ,
48
+
49
+ TableConvertor : printerstorage.TableConvertor {TableGenerator : printers .NewTableGenerator ().With (printersinternal .AddHandlers )},
45
50
}
46
51
options := & generic.StoreOptions {RESTOptions : optsGetter }
47
52
if err := store .CompleteWithOptions (options ); err != nil {
You can’t perform that action at this time.
0 commit comments