Skip to content

Commit a8fad7e

Browse files
committed
Update for new split master/node SDN NewPlugin calls
1 parent c2a4386 commit a8fad7e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/cmd/server/kubernetes/node_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func BuildKubernetesNodeConfig(options configapi.NodeConfig) (*NodeConfig, error
257257
}
258258
cfg.Cloud = cloud
259259

260-
sdnPlugin, endpointFilter, err := factory.NewPlugin(options.NetworkConfig.NetworkPluginName, originClient, kubeClient, options.NodeName, options.NodeIP)
260+
sdnPlugin, endpointFilter, err := factory.NewClientPlugin(options.NetworkConfig.NetworkPluginName, originClient, kubeClient, options.NodeName, options.NodeIP)
261261
if err != nil {
262262
return nil, fmt.Errorf("SDN initialization failed: %v", err)
263263
} else if sdnPlugin != nil {

pkg/cmd/server/origin/run_components.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ func (c *MasterConfig) RunDeploymentImageChangeTriggerController() {
329329
// RunSDNController runs openshift-sdn if the said network plugin is provided
330330
func (c *MasterConfig) RunSDNController() {
331331
oClient, kClient := c.SDNControllerClients()
332-
controller, _, err := factory.NewPlugin(c.Options.NetworkConfig.NetworkPluginName, oClient, kClient, "", "")
332+
controller, _, err := factory.NewMasterPlugin(c.Options.NetworkConfig.NetworkPluginName, oClient, kClient)
333333
if err != nil {
334334
glog.Fatalf("SDN initialization failed: %v", err)
335335
}

0 commit comments

Comments
 (0)