Merge pull request #20818 from deads2k/remove-mixed-case

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot
2016-02-09 05:06:45 -08:00
10 changed files with 63 additions and 93 deletions

View File

@@ -124,9 +124,8 @@ func newExternalScheme() (*runtime.Scheme, meta.RESTMapper, runtime.Codec) {
for kind := range scheme.KnownTypes(gv) {
gvk := gv.WithKind(kind)
mixedCase := false
scope := meta.RESTScopeNamespace
mapper.Add(gvk, scope, mixedCase)
mapper.Add(gvk, scope)
}
}

View File

@@ -365,7 +365,7 @@ func RunRollingUpdate(f *cmdutil.Factory, out io.Writer, cmd *cobra.Command, arg
if err != nil {
return err
}
_, res := meta.KindToResource(kind, false)
_, res := meta.KindToResource(kind)
cmdutil.PrintSuccess(mapper, false, out, res.Resource, oldName, message)
return nil
}