fix router update bug

This commit is contained in:
Jeff
2019-05-13 13:53:40 +08:00
committed by zryfish
parent 5462f51e65
commit 89f54da60a
5 changed files with 216 additions and 97 deletions

View File

@@ -23,6 +23,8 @@ import (
"k8s.io/client-go/rest"
"kubesphere.io/kubesphere/pkg/controller/application"
"kubesphere.io/kubesphere/pkg/controller/destinationrule"
"kubesphere.io/kubesphere/pkg/controller/job"
//"kubesphere.io/kubesphere/pkg/controller/job"
"kubesphere.io/kubesphere/pkg/controller/virtualservice"
"sigs.k8s.io/controller-runtime/pkg/manager"
@@ -97,7 +99,7 @@ func AddControllers(mgr manager.Manager, cfg *rest.Config, stopCh <-chan struct{
kubeClient,
applicationClient)
//jobController := job.NewJobController(informerFactory.Batch().V1().Jobs(), kubeClient)
jobController := job.NewJobController(informerFactory.Batch().V1().Jobs(), kubeClient)
servicemeshInformer.Start(stopCh)
istioInformer.Start(stopCh)
@@ -108,7 +110,7 @@ func AddControllers(mgr manager.Manager, cfg *rest.Config, stopCh <-chan struct{
"virtualservice-controller": vsController,
"destinationrule-controller": drController,
"application-controller": apController,
//"job-controller": jobController,
"job-controller": jobController,
}
for name, ctrl := range controllers {