Files
virtual-kubelet/providers/register/provider_azurebatch.go
Brian Goff f8c51004d4 Support building an allow-list of providers (#527)
* 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.
2019-03-02 11:25:47 -08:00

24 lines
465 B
Go

// +build azurebatch_provider
package register
import (
"github.com/virtual-kubelet/virtual-kubelet/providers"
"github.com/virtual-kubelet/virtual-kubelet/providers/azurebatch"
)
func init() {
register("azurebatch", initAzureBatch)
}
func initAzureBatch(cfg InitConfig) (providers.Provider, error) {
return azurebatch.NewBatchProvider(
cfg.ConfigPath,
cfg.ResourceManager,
cfg.NodeName,
cfg.OperatingSystem,
cfg.InternalIP,
cfg.DaemonPort,
)
}