mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
cleanUp:check existence using basic method of set
This commit is contained in:
parent
2e55595d3b
commit
b54befc97d
@ -295,7 +295,7 @@ func NewFramework(r Registry, profile *config.KubeSchedulerProfile, opts ...Opti
|
|||||||
pluginsMap := make(map[string]framework.Plugin)
|
pluginsMap := make(map[string]framework.Plugin)
|
||||||
for name, factory := range r {
|
for name, factory := range r {
|
||||||
// initialize only needed plugins.
|
// initialize only needed plugins.
|
||||||
if _, ok := pg[name]; !ok {
|
if !pg.Has(name) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user