@@ -12,13 +12,13 @@ import (
12
12
"k8s.io/apimachinery/pkg/util/validation/field"
13
13
"k8s.io/kubernetes/pkg/kubectl/cmd/templates"
14
14
cmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
15
+ kcmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util"
15
16
16
17
"github.com/openshift/origin/pkg/cmd/server/apis/config"
17
18
"github.com/openshift/origin/pkg/cmd/server/apis/config/validation/ldap"
18
19
"github.com/openshift/origin/pkg/oauthserver/ldaputil"
19
20
"github.com/openshift/origin/pkg/oauthserver/ldaputil/ldapclient"
20
21
"github.com/openshift/origin/pkg/oc/admin/groups/sync"
21
- "github.com/openshift/origin/pkg/oc/cli/util/clientcmd"
22
22
userclientinternal "github.com/openshift/origin/pkg/user/generated/internalclientset"
23
23
usertypedclient "github.com/openshift/origin/pkg/user/generated/internalclientset/typed/user/internalversion"
24
24
)
@@ -81,7 +81,7 @@ func NewPruneOptions() *PruneOptions {
81
81
}
82
82
}
83
83
84
- func NewCmdPrune (name , fullName string , f * clientcmd .Factory , out io.Writer ) * cobra.Command {
84
+ func NewCmdPrune (name , fullName string , f kcmdutil .Factory , out io.Writer ) * cobra.Command {
85
85
options := NewPruneOptions ()
86
86
options .Out = out
87
87
@@ -125,7 +125,7 @@ func NewCmdPrune(name, fullName string, f *clientcmd.Factory, out io.Writer) *co
125
125
return cmd
126
126
}
127
127
128
- func (o * PruneOptions ) Complete (whitelistFile , blacklistFile , configFile string , args []string , f * clientcmd .Factory ) error {
128
+ func (o * PruneOptions ) Complete (whitelistFile , blacklistFile , configFile string , args []string , f kcmdutil .Factory ) error {
129
129
var err error
130
130
131
131
o .Config , err = decodeSyncConfigFromFile (configFile )
@@ -170,7 +170,7 @@ func (o *PruneOptions) Validate() error {
170
170
171
171
// Run creates the GroupSyncer specified and runs it to sync groups
172
172
// the arguments are only here because its the only way to get the printer we need
173
- func (o * PruneOptions ) Run (cmd * cobra.Command , f * clientcmd .Factory ) error {
173
+ func (o * PruneOptions ) Run (cmd * cobra.Command , f kcmdutil .Factory ) error {
174
174
bindPassword , err := config .ResolveStringValue (o .Config .BindPassword )
175
175
if err != nil {
176
176
return err
0 commit comments