Skip to content

Commit

Permalink
HasSynced always false
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Wang <qiwan@redhat.com>
  • Loading branch information
QiWang19 committed Feb 24, 2024
1 parent b7bd380 commit 967303a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,13 +353,14 @@ func (ctrl *Controller) sigstoreAPIEnabled() (bool, error) {
}

func (ctrl *Controller) enableClusterImagePolicyHandler() {
clusterImagePolicyInformer := ctrl.configInformerFactory.Config().V1alpha1().ClusterImagePolicies()
ctrl.configInformerFactory.Config().V1alpha1().ClusterImagePolicies().Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
AddFunc: ctrl.clusterImagePolicyAdded,
UpdateFunc: ctrl.clusterImagePolicyUpdated,
DeleteFunc: ctrl.clusterImagePolicyDeleted,
})
ctrl.clusterImagePolicyLister = ctrl.configInformerFactory.Config().V1alpha1().ClusterImagePolicies().Lister()
ctrl.clusterImagePolicyListerSynced = ctrl.configInformerFactory.Config().V1alpha1().ClusterImagePolicies().Informer().HasSynced
ctrl.clusterImagePolicyLister = clusterImagePolicyInformer.Lister()
ctrl.clusterImagePolicyListerSynced = clusterImagePolicyInformer.Informer().HasSynced
}

func (ctrl *Controller) updateContainerRuntimeConfig(oldObj, newObj interface{}) {
Expand Down

0 comments on commit 967303a

Please sign in to comment.