Skip to content

Commit

Permalink
updating the sidecar controller (#86)
Browse files Browse the repository at this point in the history
Signed-off-by: vjoshi3 <vrushali_joshi@intuit.com>

Co-authored-by: vjoshi3 <vrushali_joshi@intuit.com>
Signed-off-by: Madeline <madeline_li@intuit.com>
  • Loading branch information
2 people authored and Mengying-intuit committed Apr 20, 2020
1 parent 35a8404 commit 0e70426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admiral/pkg/controller/istio/sidecar.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ func NewSidecarController(stopCh <-chan struct{}, handler SidecarHandler, config

ic, err := versioned.NewForConfig(config)
if err != nil {
return nil, fmt.Errorf("failed to create destination rule controller k8s client: %v", err)
return nil, fmt.Errorf("failed to create sidecar controller k8s client: %v", err)
}

sidecarController.IstioClient = ic

sidecarController.informer = informers.NewDestinationRuleInformer(ic, k8sV1.NamespaceAll, resyncPeriod, cache.Indexers{})
sidecarController.informer = informers.NewSidecarInformer(ic, k8sV1.NamespaceAll, resyncPeriod, cache.Indexers{})

admiral.NewController(stopCh, &sidecarController, sidecarController.informer)

Expand Down

0 comments on commit 0e70426

Please sign in to comment.