Exemplo n.º 1
0
// Init initializes the plugin.  This will be called exactly once
// before any other methods are called.
func (plugin *RemoteNetworkPlugin) Init(host network.Host, hairpinMode componentconfig.HairpinMode, nonMasqueradeCIDR string) error {
	// TODO(harryz) hairpinMode & nonMasqueradeCIDR is not supported for now
	plugin.host = host
	plugin.client = host.GetKubeClient()
	return nil
}
Exemplo n.º 2
0
// Init initializes the plugin.  This will be called exactly once
// before any other methods are called.
func (plugin *RemoteNetworkPlugin) Init(host network.Host) error {
	plugin.host = host
	plugin.client = host.GetKubeClient()
	return nil
}