// 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 }
// 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 }