Skip to content

Commit 482efe8

Browse files
committed
SOLTYSH: simple kubectl refactor
1 parent bc8c9a7 commit 482efe8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/oc/admin/prune/authprune/prune_command.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func NewCmdPruneAuth(f kcmdutil.Factory, name string, out io.Writer) *cobra.Comm
6262
func (o *PruneAuthOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string) error {
6363
var err error
6464

65-
clientConfig, err := f.ClientConfig()
65+
clientConfig, err := f.ToRESTConfig()
6666
if err != nil {
6767
return nil
6868
}
@@ -91,7 +91,7 @@ func (o *PruneAuthOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args
9191
return nil
9292
}
9393

94-
cmdNamespace, enforceNamespace, err := f.DefaultNamespace()
94+
cmdNamespace, enforceNamespace, err := f.ToRawKubeConfigLoader().Namespace()
9595
if err != nil {
9696
return err
9797
}

0 commit comments

Comments
 (0)