Skip to content

Commit

Permalink
use unstructured builder - oc export
Browse files Browse the repository at this point in the history
  • Loading branch information
juanvallejo committed Oct 3, 2017
1 parent afd90cd commit 0cc4eba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/oc/cli/cmd/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,13 @@ func RunExport(f *clientcmd.Factory, exporter Exporter, in io.Reader, out io.Wri
return err
}

builder, err := f.NewUnstructuredBuilder(true)
if err != nil {
return err
}

mapper, typer := f.Object()
b := f.NewBuilder(true).
b := builder.
NamespaceParam(cmdNamespace).DefaultNamespace().AllNamespaces(allNamespaces).
FilenameParam(explicit, &resource.FilenameOptions{Recursive: false, Filenames: filenames}).
SelectorParam(selector).
Expand Down

0 comments on commit 0cc4eba

Please sign in to comment.