Skip to content

Commit

Permalink
remove GenericEvent
Browse files Browse the repository at this point in the history
Signed-off-by: jooho <jlee@redhat.com>
  • Loading branch information
Jooho committed Feb 22, 2024
1 parent 210ec7a commit 00a33a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions controllers/kserve_customcacert_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,7 @@ func reconcileOpenDataHubGlobalCACertConfigMap() predicate.Predicate {
DeleteFunc: func(e event.DeleteEvent) bool {
objectName := e.Object.GetName()
return checkOpenDataHubGlobalCertCAConfigMapName(objectName)
},
GenericFunc: func(e event.GenericEvent) bool {
objectName := e.Object.GetName()
return checkOpenDataHubGlobalCertCAConfigMapName(objectName)
},
},
UpdateFunc: func(e event.UpdateEvent) bool {
objectName := e.ObjectNew.GetName()
return checkOpenDataHubGlobalCertCAConfigMapName(objectName)
Expand Down
6 changes: 1 addition & 5 deletions controllers/storageconfig_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,11 @@ func reconcileOpenDataHubSecrets() predicate.Predicate {
CreateFunc: func(e event.CreateEvent) bool {
objectLabels := e.Object.GetLabels()
return checkOpenDataHubLabel(objectLabels)
},
},
DeleteFunc: func(e event.DeleteEvent) bool {
objectLabels := e.Object.GetLabels()
return checkOpenDataHubLabel(objectLabels)
},
GenericFunc: func(e event.GenericEvent) bool {
objectLabels := e.Object.GetLabels()
return checkOpenDataHubLabel(objectLabels)
},
UpdateFunc: func(e event.UpdateEvent) bool {
objectNewLabels := e.ObjectNew.GetLabels()
return checkOpenDataHubLabel(objectNewLabels)
Expand Down

0 comments on commit 00a33a5

Please sign in to comment.