move controller config to the spec package

This commit is contained in:
Murat Kabilov
2017-08-15 11:41:46 +02:00
parent 606d000022
commit 58572bb43f
4 changed files with 21 additions and 18 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ func newMockKubernetesClient() k8sutil.KubernetesClient {
}
func newMockController() *Controller {
controller := NewController(&Config{})
controller := NewController(&spec.ControllerConfig{})
controller.opConfig.ClusterNameLabel = "cluster-name"
controller.opConfig.InfrastructureRolesSecretName =
spec.NamespacedName{Namespace: v1.NamespaceDefault, Name: testInfrastructureRolesSecretName}