@@ -6,15 +6,14 @@ import (
6
6
"github.com/spf13/cobra"
7
7
8
8
"k8s.io/apimachinery/pkg/api/meta"
9
- "k8s.io/kubernetes/pkg/api/legacyscheme"
10
9
kclientset "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset"
11
- "k8s.io/kubernetes/pkg/kubectl/cmd/create"
12
10
"k8s.io/kubernetes/pkg/kubectl/cmd/templates"
13
11
kcmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
14
12
"k8s.io/kubernetes/pkg/kubectl/genericclioptions"
15
13
"k8s.io/kubernetes/pkg/kubectl/genericclioptions/printers"
16
14
17
15
routev1client "github.com/openshift/client-go/route/clientset/versioned/typed/route/v1"
16
+ "github.com/openshift/origin/pkg/oc/util/ocscheme"
18
17
)
19
18
20
19
var (
@@ -44,7 +43,7 @@ func NewCmdCreateRoute(fullName string, f kcmdutil.Factory, streams genericcliop
44
43
// CreateRouteSubcommandOptions is an options struct to support create subcommands
45
44
type CreateRouteSubcommandOptions struct {
46
45
// PrintFlags holds options necessary for obtaining a printer
47
- PrintFlags * create .PrintFlags
46
+ PrintFlags * genericclioptions .PrintFlags
48
47
// Name of resource being created
49
48
Name string
50
49
ServiceName string
@@ -66,7 +65,7 @@ type CreateRouteSubcommandOptions struct {
66
65
67
66
func NewCreateRouteSubcommandOptions (ioStreams genericclioptions.IOStreams ) * CreateRouteSubcommandOptions {
68
67
return & CreateRouteSubcommandOptions {
69
- PrintFlags : create .NewPrintFlags ("created" , legacyscheme . Scheme ),
68
+ PrintFlags : genericclioptions .NewPrintFlags ("created" ). WithTypeSetter ( ocscheme . PrintingInternalScheme ),
70
69
IOStreams : ioStreams ,
71
70
}
72
71
}
0 commit comments