mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +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
|
||||
for _, version := range versions {
|
||||
for kind := range api.Scheme.KnownTypes(version) {
|
||||
root := kind == "SimpleRoot"
|
||||
root := bool(kind == "SimpleRoot")
|
||||
if root {
|
||||
nsMapper.Add(meta.RESTScopeRoot, kind, version, false)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user