* 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.
23 lines
405 B
Go
23 lines
405 B
Go
// +build mock_provider
|
|
|
|
package register
|
|
|
|
import (
|
|
"github.com/virtual-kubelet/virtual-kubelet/providers"
|
|
"github.com/virtual-kubelet/virtual-kubelet/providers/mock"
|
|
)
|
|
|
|
func init() {
|
|
register("mock", initMock)
|
|
}
|
|
|
|
func initMock(cfg InitConfig) (providers.Provider, error) {
|
|
return mock.NewMockProvider(
|
|
cfg.ConfigPath,
|
|
cfg.NodeName,
|
|
cfg.OperatingSystem,
|
|
cfg.InternalIP,
|
|
cfg.DaemonPort,
|
|
)
|
|
}
|