eliminate mixed case from RESTMapper

This commit is contained in:
deads2k
2016-02-08 11:19:16 -05:00
parent f93d9304a4
commit 6d71421ae1
10 changed files with 63 additions and 93 deletions

View File

@@ -179,9 +179,9 @@ func init() {
gvk := gv.WithKind(kind)
root := bool(kind == "SimpleRoot")
if root {
nsMapper.Add(gvk, meta.RESTScopeRoot, false)
nsMapper.Add(gvk, meta.RESTScopeRoot)
} else {
nsMapper.Add(gvk, meta.RESTScopeNamespace, false)
nsMapper.Add(gvk, meta.RESTScopeNamespace)
}
}
}