Replace controller routing management with router pkg

This commit is contained in:
stefanprodan
2019-03-05 02:04:55 +02:00
parent 3f5c22d863
commit 42b850ca52
6 changed files with 72 additions and 602 deletions
-9
View File
@@ -42,7 +42,6 @@ type Controller struct {
canaries *sync.Map
jobs map[string]CanaryJob
deployer CanaryDeployer
router CanaryRouter
observer CanaryObserver
recorder CanaryRecorder
notifier *notifier.Slack
@@ -81,13 +80,6 @@ func NewController(
},
}
router := CanaryRouter{
logger: logger,
kubeClient: kubeClient,
istioClient: istioClient,
flaggerClient: flaggerClient,
}
observer := CanaryObserver{
metricsServer: metricServer,
}
@@ -107,7 +99,6 @@ func NewController(
jobs: map[string]CanaryJob{},
flaggerWindow: flaggerWindow,
deployer: deployer,
router: router,
observer: observer,
recorder: recorder,
notifier: notifier,