mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Merge pull request #13952 from zhengguoyong/fix-apiserver
fix the optim of apiserver
This commit is contained in:
commit
9a8ce4867e
@ -131,7 +131,7 @@ func init() {
|
|||||||
// the mapper how to address our resources
|
// the mapper how to address our resources
|
||||||
for _, version := range versions {
|
for _, version := range versions {
|
||||||
for kind := range api.Scheme.KnownTypes(version) {
|
for kind := range api.Scheme.KnownTypes(version) {
|
||||||
root := kind == "SimpleRoot"
|
root := bool(kind == "SimpleRoot")
|
||||||
if root {
|
if root {
|
||||||
nsMapper.Add(meta.RESTScopeRoot, kind, version, false)
|
nsMapper.Add(meta.RESTScopeRoot, kind, version, false)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user