Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #49 from mier85/uncomment_add_function
Browse files Browse the repository at this point in the history
uncomment add function
  • Loading branch information
thrawn01 authored May 6, 2020
2 parents 0e6568d + 81e8a04 commit 5ccb6b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ func (e *K8sPool) start() error {
)

e.informer.AddEventHandler(cache.ResourceEventHandlerFuncs{
/*AddFunc: func(obj interface{}) {
AddFunc: func(obj interface{}) {
key, err := cache.MetaNamespaceKeyFunc(obj)
logrus.Debugf("Queue (Add) '%s' - %s", key, err)
if err != nil {
logrus.Errorf("while calling MetaNamespaceKeyFunc(): %s", err)
return
}
},*/
},
UpdateFunc: func(obj, new interface{}) {
key, err := cache.MetaNamespaceKeyFunc(obj)
logrus.Debugf("Queue (Update) '%s' - %s", key, err)
Expand Down

0 comments on commit 5ccb6b4

Please sign in to comment.