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 dd505f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions controllers/kserve_customcacert_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,7 @@ func reconcileOpenDataHubGlobalCACertConfigMap() predicate.Predicate {
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
5 changes: 1 addition & 4 deletions controllers/storageconfig_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,7 @@ func reconcileOpenDataHubSecrets() predicate.Predicate {
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 dd505f8

Please sign in to comment.