Skip to content

Commit

Permalink
updating the sidecar controller
Browse files Browse the repository at this point in the history
Signed-off-by: vjoshi3 <vrushali_joshi@intuit.com>
  • Loading branch information
vjoshi3 committed Mar 25, 2020
1 parent e2e6d5f commit a3c8bed
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 a3c8bed

Please sign in to comment.