* Add providers subcommand to verify providers Allows users to check what providers are available * Fix version output to add new line This command was totally broken until we moved around the call to `initConfig()`, this just fixes the output now that it works. * Flip boolean of provider include tags All providers are still included by default and fix tags using the old format.
17 lines
379 B
Go
17 lines
379 B
Go
// +build linux,vic_provider
|
|
|
|
package register
|
|
|
|
import (
|
|
"github.com/virtual-kubelet/virtual-kubelet/providers"
|
|
"github.com/virtual-kubelet/virtual-kubelet/providers/vic"
|
|
)
|
|
|
|
func init() {
|
|
register("vic", initVic)
|
|
}
|
|
|
|
func initVic(cfg InitConfig) (providers.Provider, error) {
|
|
return vic.NewVicProvider(cfg.ConfigPath, cfg.ResourceManager, cfg.NodeName, cfg.OperatingSystem)
|
|
}
|