@@ -3,12 +3,11 @@ package create
3
3
import (
4
4
"fmt"
5
5
6
+ "github.com/openshift/origin/pkg/oc/util/ocscheme"
6
7
"github.com/spf13/cobra"
7
8
8
9
"k8s.io/apimachinery/pkg/api/meta"
9
- "k8s.io/kubernetes/pkg/api/legacyscheme"
10
10
kclientset "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset"
11
- "k8s.io/kubernetes/pkg/kubectl/cmd/create"
12
11
"k8s.io/kubernetes/pkg/kubectl/cmd/templates"
13
12
kcmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
14
13
"k8s.io/kubernetes/pkg/kubectl/genericclioptions"
@@ -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