Instead of hardcoding plugin lists in autopath/health, use interfaces. (#1306)

Switched health and autopath plugin to allow any plugins to be used instead
of a hardcoded list. I did not switch federation over since it wasn't
obvious that anything other than kubernetes could be used with it.

Fixes #1291
This commit is contained in:
James Hartig
2017-12-12 15:40:30 -05:00
committed by Miek Gieben
parent 99e163c375
commit a469a17cdf
8 changed files with 63 additions and 35 deletions

View File

@@ -36,9 +36,3 @@ func (h *health) poll() {
}
h.SetOk(true)
}
// Plugins that implements the Healther interface.
var healthers = map[string]bool{
"erratic": true,
"kubernetes": true,
}