All commands must declare Unstructured or Internal

Callers must take a dependency on one or the other set of conversions
and default client behavior. Future changes may add a Versioned() type,
but this is an accurate reflection of current code state.
This commit is contained in:
Clayton Coleman
2017-11-15 01:10:30 -05:00
parent 04ab96d2bd
commit 8f4b6c8771
34 changed files with 135 additions and 39 deletions

View File

@@ -188,7 +188,8 @@ func forceReplace(f cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []s
}
}
r := f.NewBuilder().Unstructured().
r := f.NewBuilder().
Unstructured().
ContinueOnError().
NamespaceParam(cmdNamespace).DefaultNamespace().
FilenameParam(enforceNamespace, options).