-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Expand file tree
/
Copy pathfactory.go
More file actions
23 lines (18 loc) · 739 Bytes
/
factory.go
File metadata and controls
23 lines (18 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package allocation
import (
kclientset "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset"
osclient "github.com/openshift/origin/pkg/client"
"github.com/openshift/origin/pkg/route"
)
// RouteAllocationControllerFactory creates a RouteAllocationController
// that allocates router shards to specific routes.
type RouteAllocationControllerFactory struct {
// OSClient is is an OpenShift client.
OSClient osclient.Interface
// KubeClient is a Kubernetes client.
KubeClient kclientset.Interface
}
// Create a RouteAllocationController instance.
func (factory *RouteAllocationControllerFactory) Create(plugin route.AllocationPlugin) *RouteAllocationController {
return &RouteAllocationController{Plugin: plugin}
}