delete orphan resources where service deleted

This commit is contained in:
Jeff
2019-05-16 15:28:43 +08:00
committed by zryfish
parent 273aa0102a
commit 40ebeccfaa
4 changed files with 29 additions and 8 deletions

View File

@@ -88,7 +88,8 @@ func AddControllers(mgr manager.Manager, cfg *rest.Config, stopCh <-chan struct{
informerFactory.Core().V1().Services(),
servicemeshInformer.Servicemesh().V1alpha2().ServicePolicies(),
kubeClient,
istioclient)
istioclient,
servicemeshclient)
apController := application.NewApplicationController(informerFactory.Core().V1().Services(),
informerFactory.Apps().V1().Deployments(),