Skip to content

Commit

Permalink
rename sysadvisor RegisterHealthzCheckRules to RegisterAdvisorPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
luomingmeng committed May 11, 2023
1 parent 628a5e7 commit f17d1ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/agent/sysadvisor/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type AdvisorPluginInitFunc func(conf *config.Configuration, extraConf interface{

var advisorPluginInitializers sync.Map

func RegisterHealthzCheckRules(plugin string, f AdvisorPluginInitFunc) {
func RegisterAdvisorPlugin(plugin string, f AdvisorPluginInitFunc) {
advisorPluginInitializers.Store(plugin, f)
}

Expand Down
6 changes: 3 additions & 3 deletions pkg/agent/sysadvisor/sysadvisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ import (
const initTimeout = 10 * time.Second

func init() {
pkgplugin.RegisterHealthzCheckRules(types.AdvisorPluginNameQoSAware, qosaware.NewQoSAwarePlugin)
pkgplugin.RegisterHealthzCheckRules(types.AdvisorPluginNameMetaCache, metacacheplugin.NewMetaCachePlugin)
pkgplugin.RegisterHealthzCheckRules(types.AdvisorPluginNameMetricEmitter, metricemitter.NewCustomMetricEmitter)
pkgplugin.RegisterAdvisorPlugin(types.AdvisorPluginNameQoSAware, qosaware.NewQoSAwarePlugin)
pkgplugin.RegisterAdvisorPlugin(types.AdvisorPluginNameMetaCache, metacacheplugin.NewMetaCachePlugin)
pkgplugin.RegisterAdvisorPlugin(types.AdvisorPluginNameMetricEmitter, metricemitter.NewCustomMetricEmitter)
}

// AdvisorAgent for sysadvisor
Expand Down

0 comments on commit f17d1ac

Please sign in to comment.